format polynomial outpu

July 09 2011 by raffamaiden 5
false
Maple

0


Hi. I have a function defined like this: 

 

myfun := proc(a11 ......)

f := a11 * x^2 + 2*a12*x*y + a22*y^2 + 2*a13*x + 2*a23*y + a33;
printf("\n");
 printf("%a",f);

 end proc; 

 

When i call this function from my worksheet, the "f" polynomial is printed unformatted. For example the output in my worksheet is

 

x^2+6*x*y+y^2-2*2^(1/2)*x-6*2^(1/2)*y-4

 

I wouldl ike the output to be printed formatted, like i write the expression and press enter. So i want for example square root drawed correctly and not ^(1/2). How can i achieve this? 

 

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account