Jump to content


Photo

Executar Funções Matematicas


  • Faça o login para participar
2 replies to this topic

#1 odairsk8

odairsk8

    Desenvolvedor - Centro de Inovação

  • Usuários
  • 23 posts
  • Sexo:Não informado

Posted 12/01/2007, 16:44

Oi para todos ...

Gostaria de saber se é possivel eu realizar calculos matemáticos com o .Net , alguma classe ... alguma coisa ...

O q eu realmente precisava era de uma função que calculasse o seno de um número ...

ex : sen(x)

Para que eu possa realizar uma determinada funcionalidade aki na empresa ... tenho q achar o seno e o coseno de alguns numeros ...

Agradeço desde ja a atenção ...

Obrigado

#2 siola

siola

    Usuário

  • Usuários
  • 894 posts
  • Sexo:Masculino
  • Localidade:SBC - SP
  • Interesses:ASP, .NET, javascript

Posted 12/01/2007, 21:07

Math.Sin([angulo])


#3 MACUL

MACUL

    Doutor

  • Usuários
  • 770 posts
  • Sexo:Masculino
  • Localidade:SP

Posted 15/01/2007, 11:02

All Functions
Abs
Acos
Asin
Atan
Atan2
BigMul
Ceiling
Cos
Cosh
DivRem
E
Equals
Exp
Floor
IEEERemainder
Log
Log10
Max
Min
PI
Pow
ReferanceEquals
Round
Sign
Sin
Sinh
Sqrt
Tan
Tanh
Truncate



Trigonometric functionsAtn
Cos
Sin
Tan

General
Exp
Log
Sqr

Genarete Radom Numbers
Randomize

Rnd
Rnd() Returns a random number between 0 and 1. Used in conjunction with Randomizestatement to initialize the random number generator.


Get Absolute Value
Abs
Math.Abs() Returns the absolute value.
Math.Abs(-10) returns 10.

Get the Sign of an Expression
Sgn

Perform Numeric Conversions
Fix
Fix() Returns the integer portion of a number.
Fix(5.3333) returns 5.

Int
Int() Returns the integer portion of a number.
Int(5.3333) returns 5.






Math.Ceiling() Returns an integer that is greater than or equal to a number.
Math.Ceiling(5.333) returns 6.

Math.Floor() Returns an integer that is less than or equal to a number.

Math.Max() Returns the larger of two numbers.
Math.Max(5,7) returns 7.

Math.Min() Returns the smaller of two numbers.
Math.Min(5,7) returns 5.

Math.Pow() Returns a number raised to a power.
Math.Pow(12,2) returns 144.


Math.Round() Rounds a number to a specified number of decimal places. Rounds up on .5.
Math.Round(1.1234567,5) returns 1.12346.

Math.Sign() Returns the sign of a number. Returns -1 if negative and 1 if positive.
Math.Sign(-5) returns -1.

Math.Sqrt() Returns the square root of a positive number.
Math.Sqrt(144) returns 12.
*************** M ** A ** C ** U ** L ***************

*************************************************




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq