Calculator for Chemists reads and calculates line by line, ignoring all that appears after the equal sign [=]. The lines which started with # are command lines. With these lines it is possible to change the number format or the angle measurement.
Here is the sample tasks divided in several categories:
== Calculator for Chemists ==
August 18, 2012 11:28:29
= Basic calculations =
3+3 = 6
5+7+10+2 = 24
12+(20-8)*3+7 = 55
(8+3 = Missing right bracket ')'
12+20-8)*3+7 = Missing left bracket '('
2+2-9 = -5
0.5*0.6 = 0.3
2.5+2.12+-9*0.8 = -2.58
27/3 = 9
3*5*-7 = -105
9.12e-31*5 = 4.56e-030
9.12e3+5.1e-1 = 9120.51
5.48e-7/5.972e24 = 9.17615539182853e-032
2^3 = 8
2^3/0 = Cannot divide by zero!
8.12e-5/2 = 4.06e-005
8.12e5/2 = 406000
4+5-*-1 = Incorrect syntax
4+5-1*-7 = 16
= Calculate functions =
:sin1.5 = 0.997494986604054
:asin0.997494986604054 = 1.49999999999999
:cos-2 = -0.416146836547142
:tan5 = -3.38051500624658
:cot2 = -0.457657554360286
:sin(:pi/2) = 1
:cos:pi = -1
:log1000 = 3
:alog3 = 1000
5! = 120
:ran100 = 6
:int(3.45) = 3
:int(-3.45) = -3
:ln123 = 4.81218435537242
:log5.43e-8 = -7.26520017041115
:log(5-8) = Logarithm of a negative number
:log:abs(5-8) = 0.477121254719662
x^2+x = 0
x1 = -1
x2 = 0
x^2+x-7 = 0
x1 = -3.19258240356725
x2 = 2.19258240356725
= Calculate chemical formula =
H2SO4 = 98.07848
H2O = 18.01528
Cu(NO3)2 = 187.5558
CH3CH2COOH = 74.07854
ClCH2CH2COHCl = 127.9772
NaBiO3 = 279.96836928
hno3 = HNO3 = 63.01284
na2so4 = Na2SO4 = 142.04213856
CoAsO4 = 197.852395
wrco3 = WRcO3 = Unknown element symbol
CuSO4+5H20 = 260.4026
= Command and combine expressions =
5*20 = 100
#mem = 100
:log:mem = 2
#mem+ = 2
73.9/NaNO3 = 0.869466292721835
:mem*3 = 306
#mem- = 306
Pb(NO3)2+2H2O = 367.24036
Al(NO3)2+2H2O = 187.0218986
#fix3 = 187.022 = numbers rounded to three decimal places
[Cr(NO3)3]+9*(H2O) = 400.148
[Fe(NO3)3]+9*(H2O) = 403.997
#sci1 = 4.0e+002 = scientific mode with one decimal place
(Ni(NO3)2)+6*(H2O) = 2.9e+002
(Mn(NO3)2)+6*(H2O) = 2.9e+002
#auto = 287.039525 = return to automatic mode
(Ni(NO3)2)+6*(H2O) = 290.79488
(Mn(NO3)2)+6*(H2O) = 287.039525
:sin2 = 0.909297426825682
#fix3 = 0.909
:sin2 = 0.909
#deg = 0.909
:sin2 = 0.035
#sci5 = 3.48995e-002
#grad = 3.48995e-002
:sin2 = 3.14108e-002
#auto = 0.0314107590781283
#rad = 0.0314107590781283
Ca(NO3)2 = 164.0878
Sr(NO3)2 = 211.6298
104.4/(Mn(NO3)2+6H2O) = 0.363712976462039
NaF = 41.98817248
:intNaF = 41
:logNaF = 1.62312697253926
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF = 1082.9089824
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF = Expression is too long
Citing this page:
Generalic, Eni. "C4C Help: Example tasks." EniG. Periodic Table of the Elements. KTF-Split, 27 Oct. 2022. Web. {Date of access}. <https://www.periodni.com/enig/c4c_help/example_tasks.html>.
Articles and tables
