Personal tools
You are here: Home Forum Use Formulas problem

Formulas problem

Up to Use

Formulas problem

Posted by Roman Gášpár at February 26. 2013

Hello guys

I'm trying to create a parametric model, but unfortunately I have to compute some values with sin/cos/tg functions. Is any possibilities to calculate them directly into salome. Thank you for your help.

Regards

Roman

Re: Formulas problem

Posted by Nigirim at February 26. 2013

Hi Roman,

if you are using the python console you can calculate them in there using.

import math

math.sin(VALUE)

I never tried it without the console so I cant tell you if it works otherwise

 

Regards

Nigirim

Re: Formulas problem

Posted by Saint Michael at February 26. 2013

Hi all

It is also possible to create curves in GUI using python formulas.

St.Michael

Re: Formulas problem

Posted by Roman Gášpár at February 27. 2013

Hello :) it works. I forgot "import math"

btw....if you want sin/cos(degrees) you have to sin/cos(VALUE*math.pi/180)

Powered by Ploneboard
Document Actions