CreateTemplateEquation

CreateTemplateEquation[name, eq ] create a TemplateEquation object from eq pattern equation identified with name.
  • CreateTemplateEquation returns a TemplateEquation object with empty $Solution and $Condition records.
  • The parameters of the template equation has to be defined as a PatternTest objects in the pattern equation. Ex. a_?NumberQ +TISin[q_]==0 pattern equation a is a parameter q is a variable.
  • The variables of the template equation has to be defined as a Pattern objects in the pattern equation.""
Load LinkageDesigner package.
In[1]:=
Click for copyable input
eq1 defines a simple template equation with $a, $b, $n pattern parameters and $tpattern variable
In[2]:=
Click for copyable input
CreateTemplateEquation defines a TemplateEquation data object
In[3]:=
Click for copyable input
Out[3]=
CreateTemplateEquation fills out $Name, $Pattern, $Parameters, $Variablesrecord of the TemplateEquation data object
In[4]:=
Click for copyable input
Out[4]//TableForm=
The $Solution and $Condition records should be set to t1 TemplateEquation
In[5]:=
Click for copyable input
In[6]:=
Click for copyable input
t1 is now a complete TemplateEquation object:
In[7]:=
Click for copyable input
Out[7]//TableForm=