Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
%This code segment aims to demostrate the mapping between the independent
%variable x and its depedent variable y in a simple second order equation
%with one independent variable
% Email: chixinxiao@gmail.com, UoW, AU, 27 Aug 2018
clear all; clc;
x=[-5:5];
y=x.^2+2*x-4
plot(x,y,'bv')
grid on
xlabel('\it x');
ylabel('\it y=x^{2}+2*x-4 ')
%%
%How to solve it?
syms x1
y1=x1^2+2*x1-4;
solve(y1,x1)
% One can plot the root points at the figure obtained by the above code
% segment
hold on
plot(-3.2361,0,'k.')
plot(1.2361,0,'k.')
Cita come
Siyi Xiao (2026). For a high school student to learn the 2nd order equation (https://it.mathworks.com/matlabcentral/fileexchange/68640-for-a-high-school-student-to-learn-the-2nd-order-equation), MATLAB Central File Exchange. Recuperato .
Informazioni generali
- Versione 1.0.1 (1,3 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
