Widget Core Function
The equation widget is used for doing engineering calculations. Itβs the primary calculation engine in ClearCalcs templates.UI Experience
- Not interactive for the user
- Displays the equation used for the calculation
- Shows the calculated value to the user
Data Organization and Manipulation
Primary widget for:- Mathematical calculations and algebraic expressions
- Conditional statements and checks
- Iterations and matrix/vector manipulation
Watch tutorials:
Equation Structure
Single Equation
Multiple Conditional Equations
Using @ Shortcuts
Simplify equation building by using β@β to reference other widgets:Error Handling
ThrowError vs Throw
throwError: Displays a specific message to the userthrow: Shows generic βUnexpected Errorβ message
Special βmembersβ Equation Widget
For exporting data to Member Schedule:Advanced Features
Matrix Operations
Iterations
Unit Conversions
Conditional Logic
Using @default
The@default condition acts as an βelseβ statement:
Best Practices
- Use meaningful variable names
- Add comments in authorNotes for complex calculations
- Include proper error handling
- Reference relevant standards in the references field
- Use @default for catch-all conditions
- Test edge cases thoroughly
Common Patterns
Safety Factor Application
Min/Max Selection
Rounding
Examples from Current Calculators
| ReferenceId | Calculator |
|---|---|
s_t- | EU Steel Column |