Function-Type Calculator: Math, Trig, Science

Math: +, -, *, /, %, log(x), pow(x,2), exp(x), sqrt(x), sin(x), cos(x), acos(x), tan(x), round(x), E, PI, LN10 ...
Example for circumference of circle: r = radius, enter the expression: r = 3 ; 2 * PI * r
Example of a sequence: a = 4 ; b = a + 2 ; b + 1 ... returns 7
Expression:
Result:

List of Useful Functions ... Copy & Paste & Edit Expression

circumference of circle, r = radius [ r = 3 ; 2 * PI * r ]
area of circle, r = radius [ r = 3 ; PI * pow ( r , 2 ) ]
hypotenuse of right triangle, sides a,b [ a = 4 ; b = 3 ; sqrt ( pow( a , 2 ) + pow( b , 2) ) ]
correlation via co-movements, s=same,d=diff [ s = 9 ; d = 1; ( s - d ) / ( s + d ) ]
stock beta, xd=distance x-axis, sy & by values y-axis [ dx = 10 ; ys = 4 ; yb = 2 ; 1 + ( ys - yb ) / dx ]
det 2x2 matrix [ c11 = 1 ; c12 = 2 ; c21 = 1 ; c12 = 2 ; ( c11 * c12 ) - ( c12 * c21 ) ]
dot product 2dim, vectors a & b [ c11 = 1 ; c12 = 2 ; c21 = 4 ; c22 = 5 ; c11 * c12 + c21 * c22 ]
cross product 2dim, vectors a & b [ c11 = 1 ; c12 = 2 ; c21 = 1 ; c12 = 2 ; ( c11 * c12 ) - ( c12 * c21 ) ]
simcos correlation, d=dot prod & c=cross prod [ d = 5 ; c = 10 ; cos(d/c ) * .0175 ]
exponential smoothing [ new = 9 ; old = 8 ; wt = .2 ; new * wt + ( old * ( 1 - wt ) ]
energy E = m c^2 [ m = 10 ; c = 186,000 ; m * pow(c,2) ]
solve quadratic ax2 + bx + c =0 term1 ... a = 1 ; b = 3 ; c = -4 ; (-(b) + sqrt(pow(b,2) -4*(a)*(c)))/(2*(a))
solve quadratic ax2 + bx + c =0 term2 ... a = 1 ; b = 3 ; c = -4 ; (-(b) - sqrt(pow(b,2) -4*(a)*(c)))/(2*(a))
factorial n!, showing 6! ... 6 * 5 * 4 * 3 * 2 * 1
prob of drawing 4 aces ... n = 52; a = 4; c1=a/n; c2=(a-1)/(n-1); c3=(a-2)/(n-2); c4=(a-3)/(n-3); c1*c2*c3*c4
minimum value ... a = 8 / 9; b = 4 / 5; c = sqrt(2); min(a ,b, c)
maximum value ... a = 8 / 9; b = 4 / 5; c = sqrt(2); max(a ,b, c)
permutations, unordered, n choose r ... n = 4; r = 3; pow(n,r)
combinations, ordered, n!/r!(n-r)! ... nf = 4*3*2*1 ; rf = 3*2*1; nrf = 1; nf/(rf*nrf)
conditional statement ... age=17; cond=age<18; check=(cond)?"Too young":"Old enough";
logical operators, returns True or False, &&=and, ||=or ... x = 6 ; y = 3 ; cond = (x < 10 && y > 1)
modulus operator % ... 12 % 5
convert degrees to radians, d=degrees ... d = 1 ; d * 0.0174533
convert radians to degrees, r=radians ... r = 1 ; r / 0.0174533
convert celsius to fahrenheit, c=celsius ... c = 100 ; (c *(9/5)+ 32
convert fahrenheit to celsius, f=fahrenheit ... f = 212 ; (f-32) * (5/9)
get new date and time ... d=new Date()
complex numbers addition (a+bi)+(c+di) ... a=1; bi=2; c=3; di=4; x=a+c ; y=bi+di; new String(x)+ " + " + new String(y)+"i"
complex numbers subtraction (a+bi)-(c+di) ... a=1; bi=2; c=3; di=4; x=a-c ; y=bi-di; new String(x)+ " + " + new String(y)+"i"
complex numbers mult (a+bi)(c+di) ... a=1; bi=2; c=3; di=4; x=a*c-bi*di ; y=a*di+bi*c; new String(x)+ " + " + String(y)+"i"
concatenation of arrays ... x=[1,2,3]; y=[4,5,6]; x.concat(y)
Hyp test for mean, Ho: u<=15 ... u=15; n=20; m=13.5; sd=5; zc=-2.05; se=sd/sqrt(n); z=(m-u)/se; cond=(z<=zc)
Hyp test for proportion, Ho: p<=1/2 ... u=.5; n=150; s=86; p=s/n; zc=1.64; se=sqrt((p*(1-p))/n); z=(p-pc)/se; cond=(z>=zc)
Array elements, x=array, i=position, n=num length ... i=7; n=2; x="04 02 03"; x.slice(i,i+n)
Expenditure model, GDP = C + I + G + (X-M) ... c = 1.2; i = 1; g = -.8; t = -.5; ans = .4 * c + .25 * i + .25 * g + .1 * t; ans.toFixed(2)
Present value c=cash lump sum or FV, r=rate, n=periods ... r = .1 ; n = 10 ; c = 1000 ; ans = c/pow((1+r),n); s=ans.toFixed(2)
Estimating std dev from range, l=low, h=high ... l=12; h=25; ans=(h-l)/3; ans.toFixed(2)
Estimating variance from range, l=low, h=high ... l=12; h=25; ans=pow((h-l)/3,2); ans.toFixed(2)
Estimating correlation ... lx=4; hx=8; ly=5; hy=9; ans=(hx-lx)/(hy-ly); if (ans>1) ans=1/r; ans=sqrt(ans); ans.toFixed(2)
Estimating covariance from corr, stddev x,y ... sx=4; sy=3; r=.9; ans=sx*xy*r; ans.toFixed(2)
Price elasticity of demand p=price, q=quantity ... p1=10; p2=8; q1=200; q2=300; ans=((p1-p2)/p1)/((q1-q2)/q1); abs(ans.toFixed(2))