how to write a string which can create nth root latex
chrismx000 opened this issue · 2 comments
chrismx000 commented
hi,this is a great project!
recently,i find the way to create 3th root latex,just like this "cbrt(5)".Latexise() ==> res: \sqrt[3]{5}
but how to write a string that can create the latex like \sqrt[n]{m} ?
WhiteBlackGoose commented
Hi!
cbrt
is in fact just a shorthand for power 1/3. So all you need is to write "5^(1/5)".
But using a variable or expression as the power of the root? Currently only rational numbers are suported, unfortunately. Perhaps we need a separate node for root, but as for now, it's unclear when we should interpreted 1/{expression}
as a root or as power.
chrismx000 commented
ennn,I see. Thank you for your reply。