expressions inside a user-defined class.

Hugo LECLERC hugo.leclerc at etudes.univ-fcomte.fr
Fri May 17 15:14:12 CEST 2002


On Friday 03 May 2002 17:04, Juan Jose Arribas wrote:...
  Hello,

  It seems that GiNaC does not like reaffectation of symbols. The following 
code works better 
  fext::fext (string & funcionc):funcionstr(funcionc),tiempo("t")
      {
      //funcionstr = string(funcionc) ;
      //tiempo = symbol("t") ;
      funcion = ex(funcionstr,lst(tiempo)) ;
  }
  (and it is advantageous since tiempo is initialized only one time)


---
Hugo LECLERC
L.M.A.R.C.
Laboratoire de Mécanique Appliquée R. Chaléat
UMR CNRS 6604
UFR Sciences et Techniques
24, chemin de l'Epitaphe
25000 BESANCON - FRANCE

Tel : 0663303421 / 0381666721
Fax : 0381666700





More information about the GiNaC-list mailing list