Post on 10-Nov-2015
description
transcript
>> x=eps
x =
2.2204e-16
>> y=pi
y =
3.1416
>> 4+4% mi primera operacion
ans =
8
>> 3^4, 4/9
ans =
81
ans =
0.4444
>> 3^4; 4/9
ans =
0.4444
>> 3^4, 4/9
ans =
81
ans =
0.4444
>> 3^4; 4/9
ans =
0.4444
>> 4/4+6
ans =
7
>> 4/(4+6)
ans =
0.4000
>> 3^5*2
ans =
486
>> 3^(5*2)
ans =
59049
>> e=eps
e =
2.2204e-16
>> p=pi
p =
3.1416
>> e^p
ans =
6.6511e-50
>> p^e
ans =
1.0000
>> help sinhelp cos sin Sine of argument in radians. sin(X) is the sine of the elements of X. See also asin, sind.
Overloaded methods: codistributed/sin
Reference page in Help browser doc sin
cos Cosine of argument in radians. cos(X) is the cosine of the elements of X. See also acos, cosd.
Overloaded methods: codistributed/cos
Reference page in Help browser doc cos
>> help tan tan Tangent of argument in radians. tan(X) is the tangent of the elements of X. See also atan, tand, atan2.
Overloaded methods: codistributed/tan
Reference page in Help browser doc tan
>> help asin asin Inverse sine, result in radians. asin(X) is the arcsine of the elements of X. Complex results are obtained if ABS(x) > 1.0 for some element. See also sin, asind.
Overloaded methods: codistributed/asin
Reference page in Help browser doc asin
>> help acos acos Inverse cosine, result in radians. acos(X) is the arccosine of the elements of X. Complex results are obtained if ABS(x) > 1.0 for some element. See also cos, acosd.
Overloaded methods: codistributed/acos
Reference page in Help browser doc acos
>> help atan atan Inverse tangent, result in radians. atan(X) is the arctangent of the elements of X. See also atan2, tan, atand.
Overloaded methods: codistributed/atan
Reference page in Help browser doc atan
>> help sec sec Secant of argument in radians. sec(X) is the secant of the elements of X. Class support for input X: float: double, single See also asec, secd.
Overloaded methods: codistributed/sec
Reference page in Help browser doc sec
>> help csc csc Cosecant of argument in radians. csc(X) is the cosecant of the elements of X. Class support for input X: float: double, single See also acsc, cscd.
Overloaded methods: codistributed/csc
Reference page in Help browser doc csc
>> help cot cot Cotangent of argument in radians. cot(X) is the cotangent of the elements of X. Class support for input X: float: double, single See also acot, cotd.
Overloaded methods: codistributed/cot
Reference page in Help browser doc cot
>> help sec sec Secant of argument in radians. sec(X) is the secant of the elements of X. Class support for input X: float: double, single See also asec, secd.
Overloaded methods: codistributed/sec
Reference page in Help browser doc sec
>> help acsc acsc Inverse cosecant, result in radian. acsc(X) is the inverse cosecant of the elements of X. Class support for input X: float: double, single See also csc, acscd.
Overloaded methods: codistributed/acsc
Reference page in Help browser doc acsc
>> help acot acot Inverse cotangent, result in radian. acot(X) is the inverse cotangent of the elements of X. Class support for input X: float: double, single See also cot, acotd.
Overloaded methods: codistributed/acot
Reference page in Help browser doc acot
>> help sinh sinh Hyperbolic sine. sinh(X) is the hyperbolic sine of the elements of X. See also asinh.
Overloaded methods: codistributed/sinh
Reference page in Help browser doc sinh
>> help cosh cosh Hyperbolic cosine. cosh(X) is the hyperbolic cosine of the elements of X. See also acosh.
Overloaded methods: codistributed/cosh
Reference page in Help browser doc cosh
>> help tanh tanh Hyperbolic tangent. tanh(X) is the hyperbolic tangent of the elements of X. See also atanh.
Overloaded methods: codistributed/tanh
Reference page in Help browser doc tanh
>> help asinh asinh Inverse hyperbolic sine. asinh(X) is the inverse hyperbolic sine of the elements of X. See also sinh.
Overloaded methods: codistributed/asinh
Reference page in Help browser doc asinh
>> help acosh acosh Inverse hyperbolic cosine. acosh(X) is the inverse hyperbolic cosine of the elements of X. See also cosh.
Overloaded methods: codistributed/acosh
Reference page in Help browser doc acosh
>> help atanh atanh Inverse hyperbolic tangent. atanh(X) is the inverse hyperbolic tangent of the elements of X. See also tanh.
Overloaded methods: codistributed/atanh
Reference page in Help browser doc atanh
>> help exp exp Exponential. exp(X) is the exponential of the elements of X, e to the X. For complex Z=X+i*Y, exp(Z) = exp(X)*(COS(Y)+i*SIN(Y)). See also expm1, log, log10, expm, expint.
Overloaded methods: zpk/exp tf/exp codistributed/exp fints/exp xregcovariance/exp
Reference page in Help browser doc exp
>> help log log Natural logarithm. log(X) is the natural logarithm of the elements of X. Complex results are produced if X is not positive. See also log1p, log2, log10, exp, logm, reallog.
Overloaded methods: gf/log codistributed/log fints/log designdev/log
Reference page in Help browser doc log
>> help log10 log10 Common (base 10) logarithm. log10(X) is the base 10 logarithm of the elements of X. Complex results are produced if X is not positive. See also log, log2, exp, logm.
Overloaded methods: codistributed/log10 fints/log10
Reference page in Help browser doc log10
>> help log2 log2 Base 2 logarithm and dissect floating point number. Y = log2(X) is the base 2 logarithm of the elements of X. [F,E] = log2(X) for each element of the real array X, returns an array F of real numbers, usually in the range 0.5 > help sign sign Signum function. For each element of X, sign(X) returns 1 if the element is greater than zero, 0 if it equals zero and -1 if it is less than zero. For the nonzero elements of complex X, sign(X) = X ./ ABS(X). See also abs.
Overloaded methods: codistributed/sign
Reference page in Help browser doc sign
>> x=1.3
x =
1.3000
>> vp=x^2+3*x+1
vp =
6.5900
>> x=pi/6
x =
0.5236
>> y=sin(x)
y =
0.5000
>> x=1
x =
1
>> f=atan(x)
f =
0.7854
>> x=3^(1/2)/2
x =
0.8660
>> p=acos(x)
p =
0.5236
>> g=sin(p)
g =
0.5000
>> a=pi/3
a =
1.0472
>> b=pi/6
b =
0.5236
>> y=abs(a)*sin(a^2)
y =
0.9317
>> y=abs(b)*sin(b^2)
y =
0.1418
>> round(0.3)
ans =
0
>> round(1/3)
ans =
0
>> round(0.5)
ans =
1
>> round(1/2)
ans =
1
>> round(1.65)
ans =
2
>> round(-1.34)
ans =
-1
>> ceil(0.3)
ans =
1
>> ceil(1/3)
ans =
1
>> ceil(0.5)
ans =
1
>> ceil(1/2)
ans =
1
>> ceil(1.65)
ans =
2
>> ceil(-1.34)
ans =
-1
>> floor(0.3)
ans =
0
>> floor(1/3)
ans =
0
>> floor(0.5)
ans =
0
>> floor(1/2)
ans =
0
>> floor(1.65)
ans =
1
>> floor(-1.34)
ans =
-2
>> fix(0.3)
ans =
0
>> fix(1/3)
ans =
0
>> fix(0.5)
ans =
0
>> fix(1/2)
ans =
0
>> fix(1.65)
ans =
1
>> fix(-1.34)
ans =
-1
>> M=[100:-2:88]
M =
100 98 96 94 92 90 88
>> m=M(2)
m =
98
>> M(3:6)
ans =
96 94 92 90
>> M(3:3:6)
ans =
96 90
>> M(1:3:6)
ans =
100 94
>> n=M(7:-2:3)
n =
88 92 96
>> R=[1,4,9;16,25,36]
R =
1 4 9 16 25 36
>> R(2,1)
ans =
16
>> S=transpose(R)
S =
1 16 4 25 9 36
>> T=[eye(3) S]
T =
1 0 0 1 16 0 1 0 4 25 0 0 1 9 36
>> V=[T(:,2) T(:,4)]
V =
0 1 1 4 0 9
>> W=T([2,3],[1,5])
W =
0 25 0 36
>> X=T([1,2],[2,3,4,5])
X =
0 0 1 16 1 0 4 25
>> N=T([1,2,3],[2,3,4])
N =
0 0 1 1 0 4 0 1 9
>> D=blkdiag(0,0,9)
D =
0 0 0 0 0 0 0 0 9