From owner-help-octave at bevo dot che dot wisc dot edu Mon Nov 27 23:33:57 1995 Subject: How to quad("sin(a*sin(x))*sin(x)",0,pi/2)? From: niles at axp745 dot gsfc dot nasa dot gov To: help-octave at bevo dot che dot wisc dot edu Cc: niles at axp745 dot gsfc dot nasa dot gov Date: Tue, 28 Nov 95 00:34:03 -0500 Now I know this won't work as written but I'd like to do something like: quad("sin(a*sin(x))*sin(x)",0,pi/2) and loop over various values of "a". How can I do this? If I could "define" a function from the command line I could keep changing the definition in a loop. Is this possiable? Perhaps a could do some fancy "printf" to a file that defines the function, but this seems way convoluted. Anyone have any better ideas? Thanks, Rick Niles.