B4J Code Snippet Math functions

Constants:
e = base of the natural logarithm = 2.71828182845905
pi = 3.141592653589793

Trigonometric
sin(x); cos(x); tan(x); asin(x); atan(x)

Hyperbolic
sinh(x); cosh(x); tanh(x)

logarithm
logn(x); log10(x)

Exponential
Exp(x) = e raised to x power

Other
abs(x); sqrt(x); round(x); int(x); frac(x)

Operators
+; -; *; /; ^

@ = logarithm Number@base Ex.: 10@5

You can easily add new functions.
 

Attachments

  • 1.jpg
    1.jpg
    25.7 KB · Views: 510
  • Eval.zip
    5.2 KB · Views: 413
  • 2.jpg
    2.jpg
    23.9 KB · Views: 463
  • 5.jpg
    5.jpg
    24.5 KB · Views: 442
Top