> Operators, Functions, and Constants
 Print |  Feedback on this topic
Introduction
What's New
User Interface
SolidWorks Fundamentals
Moving from 2D to 3D
Assemblies
CircuitWorks
Configurations
Design Checker
Design Studies in SolidWorks
Detailing and Drawings
DFMXpress
DriveWorksXpress
FloXpress
Import/Export
Mold Design
Motion Studies
Parts and Features
PhotoView 360
PhotoWorks
Routing
Sheet Metal
Simulation
SimulationXpress
Sketching
Sustainability Products
SolidWorks Utilities
Tolerancing
Toolbox
Weldments
Workgroup PDM
Troubleshooting
Glossary

# 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

Related SolidWorks Forum Content

Provide feedback on this topic

* Required

 *Email: Subject: Feedback on Help Topics Page: Operators, Functions, and Constants *Comment:
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 2010 SP05

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document SolidWorks 2010 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.