ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 18 Apr 2022 12:03:07 +0200negative number cannot be raised to a fractional power in RDFhttps://ask.sagemath.org/question/62030/negative-number-cannot-be-raised-to-a-fractional-power-in-rdf/Hi, can anyone tell me why this evaluation is correct:
var('y')
h(x,y) = sqrt(1-(cos(2*y)*sin(2*x)))
G(x,y) = sum([comp^2 for comp in diff(h)])
diff(G)(*vector(RR,(0.1,0.75)))
> (0.788319732748083,
> -0.281637345440034)
But this evaluation, using RDF, is not correct:
diff(G)(*vector(RDF,(0.1,0.75)))
> ValueError: negative number cannot be
> raised to a fractional power
I am aware that the error is related with the question [https://ask.sagemath.org/question/7820/fractional-power-to-negative-number/](https://ask.sagemath.org/question/7820/fractional-power-to-negative-number/), but I would expect the same behavior in both cases, with and without RDF.franpenaMon, 18 Apr 2022 12:03:07 +0200https://ask.sagemath.org/question/62030/