Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:general:fonctions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:user:general:fonctions [2015/01/07 14:56] bomandoc:user:general:fonctions [2016/06/10 12:30] – [Examples] papeleux
Line 1: Line 1:
-====== Functions (1var) ======+ 
 +====== Functions y=f(t) ======
  
-Functions are quite useful to describe how some parameters evolve, over time for example. They can be used to [[doc:user:conditions:displacements|set displacements]] or to define [[doc:user:elements:volumes:start|hardening laws]].+Functions are quite useful to describe how some parameters evolve, over time for example. They can be used to [[doc:user:conditions:displacements|prescribe displacements]] or to define [[doc:user:elements:volumes:start|hardening laws]].
  
 ===== PieceWiseLinearFunction ===== ===== PieceWiseLinearFunction =====
Line 24: Line 25:
 ===== PythonOneParameterFunction ===== ===== PythonOneParameterFunction =====
  
-If a function is mathematically too complex to be defined with a ''PieceWiseLinearFunction'', it can be defined analytically, with the function ''PythonOneParameterFunction''.+If a function is mathematically too complex to be defined with a ''PieceWiseLinearFunction'', it can be defined analytically, with ''PythonOneParameterFunction'' object.
  
   def f(x):   def f(x):
Line 41: Line 42:
  
     fct1 = PieceWiseLinearFunction()     fct1 = PieceWiseLinearFunction()
-    fct1.setdata(0,0) +    fct1.setData(0,0) 
-    fct1.setdata(1,1)+    fct1.setData(1,1)
  
 can be also defined with a classical python function: can be also defined with a classical python function:
doc/user/general/fonctions.txt · Last modified: 2021/01/28 18:28 by papeleux

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki