Shop Solver
The Expression Evaluator
Every
numeric entry field in Shop Solver has a built-in expression evaluator.
It's like having a scientific calculator in every entry field.
Expressions are evaluated when the entry field loses the focus by tabbing to or clicking on something else. Note:
If an invalid expression is entered into a numeric entry field,
such as trying to divide by zero, the field's background will turn red
to let you know an error has occurred.
The following arithmetic operators are supported:
+
Addition. Example: 1.2+3.4 = 4.6
-
Subtraction and negation. Example: -1.2-3.4 = -4.6
*
Multiplication. Example: 1.2*3.4 = 4.08
/
Division. Example: 1.2/3.4 = 0.3529
( and )
Grouping. Example: (1+2)*3 = 9
%
Modulus. Computes the remainder after dividing the first operand by the second. Example: 5%2 = 1
^
Power/Exponentiation.
Returns the value of the first operand raised to the power of the
second. Example: 3^4 = 81
The following functions are supported. Click on a function's link to see its description.
abs
acos
asin
atan
atan2
cbrt
ceil
cos
cosh
exp
floor
hypot
log
log10
max
min
quad
random
round
sin
sinh
sqrt
tan
tanh
todd
todegrees
todms
toinch
tomm
toradians
torpm
tosfm
truepos
abs
Returns the absolute value of a number. Example: abs(-3.2) = 3.2
acos
Returns the angle in degrees whose cosine is the specified number. Example: acos(.866) = 30.0029
asin
Returns the angle in degrees whose sine is the specified number. Example: asin(.5) = 30
atan
Returns the angle in degrees whose tangent is the specified number. Example: atan(1) = 45
atan2
Returns
the angle in degrees whose tangent is the quotient of two specified numbers.
Usage: atan2(y,x) Example: atan2(.5,.866) = 30.0007
Note: The example can also be entered as atan(.5/.866)
cbrt
Returns the cube root of a number. Example: cbrt(8) = 2
ceil
Returns the
smallest integer greater than or equal to the specified number. Example: ceil(5.3) = 6
cos
Returns the cosine of the specified angle. Example: cos(60) = .5
cosh
Returns the hyperbolic cosine of the specified angle. Example: cosh(4.9) = 67.1486
exp
Returns e raised to the specified power. Example: exp(4.9) = 134.2898
floor
Returns the
largest integer less than or equal to the specified number. Example: floor(5.3) = 5
hypot
Returns the square root of the squares of the two operands. Example: hypot(3,4) = 5
log
Returns the natural (base e) logarithm of a specified number. Example: log(1.2) = .1823
log10
Returns the base 10 logarithm of a specified number. Example: log10(1.2) = 0.0792
max
Returns the larger of the two operands. Example: max(3,2) = 3
min
Returns the smaller of the two operands. Example: min(3,2) = 2
quad
Returns
a solution of the quadratic equation. Usages:
quad(plus,a,b,c) and quad(minus,a,b,c) where "plus" and "minus"
denote whether the operands in the numerator of the equation below
should be added ("plus") or subtracted ("minus"). Example:
quad(plus,3,5,1) = -0.2324
________
-b +/- \/ b^2 - 4ac
y = -----------------------------
2a
random
Returns a random number between 0 and 1. Usage: random()
round
Returns a specfied number rounded to the nearest integer. Examples: round(3.4) = 3 and round(3.5) = 4
sin
Returns the sine of the specified angle. Example: sin(60) = 0.866
sinh
Returns the hyperbolic sine of the specified angle. Example: sinh(4.9) = 67.1412
sqrt
Returns the square root of the specified number. Example: sqrt(7) = 2.6458
tan
Returns the tangent of the specified angle. Example: tan(45) = 1
tanh
Returns the hyperbolic tangent of the specified angle. Example: tanh(4.9) = 0.9999
todd
Converts angles in the form of Degrees, Minutes, Seconds to decimal degrees. Example: todd(30,15,50) = 30.263888889
todms
Converts
angles in decimal degrees to Degrees, Minutes, Seconds. The
returned value is a whole number in the form "ddmmss". Example:
todms(30.263888889) = 301550
todegrees
Converts an angle specified in radians to degrees. Example: todegrees(0.5236) = 30.0001
toinch
Converts a length specified in millimeters to inches. Example: toinch(25.4) = 1
tomm
Converts a length specified in inches to millimeters. Example: tomm(1) = 25.4
toradians
Converts an angle specified in degrees to radians. Example: toradians(30) = 0.5236
torpm
Converts
surface footage per minute (SFM) at a specified diameter to revolutions
per minute (RPM). Usage: torpm(SFM,diameter) Example:
torpm(500,.5) = 3820
tosfm
Converts
revolutions per minute (RPM) at a specified diameter to surface footage
per minute (SFM). Usage: tosfm(RPM,diameter) Example:
tosfm(3820,.5) = 500
truepos
Returns
the true position of two operands that specify X and Y variations in
distance. Usage: truepos(X,Y) Example:
truepos(.0015,.003) = 0.0067