[GAP Forum] x^y with Floats
Alexander Konovalov
alexander.konovalov at gmail.com
Tue Feb 22 14:01:58 GMT 2011
Dear Ivo,
The GAP functionality for Floats is not documented and may be changed in the future.
In GAP 4.4.12, to use x^y for floats, it's important to remember that x must be a
float, otherwise an error will occur. To create floats, call Float with an integer
to create a corresponding float, or with a string representation of a float, if it
has a decimal point. For example:
gap> Float("2.3")^3;
12.167
gap> Float("2.3")^Float("3.53");
18.919
gap> Float(2)^Float("3.53");
11.5514
gap> Float("2")^Float("3.53");
11.5514
Hope this helps,
Alexander
On 6 Feb 2011, at 17:16, Ivo Hedtke wrote:
> Dear Forum,
>
> is there a possibility to compute x^y with Floats in GAP? I found LOG_FLOAT for example, but I didn't found something for x^y.
>
> Sincerely,
> Ivo
>
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum
More information about the Forum
mailing list