I ask for the numerical value and it gives me the expression
Show older comments
[EDIT: 20110615 12:27 CDT - reformat - WDR]
function y = Eg(t)
syms s;
%constantes
a=14;
b=15;
c=25;
L=c-b;
r=c;
phi=15;
V=7*7*28;
ro=1000;
RHi=100;
RHb=50;
dRH = RHb-RHi;
nus=0.3;
D=1;
M=8.3*10^(-6);
k=1.7;
Es=200000;
nuc=0.2;
lambda=0.3;
tp=1;
nu = k*(1-exp(-lambda*tp));
%------------------------
D1 = s*Epssa(s)-(s+lambda)*Epssa(s+lambda)/exp(lambda*tp);
Egs = (1/k)*(a-b)*(a+b)*(Es/s)*D1*s*(b^2*(nuc-1)-c^2*(nuc+1))/(4*b^2*(s*Epsf(s)-(s+lambda)*Epsf(s+lambda))+(b-c)*(b+c)*D1*((a^2*(nus+1)-b^2*(nus-1))));
y = ilaplace(Egs, s, t);
when I put E(2), it gives me :
ans =
- (12272724991839681694836231076749009375*gamma(3/10)*ilaplace(1/(s^(3/10)*((6003760639686170723358965455476297*gamma(3/10))/(28035470584169798842553923304161280*s^(3/10)) - (22862411300260886193*gamma(3/10))/(124502499794986393600*s^(13/10)) + 454730688161014190625/(9223372036854775808*s) - (113177415720074643*15^(1/2)*(-375*s)^(3/2))/(368934881474191032320*(-s)^(5/2)) + (26947003742874915*15^(1/2)*(-375*s)^(3/2))/(295147905179352825856*(-s)^(3/2)*s^(3/2)) - (16168202245724949*10^(1/2)*(-375*s)^(3/2))/(295147905179352825856*(-s)^(3/2)*s^(3/2)*exp(10*s^(1/2))) - (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(5*s^(1/4)*i)*(-375*s)^(3/2)*i)/(207691874341393105141219853168803840*s^(13/4)*exp(25*s^(1/2))) + (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(5*s^(1/4)*i)*(-375*s)^(3/2)*i)/(2076918743413931051412198531688038400*s^(15/4)*exp(25*s^(1/2))) + (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(15^(1/2)*s^(1/4)*i)*(-375*s)^(3/2)*i)/(207691874341393105141219853168803840*s^(13/4)*exp(25*s^(1/2))) - (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(15^(1/2)*s^(1/4)*i)*(-375*s)^(3/2)*i)/(2076918743413931051412198531688038400*s^(15/4)*exp(25*s^(1/2))))), s, 2))/2978768749568041127021354351067136 + (9346944469561546516875*gamma(3/10)*ilaplace(1/(s^(13/10)*((6003760639686170723358965455476297*gamma(3/10))/(28035470584169798842553923304161280*s^(3/10)) - (22862411300260886193*gamma(3/10))/(124502499794986393600*s^(13/10)) + 454730688161014190625/(9223372036854775808*s) - (113177415720074643*15^(1/2)*(-375*s)^(3/2))/(368934881474191032320*(-s)^(5/2)) + (26947003742874915*15^(1/2)*(-375*s)^(3/2))/(295147905179352825856*(-s)^(3/2)*s^(3/2)) - (16168202245724949*10^(1/2)*(-375*s)^(3/2))/(295147905179352825856*(-s)^(3/2)*s^(3/2)*exp(10*s^(1/2))) - (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(5*s^(1/4)*i)*(-375*s)^(3/2)*i)/(207691874341393105141219853168803840*s^(13/4)*exp(25*s^(1/2))) + (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(5*s^(1/4)*i)*(-375*s)^(3/2)*i)/(2076918743413931051412198531688038400*s^(15/4)*exp(25*s^(1/2))) + (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(15^(1/2)*s^(1/4)*i)*(-375*s)^(3/2)*i)/(207691874341393105141219853168803840*s^(13/4)*exp(25*s^(1/2))) - (33609745164258450522786035802189*15^(1/2)*(-s)^(1/2)*erf(15^(1/2)*s^(1/4)*i)*(-375*s)^(3/2)*i)/(2076918743413931051412198531688038400*s^(15/4)*exp(25*s^(1/2))))), s, 2))/2645678120643460864
:o
Answers (3)
Jan
on 15 Jun 2011
I assume "E(2)" is a typo and you mean "Eg(2)". Perhaps this works:
Value = Eg(2);
eval(Value)
Sean de Wolski
on 15 Jun 2011
double(ans)
perhaps?
or perhaps
doc subs
for s
1 Comment
Jan
on 15 Jun 2011
"for s" ?!
Mohamed Yassin OUKILA
on 16 Jun 2011
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!