Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error in formula editor

Status
Not open for further replies.

Jaani

Mechanical
Joined
Oct 8, 2013
Messages
20
Location
JP
I wanna use a custom syntax in formula editor. I don't have any problem when my syntax is simple including + - * /, for example (2*4mm). But when I try something like sqrt(16mm), an error message pops up.

2018-04-08_12-20-41_bliqt4.png


2018-04-08_12-21-02_wtiaxv.png


What's the right syntax for something like 10 mm + square (100mm) + (2mm)3?
 
Good morning,

Sqrt and cube must be done on REAL operands.

Try sqrt(100mm/1mm)*1mm

Best regards,
Costin Ruja
 
Tried it successfully, thank you, Costin.

I'm not familiar with writing syntax in CATIA. I couldn't apply cube syntax. how should I write (100mm)20?
 
The symbol for raising at an exponent is ** (double asterisk)

Looking at your first post, it should look like this:

((2mm/1mm)**3)*1mm

Best regards,
Costin Ruja
 
Nothing else, except appreciation. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top