I need to plot this in python.
y=(1-x) ^3 -2.
-1≤ x ≤ 5.(How do I define this range?)

 Akzeptierte Antwort

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 22 Mai 2021

1 Stimme

In MATLAB, you can plot it using:
y=@(x)((1-x).^3-2);
fplot(y, [-1, 5]);

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by