> But the question is if current behaviour is useful? > Do people depend on numeric x^(1/3) beeing > defined for negative arguments?
The problem is "(x:Float) ^ (y:Fraction Integer)" when x is negative. Since most other CAS don't have a strong type system, they avoid this problem by treating x as a complex value and giving a complex result. I did a quick search and in https://mathematica.stackexchange.com/questions/3886/finding-real-roots-of-negative-numbers-for-example-sqrt3-8 some people want to know the real valued root of a negative number. Mathematica adds two new function "CubeRoot" and "Surd" to do this. We can overload this meaning to "^". -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
