GNU Octave: fplot exponent problem
up vote
0
down vote
favorite
I use GNU Octave 4.4.1 (x86_64-pc-linux-gnu on Arch Linux), and I have problem with fplot function. I would like to know why
fplot(@(x) 1/(1+25*x.^2),[-1,1])
Have a different result of
fplot(@(x) (1+25*x.^2).^-1,[-1,1])
(the latter returns the correct graphic)
Had the exact same problem with my students in a windows version of Octave 4.4.1.
I would like to know if it is an actual error or there's a fancy explanation for why the latter command is correct and the first one is wrong (so I can try to convince my students that they should use GNU Octave. OK, I'll try it anyway).
octave
New contributor
add a comment |
up vote
0
down vote
favorite
I use GNU Octave 4.4.1 (x86_64-pc-linux-gnu on Arch Linux), and I have problem with fplot function. I would like to know why
fplot(@(x) 1/(1+25*x.^2),[-1,1])
Have a different result of
fplot(@(x) (1+25*x.^2).^-1,[-1,1])
(the latter returns the correct graphic)
Had the exact same problem with my students in a windows version of Octave 4.4.1.
I would like to know if it is an actual error or there's a fancy explanation for why the latter command is correct and the first one is wrong (so I can try to convince my students that they should use GNU Octave. OK, I'll try it anyway).
octave
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I use GNU Octave 4.4.1 (x86_64-pc-linux-gnu on Arch Linux), and I have problem with fplot function. I would like to know why
fplot(@(x) 1/(1+25*x.^2),[-1,1])
Have a different result of
fplot(@(x) (1+25*x.^2).^-1,[-1,1])
(the latter returns the correct graphic)
Had the exact same problem with my students in a windows version of Octave 4.4.1.
I would like to know if it is an actual error or there's a fancy explanation for why the latter command is correct and the first one is wrong (so I can try to convince my students that they should use GNU Octave. OK, I'll try it anyway).
octave
New contributor
I use GNU Octave 4.4.1 (x86_64-pc-linux-gnu on Arch Linux), and I have problem with fplot function. I would like to know why
fplot(@(x) 1/(1+25*x.^2),[-1,1])
Have a different result of
fplot(@(x) (1+25*x.^2).^-1,[-1,1])
(the latter returns the correct graphic)
Had the exact same problem with my students in a windows version of Octave 4.4.1.
I would like to know if it is an actual error or there's a fancy explanation for why the latter command is correct and the first one is wrong (so I can try to convince my students that they should use GNU Octave. OK, I'll try it anyway).
octave
octave
New contributor
New contributor
edited Dec 5 at 19:30
Rui F Ribeiro
38.4k1479128
38.4k1479128
New contributor
asked Dec 5 at 18:57
Felipo Bacani
1
1
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Felipo Bacani is a new contributor. Be nice, and check out our Code of Conduct.
Felipo Bacani is a new contributor. Be nice, and check out our Code of Conduct.
Felipo Bacani is a new contributor. Be nice, and check out our Code of Conduct.
Felipo Bacani is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f486214%2fgnu-octave-fplot-exponent-problem%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown