Subject: solve "abs(x)=2" and question in "print" function
From: 黃 裕雄
Date: Tue, 28 Oct 2008 18:25:04 +0800
Message: 2
> Date: Mon, 27 Oct 2008 18:29:27 +0100
> From: Adam Majewski <adammaj1 at o2.pl>
> Subject: Re: [Maxima] question in solve 'abs(x)=2'
> To: maxima at math.utexas.edu
> Message-ID: <ge4tpm$c71$1 at ger.gmane.org>
> Content-Type: text/plain; charset=Big5
>
> Hi,
>
> Solve is for algebraic equations,
> your equation is not algebraic ( abs ).
>
> This is not an proper answer to your question, but gives graphical solution:
>
> load(implicit_plot);
> z:x+y*%i;
> implicit_plot (abs(z) = 2, [x, -4, 4], [y, -4, 4]);
>
>
> Regards
>
> Adam
========================================
Dear Adam
thanks your solution. but this question is a algebraic equation.
|x|=2
it solution is x=2, -2
---------------------------------------------------------
the next solution is from Professor Barton Willis (willisb at unk.edu)
The undocumented function to_poly_solve can solve this equation.
To use to_poly_solve, you'll need to load the file 'topoly_solver.'
An example:
(%i4) load('topoly_solver')$
(%i5) to_poly_solve(abs(x)=2,x);
(%o5) [[x=2],[x=-2]]
If you want to find all complex solutions, to_poly_solve doesn't work:
(%i6) declare(x,complex)$
(%i7) to_poly_solve(abs(x)=2,x);
(%o7) [[x=2],[x=-2]]
=======================================
>
> >
> > 2. the print function that has 'new line ' (i.e skip line ) function ??
> > as follow : I want to give a question and it have 2 sub items
> >
> > A:[1,2], B:[3,4],C:[8,7],solve
> > (1) the mid p oint of A,,B
> > (2) the gravity point of the triangle ABC
> >
> > I usually typing :
> > print ('A:[1,2], B:[3,4],C:[8,7],solve (1) the mid p oint of A,,B (2) the gravity point of the triangle ABC');
=================Question in print==================
so, the visual effects are not good-looking
How to skip to the next line?
Does the 'print ' function include 'skip' function'?
==============================================
_________________________________________________________________
?H???? Windows Live Messenger ?M Hotmail?A???????a?x?????T???b???? ?X Windows Live for Mobile
http://www.msn.com.tw/msnmobile/