how can i type this function in matlab?

1 次查看(过去 30 天)
  3 个评论
Walter Roberson
Walter Roberson 2020-12-13
Is it the (5+3x) that is being raised to a power, or is it 5 + 3 * (x to a power) ?
dpb
dpb 2020-12-13
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.

请先登录,再进行评论。

回答(1 个)

Abhishek Gupta
Abhishek Gupta 2020-12-16
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))));

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by