Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SOS : Substitution 1/x to a poly!!!
PostPosted: Sat Sep 18, 2010 4:29 pm 
Hello everybody!
How can we substitute the variable x of a polynomial with 1/x or 1/(x+1)?? We ask you because when we divide 1/x system returns Zero!

For example: If we have a poly p(x)=x and substitute with the command f(x)=subst(p(x),x,1/x) system returns f(x)=0. But we expect to get f(x)=1/x. :shock: :shock: :shock:

Its an emergency!!! :!: :!: :!:


Report this post
Top
  
Reply with quote  
 Post subject: Re: SOS : Substitution 1/x to a poly!!!
PostPosted: Mon Sep 20, 2010 9:52 am 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
The area, you are working in is the set of polynomial: the
division in that ring ignores remainder: 1/x is 0 with remainder 1
which is ignored.

You seem to want to work in the field of rational functions:
in order to do so, define a ring with rational functions a coefficients:
Code:
ring r=(0,a),x,dp;
poly p=x;
subs(p,x,1/a); -> 1/(a)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:07 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group