summaryrefslogtreecommitdiff
path: root/1340/CH2/EX2.26/2_26.sce
blob: b3db06ac62f266f1c7771732108e2526fa447a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc;
syms y y1 y2 x;
t = %pi/2;j = 0:%pi;
y = 5*cos(t);disp(y,"at x = pi/2, y =");
y1 = -5*sin(t);disp(y1,"at x = pi/2, dy/dt =");
printf("\n  neglecting higher order terms");
k = y + y1*(x-%pi/2);
disp(k,"linearized y =");