the nasal math.pow(x,y) where y is a float leads to an error:
- Code: Select all
Nasal runtime error: floating point error in math.pow()
ref: https://sourceforge.net/p/flightgear/simgear/ci/next/tree/simgear/nasal/mathlib.c#l68
But the 'c' <math.h> pow functions are defined as:
- Code: Select all
double pow(double x, double y);
float powf(float x, float y);
long double powl(long double x, long double y);
So, is there a way to get the same with Nasal where 'y' is rationnal or irrationnal ? (w/o defined my own powf ...)
Thanks,
Val.
[EDIT]
and with have the same with C++ <cmath> where pow is overloaded:
- Code: Select all
float pow(float base, int exp);
float pow(float base, float exp);
...