Archive 19/01/2023.

Angelscript exp function

itisscan

I need to use base-e exponential function of x, which is e raised to the power x: e^x.
In c++ case, i will include and will use exp(x) function.

I have found out that there is sdk addon ftp://home.oppserver.net/mirror/debian.oppserver.net/incoming/pbody_tmp/squeeze/src/xbmc-pre11.0+pvr-testing/xbmc/visualizations/Vortex/angelscript/docs/manual/doc_addon_math.html , which can register the math functions from the standard C runtime library, but how it can be done with urho3d, i have no ideas.

question.
How i can bound exp() function to AS ?

Thanks.

1vanK

Pow(e, x) ?

itisscan

Yes, exactly. it was so simply, that did not notice it. :slight_smile: