How do I write the following in matlab ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I just need something like a=... and b= ...
2 Kommentare
Antworten (2)
Asad (Mehrzad) Khoddam
am 5 Sep. 2020
H1 = (x*(1+x^2)*(1+2*x)^2)^2.3 / -log(abs(tan(y))) + (-log(abs(tan(y)))-x) /(x*(1+x^2)*(1+2*x)^2);
R2 = sinh(sqrt(2*x+(sin(y)^2))/((x+log(abs(tan(y))))^1.3 + abs(x)))-(x+log(abs(tan(y)))+cos(y))/(2*x +(sin(y)^2))^(1/3);
1 Kommentar
the cyclist
am 5 Sep. 2020
Bearbeitet: the cyclist
am 5 Sep. 2020
Assuming that ctg is supposed to be cotangent, those will need to be changed from tan(y) to cot(y).
If x and y are vectors and not scalars, many of operations here will need to be changed to element-wise.
Asad (Mehrzad) Khoddam
am 5 Sep. 2020
H1 = (x.*(1+x.^2).*(1+2*x).^2).^2.3 ./ log(abs(cot(y))) + (log(abs(cot(y)))-x) ./(x.*(1+x.^2).*(1+2*x).^2);
R2 = sinh(sqrt(2*x+(sin(y).^2))/((x+log(abs(tan(y)))).^1.3 + abs(x)))-(x+log(abs(tan(y)))+cos(y))./(2*x +(sin(y).^2)).^(1/3);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!