How can I solve this problem in the matlab program ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vuqar Samedov
am 21 Dez. 2020
Beantwortet: Walter Roberson
am 22 Dez. 2020
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/467310/image.png)
3 Kommentare
Timo Dietz
am 21 Dez. 2020
Some parenthesis are missing and u seems to be wrongly defined. Nevertheless, Matlab seems to calculate intemediate steps which prevents the final elimination of values on symbolic side.
Akzeptierte Antwort
David Hill
am 21 Dez. 2020
It does equal 1
syms u
int(exp(-u^2),-inf,inf);
1 Kommentar
Timo Dietz
am 21 Dez. 2020
Yes it does, but he substitution does not work as expected. Even with all parenthesis set and u defined correctly, Matlab seems to calculate intermediate values (e.g. sqrt(2)) and finally is not able to eliminate these.
Weitere Antworten (1)
Walter Roberson
am 22 Dez. 2020
syms x a b u
Pi = sym(pi)
f = 1/(b*sqrt(2*Pi))*exp(-1/(2*b^2)*(x-a)^2)
U = (x-a)/(b*sqrt(2));
DU = diff(U,x);
B = solve(u == U, b)
fs = subs(f/DU, b, B)
int(fs,-inf,inf)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical 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!