12 Dec
2003
12 Dec
'03
11:04 a.m.
Hello, I'am trying to define composite functions, for example this one: / 1 for all x > 1 f(x) =| x*x for all 1 >= x >= -1 \ 1 for all x <-1 Later I want to evaluate this function with different x. I tried to do this allready using symbol x("x"); string polystr="if (abs(x)>1) {1}else{x*x}"; ex poly; poly=ex(polystr,x); cout << poly; but I do not get it working. I assume that I defined my polystr incorrect, anybody knows how to do that ? Grettings, Volker Vogel ______________________________________________________________________________ Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2 Kostenlos downloaden: http://screensaver.web.de/?mc=021110