Math Activex

    No Commentson Math Activex
Math Activex 4,5/5 5667reviews

free download driver modem telkomsel flash indonesia

Math Activex

Math Functions (Visual Basic) • • 3 minutes to read • Contributors • • • • • • In this article The methods of the class provide trigonometric, logarithmic, and other common mathematical functions. Remarks The following table lists methods of the class. You can use these in a Visual Basic program..NET Framework method Description Returns the absolute value of a number. Returns the angle whose cosine is the specified number.

Returns the angle whose sine is the specified number. Returns the angle whose tangent is the specified number. Returns the angle whose tangent is the quotient of two specified numbers. Returns the full product of two 32-bit numbers. Returns the smallest integral value that's greater than or equal to the specified Decimal or Double. Returns the cosine of the specified angle.

How can the answer be improved? Return Math.Log(value + Math.Sqrt(value * value + 1.0)) End Function Example. This example uses the Round method of the Math class to round a number to the nearest integer. Dim MyVar2 As Double = Math.Round(2.8) Example. This example uses the Sign method of the Math class to determine the sign of a number.

Returns the hyperbolic cosine of the specified angle. Returns the quotient of two 32-bit or 64-bit signed integers, and also returns the remainder in an output parameter. Returns e (the base of natural logarithms) raised to the specified power. Returns the largest integer that's less than or equal to the specified Decimal or Double number. Returns the remainder that results from the division of a specified number by another specified number.

Returns the natural (base e) logarithm of a specified number or the logarithm of a specified number in a specified base. Returns the base 10 logarithm of a specified number. Returns the larger of two numbers. Returns the smaller of two numbers. Returns a specified number raised to the specified power.

Returns a Decimal or Double value rounded to the nearest integral value or to a specified number of fractional digits. Returns an Integer value indicating the sign of a number. Returns the sine of the specified angle. Beyond Compare Windows. Returns the hyperbolic sine of the specified angle. Returns the square root of a specified number. Returns the tangent of the specified angle. Returns the hyperbolic tangent of the specified angle.

Calculates the integral part of a specified Decimal or Double number. To use these functions without qualification, import the namespace into your project by adding the following code to the top of your source file: Imports System.Math Example This example uses the method of the class to compute the absolute value of a number.

' Returns 50.3. Dim MyNumber1 As Double = Math.Abs(50.3) ' Returns 50.3. Dim MyNumber2 As Double = Math.Abs(-50.3) Example This example uses the method of the class to calculate the value of pi. Public Function GetPi() As Double ' Calculate the value of pi.

Return 4.0 * Math.Atan(1.0) End Function Example This example uses the method of the class to return the cosine of an angle. Public Function Sec(ByVal angle As Double) As Double ' Calculate the secant of angle, in radians. Return 1.0 / Math.Cos(angle) End Function Example This example uses the method of the class to return e raised to a power. Public Function Sinh(ByVal angle As Double) As Double ' Calculate hyperbolic sine of an angle, in radians. Return (Math.Exp(angle) - Math.Exp(-angle)) / 2.0 End Function Example This example uses the method of the class to return the natural logarithm of a number. Public Function Asinh(ByVal value As Double) As Double ' Calculate inverse hyperbolic sine, in radians. Return Math.Log(value + Math.Sqrt(value * value + 1.0)) End Function Example This example uses the method of the class to round a number to the nearest integer.

Dim MyVar2 As Double = Math.Round(2.8) Example This example uses the method of the class to determine the sign of a number. Dim MySign1 As Integer = Math.Sign(12) ' Returns -1. Dim MySign2 As Integer = Math.Sign(-2.4) ' Returns 0. Dim MySign3 As Integer = Math.Sign(0) Example This example uses the method of the class to return the sine of an angle. Public Function Csc(ByVal angle As Double) As Double ' Calculate cosecant of an angle, in radians.

Return 1.0 / Math.Sin(angle) End Function Example This example uses the method of the class to calculate the square root of a number. Dim MySqr1 As Double = Math.Sqrt(4) ' Returns 4.1272. Dim MySqr2 As Double = Math.Sqrt(23) ' Returns 0. Dim MySqr3 As Double = Math.Sqrt(0) ' Returns NaN (not a number). Dim MySqr4 As Double = Math.Sqrt(-4) Example This example uses the method of the class to return the tangent of an angle.

Public Function Ctan(ByVal angle As Double) As Double ' Calculate cotangent of an angle, in radians. Return 1.0 / Math.Tan(angle) End Function Requirements Class: Namespace: Assembly: mscorlib (in mscorlib.dll) See Also Feedback.

Advertisement ecMathExpr is an ActiveX control for Visual Basic programs, for compiling and evaluating math expressions created at runtime, from within your VB projects. License Shareware (Free to Try) Date Added Price USD $62.00 Category / Filesize 122.9 KB Author ecMathExpr is an ActiveX control for Visual Basic programs, for compiling and evaluating math expressions created at runtime, from within your VB projects. * Compiled, runs faster than simple parser methods * Define any number of variables and assign values to them. * Pre-compile 'user-defined' functions to use in other math expressions. * Compile multiple math expressions that can use the pre-defined variables and user functions.

* Evaluate (fast and repeatedly) any of the compiled expressions. * Arithmetic operators: ( ) + - * / ^ mod * Boolean operators: not, and, or, xor * Logical operators: = >>=.