Supported cryptocurrencies: BTC Bitcoin Cash NANO Tezos
0.0001 BTC JavaScript vs R vs Python for math: what JS is missing? awesome examples of JS math?

Artemciy 3 months ago
Tags:

##### Aly 3 months ago
When it comes to Math, Python is the more easiest, yet slower than JavaScript. JavaScript have Math functions too and is faster, but its harder, with more functions! I recommend using JavaScript as it adds alot to the functions. Examples:-
Math.
abs(x) Returns the absolute value of x
acos(x) Returns the arccosine of x, in radians
acosh(x) Returns the hyperbolic arccosine of x
asin(x) Returns the arcsine of x, in radians
asinh(x) Returns the hyperbolic arcsine of x
atan(x) Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians
atan2(y, x) Returns the arctangent of the quotient of its arguments
atanh(x) Returns the hyperbolic arctangent of x
cbrt(x) Returns the cubic root of x
ceil(x) Returns x, rounded upwards to the nearest integer
cos(x) Returns the cosine of x (x is in radians)
cosh(x) Returns the hyperbolic cosine of x
exp(x) Returns the value of Ex
floor(x) Returns x, rounded downwards to the nearest integer
log(x) Returns the natural logarithm (base E) of x
max(x, y, z, ..., n) Returns the number with the highest value
min(x, y, z, ..., n) Returns the number with the lowest value
pow(x, y) Returns the value of x to the power of y
random() Returns a random number between 0 and 1
round(x) Rounds x to the nearest integer
sin(x) Returns the sine of x (x is in radians)
sinh(x) Returns the hyperbolic sine of x
sqrt(x) Returns the square root of x
tan(x) Returns the tangent of an angle
tanh(x) Returns the hyperbolic tangent of a number
trunc(x) Returns the integer part of a number (x)
##### Rafael 3 months ago
Introduction

Having numbers and numerical data allows you to work with the language in some way. But beyond working with arithmetic operators in JavaScript, mathematical constructs can be challenging for beginners. For this reason, focusing not on syntax, but on general math functions, this list starts with things like sorting, rounding and generating random values, that's enough before going into details. To work with math in JavaScript, you just need to know about things like function, operand, and operator.
https://m.habr.com/ru/post/312880/ her is all you need
##### kimo2 3 months ago Correct
JavaScript is not developed with scientists in mind and is not, in any way, optimized for the sciences (Source: https://jcheminf.biomedcentral.com/articles/10.1186/s13321-019-0331-1).
It's possible to implement any math using JS - hard work, long hours, low performance...
JS needs some key feature(s) to compete with Java, Matlab/Octave, R, Fortran, Python etc.
But JS is great for data representation. E.g. windy.com, which is based on "earth" project (https://github.com/cambecc/earth).
##### Artemciy 2 months ago
Thanks for the link!
##### ghai wichdhuor kerjiok 3 months ago
C# and Python are both great languages. With great communities, libraries, frameworks and opportunities. In my own experience, I love python the most.
Dot net core is a little faster on performance. Python more popular with dynamic types. Probably is one of the most lovable language