# Operators, Functions, and Constants

When you use trigonometric functions in equations, specify the angular units by selecting Degrees or Radians in Angular Equation Units in the Equations dialog box.

 Operator Name Notes + plus sign addition - minus sign subtraction * asterisk multiplication / forward slash division ^ caret exponentiation Function sin (a) sine a is the angle; returns the sine ratio cos (a) cosine a is the angle; returns the cosine ratio tan (a) tangent a is the angle; returns the tangent ratio sec (a) secant a is the angle; returns the secant ratio cosec (a) cosecant a is the angle; returns the cosecant ratio cotan (a) cotangent a is the angle; returns the cotangent ratio arcsin (a) inverse sine a is the sine ratio; returns the angle arccos (a) inverse cosine a is the cosine ratio; returns the angle atn (a) inverse tangent a is the tangent ratio; returns the angle arcsec (a) inverse secant a is the secant ratio; returns the angle arccosec (a) inverse cosecant a is the cosecant ratio; returns the angle arccotan (a) inverse cotangent a is the cotangent ratio; returns the angle abs (a) absolute value returns the absolute value of a exp (n) exponential returns e raised to the power of n log (a) logarithmic returns the natural log of a to the base e sqr (a) square root returns the square root of a int (a) integer returns a as an integer sgn (a) sign returns the sign of a as -1 or 1 For example: sgn(-21) returns -1 Constant pi pi ratio of the circumference to the diameter of a circle (3.14...)

You can also use the Visual Basic IIf function when specifying a model dimension. This function returns one of two values depending on the evaluation of an expression. For example, if the equation specified is "D1@Sketch1" = (IIf("D1@Sketch4">15, 20, 10)) + 8, then:

 If D1@Sketch4 is ... Then D1@Sketch4 is set to ... And D1@Sketch1 is set to ... > 15 20 28 <= 15 10 18

Provide feedback on this topic

* Required

 *Email: Subject: Feedback on Help Topics Page: Operators, Functions, and Constants *Comment: * I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

Never show this message again
x

Web Help Content Version: SOLIDWORKS 2011 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.