a small problem from a newbee...
- To: mathgroup at smc.vnet.net
- Subject: [mg58193] a small problem from a newbee...
- From: dibyadeep at gmail.com
- Date: Wed, 22 Jun 2005 01:55:36 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
hi ...i m writing a function in which i have to assign the solution of a ode to a variable..i wrote the function like this...but it doesnot work..cud u suggest a alternative... Vzf=Function[x,DSolve[{y''[x] - g1*y[x] + g2*Cosh[k*x]/Cosh[k] + g3 == 0, y[-1] == 0, y[1] == 0}, y, x]; Vz = y[x] /. %] the program doesnot work bcoz thres no output wheni put a ; after solution to the ode...so the assignment doesnot work.. plss help me out...i just cannot find a solution