15

Reputation

3

Badges

These are answers submitted by vineetloya

@Joe Riel

Hey Joe,

Thank you for replying. Please find attached a sample file. Also I am pasting the exact content.

> restart;> with(StringTools);> S := [diff(x(t), t) = y(t), diff(y(t), t) = x(t)^2]; [ d d 2] [--- x(t) = y(t), --- y(t) = x(t) ] [ dt dt ]> qwv := x(t), y(t);> PDEtools:-declare(qwv, prime = t); x(t) will now be displayed as x y(t) will now be displayed as yderivatives with respect to t of functions of one variable will now be displayed with '> S; lprint(%); [ d d 2] [--- x(t) = y(t), --- y(t) = x(t) ] [ dt dt ][diff(x(t), t) = y(t), diff(y(t), t) = x(t)^2]> sprintf("%a & %a", S[1], S[2]); #Note that I want the eqn in form: x'=y & y'=x^2 "diff(x(t),t) = y(t) & diff(y(t),t) = x(t)^2"> Q := convert(S[1], string); "diff(x(t),t) = y(t)"> sprintf("%s", Q); "diff(x(t),t) = y(t)"#I have tried different approaches to print the output in the required format into a text file. The other problem is when I write "&", Maple convert it into "&".>

I appreciate your help.

Thanks

mapleprime.mw

You must be logged into your Facebook account in order to share via Facebook.

Click the button below to share this on Google+. A new window will open.

You must be logged in to your Twitter account in order to share. Click the button below to login (a new window will open.)

Please log-in to your MaplePrimes account.

Wrong Email/Password. Please try again.