powr(2.0, 2.0) = 4.0 powr(-2.0, 2.0) = ? Please tell me. The documentation is not quite clear. Thanks
How math function powr() from the frameworks RenderScript works?
29 views Asked by Yevgeny Antonov At
1
powr(2.0, 2.0) = 4.0 powr(-2.0, 2.0) = ? Please tell me. The documentation is not quite clear. Thanks
The docs say that the first parameter (base) needs to be between
0.fand256.f. You can't use it with a negative input.P.S. RenderScript has been deprecated - https://developer.android.com/guide/topics/renderscript/migrate. You may want to consider this before writing further code using it.