Вы находитесь на странице: 1из 7

--> x=linspace(-%pi, %pi,40)

--> y=linspace(-%pi, %pi,40)


--> plot3d(x,y,sinh(x)cos(y))

-->a=2;b=sqrt(a)
b =

1.4142136

-->s=.5; log(s^2-2*s*cos(%pi/5)+1)
ans =

- 0.8187489

-->s=.95; log(s^2-2*s*cos(%pi/5)+1)
ans =

- 1.006851

-->s=1; log(s^2-2*s*cos(%pi/5)+1)
ans =

- 0.9624237
-->s=.95; log(s^2-2*s*cos(%pi/5)+1)
ans =

- 1.006851

-->s=1; log(s^2-2*s*cos(%pi/5)+1)
ans =

- 0.9624237

-->x=2+3*%i;

-->abs(x)
ans =

3.6055513

-->real(x)
ans =

2.

-->imag(x)
ans =

3.

-->x=2+3*%i;y=1-1*%i;

-->z1=x-y
z1 =

1. + 4.i

-->z3=x/y
z3 =

- 0.5 + 2.5i
-->t=[0.5]
t =

0.5

-->t=[0:5]'
t =

0.
1.
2.
3.
4.
5.
-->p=1+2+3+4+5+6+7+8+9+10+11+12+...
-->13+14+15+16+17+18+18+19+21+22+23+24+25
p =

323.

-->q=1/2+1/3+1/4+1/5+1/6+...
-->1/7+1/8+1/9+1/10+1/11+1/12
q =

2.1032107
-->A=[12345
-->678910
-->1112131415]

A =

12345.
678910.
1.112D+09

-->s=%s;

-->x=roots(2*s+3*s^2+s^3)
x =

- 2.
- 1.
0

-->s=%s;

-->z=roots(6.5625+22*s+21.5*s^2+8*s^3+s^4)
z =

- 3.5
- 2.5
- 1.5
- 0.5

-->s=%s;

-->sys=syslin('c',((1+2*s)*(1+3*s))/(s*(s*s+s+1)));

-->plzr(sys)

-->calendar(2013,6)
ans =

ans(1)

Jun 2013

ans(2)

Tu

Th

Sat

Sun

ans(3)

0.

0.

0.

0.

0.

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

22.

23.

24.

25.

26.

27.

28.

29.

30.

0.

0.

0.

0.

0.

0.

0.

Conclusion
We therefore conclude that there are still lots of things that can be done with Scilab.
In this activity, we learn how to play with the console and editor. First is the
displaying graphical window which is plotted on Scilab in graphical window. Next is
Editing Demo which evaluates the functions. We also learned that instead of typing
the whole line we can press the up arrow which is the command line editing. Scilab
can also handle complex numbers as easily as real numbers. We also used
vectorized functions, the functions called with vectorial arguments. Lastly long
command line is used to divide expressions among two or more lines. In long
matrix, expression can be written in separate line

Вам также может понравиться