Expand IntroductionIntroduction
Expand AdministrationAdministration
Expand User InterfaceUser Interface
Collapse SolidWorks FundamentalsSolidWorks Fundamentals
Basic Concepts
Basic Commands: Cut, Copy, Paste, Undo, and Redo
Expand Help, Search, and Web ResourcesHelp, Search, and Web Resources
Expand Document BasicsDocument Basics
Expand SolidWorks OptionsSolidWorks Options
Expand DisplayDisplay
Expand SelectionSelection
Expand File PropertiesFile Properties
Expand Measure ToolMeasure Tool
Expand SensorsSensors
Collapse EquationsEquations
Accessing the Equations Dialog Box
Expand Using the Equations InterfaceUsing the Equations Interface
Collapse Create and Edit Equations in the Equations Dialog BoxCreate and Edit Equations in the Equations Dialog Box
Adding an Equation
Adding a Sketch Equation
Editing an Equation
Deleting an Equation
Specifying Units of Measurement
Using the Measure Option
Changing Dimensions by Configuration
Operators, Functions, and Constants
Visual Basic If Function
Expand Global VariablesGlobal Variables
Expand Configuring EquationsConfiguring Equations
Expand Linked ValuesLinked Values
Expand Share Equations Among ModelsShare Equations Among Models
Expand Create Equations in the Modify Dialog BoxCreate Equations in the Modify Dialog Box
Design Tables and Equations
Direct Input of Equations in PropertyManagers
Expand Equations ExampleEquations Example
Expand Industry-Specific Design ToolsIndustry-Specific Design Tools
Xperts Overview
Add-Ins
SolidWorks Fast Start
Expand Object Linking and EmbeddingObject Linking and Embedding
Expand Recording and Playing MacrosRecording and Playing Macros
Expand  Future Version Components in Earlier Releases Future Version Components in Earlier Releases
SolidWorks API
SolidWorks Task Scheduler
Expand Moving from 2D to 3DMoving from 2D to 3D
Expand AssembliesAssemblies
Expand CircuitWorksCircuitWorks
Expand ConfigurationsConfigurations
Expand SolidWorks CostingSolidWorks Costing
Expand Design CheckerDesign Checker
Expand Design Studies in SolidWorksDesign Studies in SolidWorks
Expand Detailing and DrawingsDetailing and Drawings
Expand DFMXpressDFMXpress
Expand DriveWorksXpressDriveWorksXpress
Expand FloXpressFloXpress
Expand Import and ExportImport and Export
Expand Model DisplayModel Display
Expand Mold DesignMold Design
Expand Motion StudiesMotion Studies
Expand Parts and FeaturesParts and Features
Expand RoutingRouting
Expand Sheet MetalSheet Metal
Expand SimulationSimulation
Expand SimulationXpressSimulationXpress
Expand SketchingSketching
Expand Sustainability ProductsSustainability Products
Expand SolidWorks UtilitiesSolidWorks Utilities
Expand TolerancingTolerancing
Expand TolAnalystTolAnalyst
Expand ToolboxToolbox
Expand WeldmentsWeldments
Expand Workgroup PDMWorkgroup PDM
Expand TroubleshootingTroubleshooting
Glossary
Hide Table of Contents

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 dash 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...)


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* 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 2014 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.