Evaluate integral at specific value
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmed Abdulla
am 7 Jun. 2021
Beantwortet: Walter Roberson
am 7 Jun. 2021
I have the following mathematical function f=5sin(x), I use the int(f) to obtain the integral of my expression. Is there a way for me to evaluate the result of the integral at a specifc value, lets say 4,32,
3 Kommentare
Akzeptierte Antwort
Walter Roberson
am 7 Jun. 2021
syms x
f = 5*sin(x)
fint = int(f,x,0,x)
a = 4.32
fa = subs(fint, x, a)
If you are expecting a decimal value, then you are wanting to get an approximation at the location, rather than the value at the location.
double(fa)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!