Professional Documents
Culture Documents
If CommaDec = True then before evaluation all commas are converted to decimal points and all semi-colons are converted to
If CommaDec = False or is omitted then commas and semi-colons are not converted
EvalText Function
=EvalText(Function)
EvalText evalutes a text function consisting of numerical values, for example the output of the SubstituteA function.
The text may also be evaluated using a defined name (see Eqn1_1 in Name Manager and the example below).
Examples
Function Result Display parameter values using Eval() UDF Display parameter valu
F*L^3/(3*E*I) #VALUE! #VALUE! =F*L^3/(3*E*I)
Evaluate usung EvalText() UDF =0.1*L^3/(3*E*I)
F 0.1 #VALUE! =0.1*10^3/(3*E*I)
L 10 =0.1*10^3/(3*200000*
E 200000 =0.1*10^3/(3*200000*
I 0.083333 Evaluate using defined
#NAME?
Function Result Display parameter values using SubstituteA() UDF
=Beta*E*K*sin(I) #VALUE! #VALUE!
Evaluate usung EvalText() UDF
t 0.1 #VALUE!
b_0 3.9
b_1 1.9
h 3.9
E 3.00E+07
PR 0.285
E 3.00E+07
K =+t^3/3*(2*b_0+4*b_1) #VALUE!
Cw +t*b_0^2/24*(8*b_1^3+6*h^2*b_1+h^2*b_0+12*b_1^2*h) #VALUE!
G +E/(2*(1+PR)) #VALUE!
I 0.78539816
Beta =+(K*G/(Cw*E))^0.5 #VALUE!
Evala Function
=evala(Function,Parameter range,Value Range, Optional xRange, Optional CommaDec)
If xRange is present EvalA returns a single column array, and should be entered as
an array function (press ctrl-shift-enter)
If CommaDec = True then before evaluation all commas are converted to decimal points and all semi-colons are converted to
If CommaDec = False or is omitted then commas and semi-colons are not converted
Function
=Y_0 +(R^2-(x-X_0)^2)^.5
R 3
X_0 0
Y_0 1
x Results
0 #VALUE!
0.1 #VALUE!
0.2 #VALUE!
0.3 #VALUE!
0.4 #VALUE!
0.5 #VALUE!
0.6 #VALUE!
0.7 #VALUE!
0.8 #VALUE!
0.9 #VALUE!
1 #VALUE!
1.1 #VALUE!
1.2 #VALUE!
1.3 #VALUE!
1.4 #VALUE!
1.5 #VALUE!
1.6 #VALUE!
1.7 #VALUE!
1.8 #VALUE!
1.9 #VALUE!
2 #VALUE!
2.1 #VALUE!
2.2 #VALUE!
2.3 #VALUE!
2.4 #VALUE!
2.5 #VALUE!
2.6 #VALUE!
2.7 #VALUE!
2.8 #VALUE!
2.9 #VALUE!
3 #VALUE!
=B*tfunc(A,B,C,x) #VALUE!
x A B C
0.4 2 2 3
on of values
uteA function.
EvalInt evaluates the integral of a function over a specified range, with a specified
number of increments. Either Simpson's Rule (default) or the Trapezoidal Rule may be
used. If Simpson's Rule is specified with an odd number of increments the increment
number is increased by 1.
Parabola
Function Result
= exp(X) * sin( B*X) #VALUE!
B 2
Semi-Circle
Function Result
=(R^2-x^2)^.5 #VALUE!
R 1
x 0 0.707106781 100
Trignometric function
Function Result
=A*sin(x)^C+B*cos(x)^C #VALUE!
A 1
B 2
C 3
x 0 1.570796327 100
Evalintt Function
=evalint(Function,Parameter range,Value Range, Integration parameters, Optional Integration type)
Estimated Number of
Simpson's Rule Result error loops Time
= exp(X) * sin( A*X) #VALUE! #VALUE! #VALUE! #VALUE!
A 2
Integration Limits Tolerance Max Loops
X 5.3 10.7 5.00E-09 10
Estimated Number of
Trapezoidal Rule Result error loops Time
= exp(X) * sin( A*X) #VALUE! #VALUE! #VALUE! #VALUE!
A 2
Integration Limits Tolerance Max Loops
X 5.3 10.7 5.00E-09 10
Trignometric function
Estimated Number of
Function Result error loops Time
=A*sin(x)^C+B*cos(x)^C #VALUE! #VALUE! #VALUE! #VALUE!
A 1
B 2
C 3
Integration Limits Tolerance Max Loops
x 0 1.570796327 1.00E-13 11
Evaluate Pi
Estimated Number of
Function Result error loops Time
=A*(1-X^2)^.5 #VALUE! #VALUE! #VALUE! #VALUE!
A 1
Integration Limits Tolerance Max Loops
X 0 0.5 1E-15 9
maximum number of loops
Error
#VALUE!
Estimated Pi Error
#VALUE! #VALUE!
SubstituteA Function
=Substitutea(Function,Parameter range,Value Range)
Function Result
F*L^3/(3*E*I) #VALUE!
F 2.5
L 10
E 200000
I 0.083333
dougjenkins@interactiveds.com.au
www.newtonexcelbach.wordpress.com
www.interactiveds.com.au
ã Copyright 2012 Interactive Design Services Pty Ltd. all rights reserved
Revision History