Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi
I am a new user and running into an issue. I defined a variable outside the solve block and in the solve block set up odesolve with the function in the ODE. However, I get an error in the solve block saying variable not recognized. Please let me know what I am doing wrong.
You're doing two things wrong:
1. You should attach the Prime worksheet file.
2. You define your function aw(x) in terms of yw(x), at the top of the picture. yw(x) has an error, probably because it's undefined...
Success!
Luc
You have to write the constraints in terms of the function you are seeking to (Ode)solve. Consider this:
Does not work.
But this:
can result in:
Then your integral in the definition of Nw(x) uses yw as the integration variable. Is that intentional? Or do you even mean it to be yw(x)?
Success!
Luc
Sometime with more complicated functions it may be convenient to split the expression into smaller parts using auxiliary functions like your cu(). It can be done with a differently defined function cu() which expects already the function value as its argument: