How to plot the following function?

댓글 수: 5

Voss
Voss 2023년 10월 7일
What have you tried so far?
Reema Noor
Reema Noor 2023년 10월 7일
I have this answer but I didn’t understand how they solve it like this
Voss
Voss 2023년 10월 7일
What answer?
Sam Chak
Sam Chak 2023년 10월 7일
@Reema Noor, Refer to the provided example, then follow the code and plot some of the functions. Copy and paste the code by clicking the icon , then hit the 'Play' icon . If coded correctly, it should generate a plot.
Walter Roberson
Walter Roberson 2023년 10월 7일
Reminder:
Octave is a different product, not made by Mathworks.
The purpose of Octave, the reason it exists at all, is to force Mathworks to either go out of business or to force Mathworks to open-source everything about its software products.
The Free Software Foundation exists for explicitly political purposes -- to attempt to force an end to proprietary software.
It is thus inappropriate to ask for assistance with Octave here. If you want assistance with Octave, find another support resource.

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

답변 (1개)

Sam Chak
Sam Chak 2023년 10월 7일

0 개 추천

댓글 수: 2

Sam Chak
Sam Chak 2023년 10월 7일
See also:
By the way, I remember that my math teacher taught that the logarithm function is defined only for positive real numbers. But the question tells you to plot from x = -10 to x = 12. Can you really take the logarithm of a negative number? Sure this is not a typo, like positive "+10"?
Not really true. The log function will return real results for positive real numbers. However, it is valid to extend that definition to the entire real line, and to the complex plane.
MATLAB can compute the log of negative numbers (the log will be imaginary), or of complex numbers. They will be complex in the latter case.
log(-1)
ans = 0.0000 + 3.1416i
log(1+3i)
ans = 1.1513 + 1.2490i
And those logs make sense in mathematics.

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

카테고리

도움말 센터File Exchange에서 Octave에 대해 자세히 알아보기

제품

질문:

2023년 10월 7일

댓글:

2023년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by