how can i type this function in matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/459275/image.png)
3 Kommentare
Walter Roberson
am 13 Dez. 2020
Is it the (5+3x) that is being raised to a power, or is it 5 + 3 * (x to a power) ?
dpb
am 13 Dez. 2020
On re-looking, I'll bet your second interpretation is the correct one, Walter. My z then is of no help and is in fact, wrong.
Antworten (1)
Abhishek Gupta
am 16 Dez. 2020
Hi,
As per my understanding, you want to write the 'g(x)' function in MATLAB. On assuming that in the given function (5+3x) is raised to a power, the solution would look something like as follows: -
syms x g(x) f(x)
f(x) = 5+3*x;
g(x) = sqrt(((x^f(x))^f(x))^f(x));
Or if it is 5 + 3*(x to power), then the implementation would be: -
syms x g(x)
g(x) = sqrt(x^(5+3*x^(5+3*x^(5+3*x))));
0 Kommentare
Siehe auch
Kategorien
Mehr zu Assumptions 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!