how to write sqrtroot power 7 ?
8 ビュー (過去 30 日間)
古いコメントを表示
Hi,
i m trying to write this function in MatLab g(x) = sqrt^7(14x-7) but i don t know how to write the power of a root.
I would love to learn how to do it,
thanks
0 件のコメント
採用された回答
Dyuman Joshi
2024 年 2 月 22 日
編集済み: Dyuman Joshi
2024 年 2 月 22 日
g = @(x) sqrt(14.*x - 7).^7
g(2)
g(1/2)
g([1/2 2])
2 件のコメント
その他の回答 (2 件)
Hassaan
2024 年 2 月 22 日
編集済み: Hassaan
2024 年 2 月 22 日
x = 2; % Example value for x
resultFromRootFunction = nthroot(14*x - 7, 7);
resultFromPowerFunction = (14*x - 7)^(1/7);
disp(['Using nthroot: ' num2str(resultFromRootFunction)]);
disp(['Using power operator: ' num2str(resultFromPowerFunction)]);
MATLAB Basic Training:
To learn about MATLAB basic
References:
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!