Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - [Q] how to solve and evalutate a polynomial?
Author Message
  Post subject:  Re: [Q] how to solve and evalutate a polynomial?  Reply with quote
Hi,
Quote:
> if i have a polynomial f (ex : poly f = x2 - 1 )
>
> i want to have f(1) ( f(1) = (1)^2-1 = 0 )
> and want to solve f(x) = 0
>
> How can i do this?

First of all you have define a ring (which includes a definition of a ground field and an ordering on monomials).
In your case let the ground field be Q, then your ring definition will be
Code:
ring r = 0,(x),dp;

Then you define your polynomial.
Code:
poly f = x^2 -1;

For evaluation there is a command "subst"
Code:
poly f1 = subst(f,x,1);

For "solving" you can use either factorization (for one polynomial)
Code:
factorize(f);

or, for systems of equations, see the library "solve.lib".

In any case, you find the detailed information in the documentation, available both on-line (for instance, at http://www.singular.uni-kl.de/Manual/2-0-5/index.htm) and in every distribution you dowload.

Best regards,
Post Posted: Thu Aug 11, 2005 8:29 pm
  Post subject:  [Q] how to solve and evalutate a polynomial?  Reply with quote
if i have a polynomial f (ex : poly f = x2 - 1 )

i want to have f(1) ( f(1) = (1)^2-1 = 0 )
and want to solve f(x) = 0

How can i do this?

email: [email protected]
Posted in old Singular Forum on: 2004-10-11 19:23:40+02
Post Posted: Thu Aug 11, 2005 5:32 pm


It is currently Fri May 13, 2022 10:57 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group