Matlab

Páginas: 5 (1032 palabras) Publicado: 11 de septiembre de 2012
Obtenga informacion de las siguientes funciones

sin
Sine of argument in radians
Syntax
Y = sin(X)
Description
The sin function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Y = sin(X) returns the circular sine of the elements of X.
Examples
Graph the sine function over the domain [pic].
x = -pi:0.01:pi;plot(x,sin(x)), grid on
[pic]
The expression sin(pi) is not exactly zero, but rather a value the size of the floating-point accuracy eps, because pi is only a floating-point approximation to the exact value of [pic].
Algorithm
sin uses FDLIBM, which was developed at SunSoft, a Sun Microsystems, Inc. business, by Kwok C. Ng, and others. For information about FDLIBM, see http://www.netlib.org.
See Alsosind, sinh, asin, asind, asinh

cos

Cosine of argument in radians

Syntax

Y = cos(X)

Description

The cos function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Y = cos(X) returns the circular cosine for each element of X.
[pic]


Algorithm

cos uses FDLIBM, which was developed at SunSoft, a SunMicrosystems business, by Kwok C. Ng, and others. For information about FDLIBM, see http://www.netlib.org.

See Also

cosd, cosh, acos, acosd, acosh

tan

Tangent of argument in radians

Syntax

Y = tan(X)

Description

The tan function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Y = tan(X) returns the circulartangent of each element of X.

Examples

Graph the tangent function over the domain [pic].
x = (-pi/2)+0.01:0.01:(pi/2)-0.01;
plot(x,tan(x)), grid on
[pic]


Algorithm

tan uses FDLIBM, which was developed at SunSoft, a Sun Microsystems, Inc. business, by Kwok C. Ng, and others. For information about FDLIBM, see http://www.netlib.org.

See Also

tand, tanh, atan, atan2, atand, atanhasin

Inverse sine; result in radians

Syntax

Y = asin(X)

Description

Y = asin(X) returns the inverse sine (arcsine) for each element of X. For real elements of X in the domain [pic], asin(X) is in the range [pic]. For real elements of x outside the range [pic], asin(X) is complex.
The asin function operates element-wise on arrays. The function's domains and ranges include complexvalues. Allangles are in radians.
[pic]


acos

Inverse cosine; result in radians

Syntax

Y = acos(X)

Description

Y = acos(X) returns the inverse cosine (arccosine) for each element of X. For real elements of X in the domain [pic], acos(X) is real and in the range [pic]. For real elements of X outside the domain [pic], acos(X) is complex.
The acos function operates element-wise onarrays. The function's domains and ranges include complex values. Allangles are in radians.
[pic]

atan

Inverse tangent; result in radians

Syntax

Y = atan(X)

Description

Y = atan(X) returns the inverse tangent (arctangent) for each element of X. For real elements of X, atan(X) is in the range [pic].
The atan function operates element-wise on arrays. The function's domains andranges include complex values. Allangles are in radians.
[pic]


exp

[pic]


log

[pic]


log10

[pic]


log2

Base 2 logarithm and dissect floating-point numbers into exponent and mantissa
[pic]


sqrt

[pic]

Aplicando comando “clc”

[pic]



[pic]

Ejecute la tres funciones para “10*pi”:

>> 10*pi

ans =

31.4159 (esta en forma predefinida por elsistema/muestra 2digitos enteros y cuatro decimales)

>>formatlong

>> 10*pi

ans =

31.415926535897931 (nos muestra la mayor cantidad de datos con las cuales esta trabaja/muestra 2 digitos enteros y 15 decimales)

>>format compact

>> 10*pi

ans =

31.415926535897931(es usada para comprimir los datos del sistem,a cuando se realizan operaciones/muestra 2 digitos enteros y 15...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • matlab
  • Matlab
  • Matlab
  • matlab
  • MATLAB
  • MATLAB
  • Matlab
  • Matlab

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS