Variable<0> x(“x”); auto f = cos(2*x); f is now a synonym of cos(2*x). You can evaluate the function by typing f(x=1.234), and get the result given x = 1.234. (which will be cos(2.468))
NB: Code should include function overloading and operator overloading.
Aucun commentaire:
Enregistrer un commentaire