Vous êtes sur la page 1sur 2

4/15/2015

ArcTan, ArcCos, ArcSin

search...

You are here: Home

AutoCad VB

15 | 04 | 2015

ArcTan, ArcCos, ArcSin

Ads by Google

Main Menu

C++ Download
Arcsin
Math Calculator

Home
AutoCad VB
General .NET
Inventor VB.NET
Excel VB
Access VB
MS Project .NET
Word VB

Ads by Google

Excel VBA Examples


Trigonometry
Math Function

Login

ARCTAN, ARCCOS, ARCSIN


Visual Basic does not have a function to calculate ArcTan, ArcSin or ArcCos. Vb.Net has.

Sign up now and upload


your code to the website.

In Vb.Net the arc functions are places in the System.Math namespace.


Import the name space and use the functions below.

User Name

ASin()
ACos()
ATan()

Password

Remember Me
Search website
Find Enter search text

Log in

For VBA use:

Forgot your password?


Most Read

Public Function Arccos(X) As Double

Forgot your username?

Copy Listview Row(s) to


Excel or Word through
the Clipboard

If Round(X, 8) = 1# Then Arccos = 0#: Exit Function


If Round(X, 8) = -1# Then Arccos = PI: Exit Function
Arccos = Atn(-X / Sqr(-X * X + 1)) + 2 * Atn(1)

Create an account

AutoCad VBA 2010, 2011,


2012, 2013, 2014, 2015
enabler

End Function

Multiple Columns in
Listbox
ArcTan, ArcCos, ArcSin
Insert Block
Database Driven Block
Manager [UPDATED]

BROCHURE

Preview Webcam and


capture image
Run AutoCad Macro from
Excel

Help us to continue.....

Public Function Arcsin(X As Double) As Double


If (Sqr(1 - X * X) <= 0.000000000001) And (Sqr(1 - X * X) >= -0.000000000001) Then
Arcsin = PI / 2
Else
Arcsin = Atn(X / Sqr(-X * X + 1))
End If
End Function

FIND A DEALER
DISCLAIMER

Articles View Hits


1518902

DRIVE AWAY2

FROM

TEST DRIVE

FIND OUT MORE

19,990 - 31,540
$

BONUS $1000 EFTPOS CARD

Lancer XLS CVT Auto shown $31,540

Latest Articles

Datagridview Select Row


on Right Click Mouse
Scroll to\Select
Datagridview Last Row

Create Polyline
Insert Dynamic Block and
set variables

Statistics

Public Function ArcTan(ByVal X As Double, ByVal Y As Double) As Double


If X = 0 And Y = 0 Then
Arctan= 0
Else
If X = 0 Then X = 0.00000000001
Arctan = Atn(Y / X) - PI * (X < 0)
End If
End Function

Inventor Names of
Ribbons and RibbonTab
VB error numbers and
descriptions Overview
Shut Down Computer
Search file in directory by
name
Hide or Show all Sheets

Download the source code for an arc calculator below (registered users only).

Excel Save and Recover


Formulas using VBA
Add Bullets to Pasted
text
Excel Remove all Custom
Styles

Arc calculation screen


< Prev Next >

http://visiblevisual.com/jupgrade/index.php/75-arctan-arccos-arcsin

1/2

4/15/2015

ArcTan, ArcCos, ArcSin

We have 21 guests and no members online

http://visiblevisual.com/jupgrade/index.php/75-arctan-arccos-arcsin

2/2