Calculate the cube sqrt?

조회 수: 61 (최근 30일)
Samar Radah
Samar Radah 2020년 2월 1일
답변: John D'Errico 2020년 2월 1일
3^sqrt(0.18)
  댓글 수: 2
Samar Radah
Samar Radah 2020년 2월 1일
John D'Errico
John D'Errico 2020년 2월 1일
The NATURAL log function in MATLAB is just log, thus log to the base e.
If you want to compute the log base 10, you use log10.

댓글을 달려면 로그인하십시오.

답변 (3개)

Ioannis Andreou
Ioannis Andreou 2020년 2월 1일
nthroot(0.18, 3)
  댓글 수: 1
John D'Errico
John D'Errico 2020년 2월 1일
Actually, that is NOT the same as what was asked.

댓글을 달려면 로그인하십시오.


Samar Radah
Samar Radah 2020년 2월 1일
how to represent ln in matlab?

John D'Errico
John D'Errico 2020년 2월 1일
You want the cube of the sqrt of 0.18? Or do you want to raise 3 to that power, as you wrote? In that case,
3^sqrt(0.18)
works just fine. I'm not sure why it is a problem.
If your question is really how to compute the cube of the square root as you said but not what you wrote, that is even easier. Look at it like this. What is sqrt(0.18)?
sqrt(0.18) = 0.18^(1/2)
What is the cube of that?
0.18^(1/2) * 0.18^(1/2) * 0.18^(1/2)
Which of course, is just
0.18^(3/2)
Or, you could write
sqrt(0.18)^3
Finally, the ln function, the natural log, is written as log in MATLAB, the log to the base e.
So what is your real question?

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by