summaryrefslogtreecommitdiff
path: root/60/CH3/EX3.10/ex_10.sce
blob: 855fd40dfdb94ff5c89c56785fc2f596b6a18ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//example(3.10)

 c=[-3 1 0 1]]
 p3=poly(c,'x','coeff')
 roots(p3)
 //here
  xset('window',0);                                   
x=-2:.01:2.5;                                             // defining the range of x.
deff('[y]=f(x)','y=x^3+x-3');                  //defining the cunction 
y=feval(x,f);
 
a=gca(); 
 
a.y_location = "origin";
 
a.x_location = "origin"; 
plot(x,y)                                                  // instruction to plot the graph

title(' y =x^3+x-3')