You are on page 1of 16

>> x=6;y=5;z=8

z=

>> ((y*(z^2))-((2*y)/(5.2*x))^((4.78*x)/5)
??? ((y*(z^2))-((2*y)/(5.2*x))^((4.78*x)/5)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

>> (y*(z^2))-((2*y)/(5.2*x))^((4.78*x)/5)

ans =

319.9985

>> ((44*z)/(2*x^3))+(((5^y)*x)/(y+log10(z)))

ans =

3.1771e+003

>> x=120

x=

120

>> tan(2*x)

ans =

2.9021

>> (2*tan(x))/(1-((tan(x))^2))

ans =

2.9021

>> x=-4120

x=

-4120

>> tan(2*x)

ans =

0.4199

>> (2*tan(x))/(1-((tan(x))^2))

ans =

0.4199

>> x=64000000009999

x=

6.4000e+013

>> tan(2*x)

ans =

-0.8982

>> (2*tan(x))/(1-((tan(x))^2))

ans =

-0.8982

>> ((cos((x)/2))^2)

ans =

0.3211

>> ((tan(x))+(sin(x)))/(2*(tan (x)))

ans =

0.3211

>> x=73

x=

73

>> ((cos((x)/2))^2)

ans =

0.1319

>> ((tan(x))+(sin(x)))/(2*(tan (x)))

ans =

0.1319

>> x=95

x=

95

>> ((cos((x)/2))^2)

ans =

0.8651

>> ((tan(x))+(sin(x)))/(2*(tan (x)))

ans =

0.8651

>> (sin(2*x))\
??? (sin(2*x))\
|
Error: Expression or statement is incomplete or incorrect.

>> (sin(2*x))

ans =

0.9978

>> (2*(sin(x))*(cos(x)))

ans =

0.9978

>> x=81

x=

81

>> (sin(2*x))

ans =

-0.9785

>> (2*(sin(x))*(cos(x)))

ans =

-0.9785

>> x=-1

x=

-1

>> (sin(2*x))

ans =

-0.9093

>> (2*(sin(x))*(cos(x)))

ans =

-0.9093

>> (-a,b,c,d;0,0,0,d;a,b,c,d;8,4,2,d)
??? (-a,b,c,d;0,0,0,d;a,b,c,d;8,4,2,d)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

>> (-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1)
??? (-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

>> [-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

ans =

-1

>> a=[-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

a=

-1

>> b=[8,4,10,68]

b=

10

68

>> [8;4;10;68]

ans =

8
4
10
68

>> a\b
??? Error using ==> mldivide
Matrix dimensions must agree.

>> b\a
??? Error using ==> mldivide
Matrix dimensions must agree.

>> b*inv(a)

ans =

-8.0000 55.0000 24.0000 -3.0000

>> b\a
??? Error using ==> mldivide
Matrix dimensions must agree.

>> b/a

ans =

-8.0000 55.0000 24.0000 -3.0000

>> a=[-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

a=

-1

>> [-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

ans =

-1

>> [-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

ans =

-1

>> [-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

ans =

-1

>> [-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

ans =

-1

>> [-1,1,1,1;0,0,0,1;1,1,1,1;8,4,2,1]

ans =

-1

>> a=[-1,1,-1,1;0,0,0,1;1,1,1,1;8,4,2,1]

a=

-1

-1

>> a\b
??? Error using ==> mldivide
Matrix dimensions must agree.

>> b/a

ans =

-2.6667 63.0000

8.0000 -0.3333

>> b=[8;4;10;68]

b=

8
4
10
68

>> b*inv(a)
??? Error using ==> mtimes
Inner matrix dimensions must agree.

>>
>> a

a=

-1

-1

>> b

b=

8
4
10
68

>> b*inv(a)
??? Error using ==> mtimes
Inner matrix dimensions must agree.

>> a\b

ans =

7
5
-6
4

>> t=0:0.5:8

t=

Columns 1 through 7

0.5000

1.0000

1.5000

2.0000

2.5000

3.0000

Columns 8 through 14

3.5000

4.0000

4.5000

5.0000

Columns 15 through 17

7.0000

7.5000

8.0000

>> linspace(0:0.5:8)
??? Input argument "n" is undefined.

Error in ==> linspace at 20


n = double(n);

>> linspace(0,0.5,8)

ans =

5.5000

6.0000

6.5000

Columns 1 through 7

0.0714

0.1429

0.2143

0.2857

0.3571

0.4286

1.5000

2.0000

2.5000

3.0000

Column 8

0.5000

>> linspace(0,8,17)

ans =

Columns 1 through 7

0.5000

1.0000

Columns 8 through 14

3.5000

4.0000

4.5000

Columns 15 through 17

7.0000

>>

7.5000

8.0000

5.0000

5.5000

6.0000

6.5000

You might also like