5 AutoLisp Programming : Trignometric Functions


=============================================

1 AutoLisp Programming : Introduction

2 AutoLisp Programming : Basic Knowledge Essentials

3 AutoLisp Programming : DataTypes

4 AutoLisp Programming : Arithmetic Functions

5 AutoLisp Programming : Trignometric Functions

6 AutoLisp Programming : Mathematical Functions

7 AutoLisp Programming : Exercise 01

8 AutoLisp Programming : Structure Functions

9 AutoLisp Programming : All Commands

=============================================

Trignometric functions in AutoLISP.

 

Trigonometric functions:

There are three functions in Trignometric functions for AutoLISP. The arguments for these functions can be numbers, symbols and constants.

Important Note: If any one of the agruments is a real value the result produced by the function will be a real value. If all the arguments are integer then the result will be an integer.


Function : “sin” (sine)
Description: Returns the sine of an angle as a real expressed in Radians.
Syntax: (sin <angle>)
Example 1: (sin 0) result will be 0.0
Example 2: (sin 2) result will be 0.909297


Function : “cos” (cosine)
Description: Returns the cosine of an angle as a real expressed in Radians.
Syntax: (cos <angle>)
Example1: (cos 0) result will be 1.0
Example2: (cos pi) result will be -1.0


Function : “atan” (arctangent)
Description: This function returns the arctangent of a number in Radians.
Syntax: (atan <number1> [<number2>])
Example1: (atan 1.0) result will be 0.785398
Example2: (atan 2.0 3.0) result will be 0.588003

Advertisements

6 responses to “5 AutoLisp Programming : Trignometric Functions

  1. Pingback: 8 AutoLisp Programming : Structure Functions | Mechanical Engineering Online·

  2. Pingback: 7 AutoLisp Programming : Exercise 01 | Mechanical Engineering Online·

  3. Pingback: 6 AutoLisp Programming : Mathematical Functions | Mechanical Engineering Online·

  4. Pingback: 4 AutoLisp Programming : Arithmetic Functions | Mechanical Engineering Online·

  5. Pingback: 3 AutoLisp Programming : DataTypes | Mechanical Engineering Online·

  6. Pingback: 2 AutoLisp Programming : Basic Knowledge Essentials | Mechanical Engineering Online·

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s