Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
easy way to represent polynomials (v 7.0)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
kristoph  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 09:17
Newsgroups: comp.soft-sys.math.mathematica
From: kristoph <kristophs.p...@web.de>
Date: Thu, 5 Nov 2009 09:17:04 +0000 (UTC)
Local: Thurs 5 Nov 2009 09:17
Subject: easy way to represent polynomials (v 7.0)
Hi,

is there a way to get a "proper" polynomial representation of results
that Mathematica gives?

Here is a "cooked up" example (my actual results in Mathematica a
fairly complicated expressions):

Suppose the result is:

x/(1 + y) + y/x - 1 = 0

I'm looking for something that gives me:

x^2 - x + y^2 = 0

Thanks in advance
Kris


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Hanlon  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 10:16
Newsgroups: comp.soft-sys.math.mathematica
From: Bob Hanlon <hanl...@cox.net>
Date: Fri, 6 Nov 2009 10:16:07 +0000 (UTC)
Local: Fri 6 Nov 2009 10:16
Subject: Re: easy way to represent polynomials (v 7.0)

expr1 = x/(1 + y) + y/x - 1 == 0;

To multiply through by the denominators requires that they not be zero

expr2a = Simplify[expr1, {y != -1, x != 0}]

x^2 + y^2 + y == x*y + x

or

expr2b = Simplify[expr1, Thread[
   DeleteCases[
     Denominator /@ List @@ expr1[[1]],
     _?NumericQ] != 0]]

x^2 + y^2 + y == x*y + x

expr2c = (#*x (1 + y) & /@ expr1) // Simplify

x^2 + y^2 + y == x*y + x

Putting all the terms on one side

expr3a = First[expr2a] - Last[expr2a] == 0

x^2 - x*y - x + y^2 + y == 0

or

expr3b = (expr2a /. Equal -> Subtract) == 0

x^2 - x*y - x + y^2 + y == 0

Collecting terms

expr4a = Collect[expr3a, x]

x^2 + x*(-y - 1) + y^2 + y == 0

or

expr4b = Collect[expr3a, y]

x^2 + (1 - x)*y - x + y^2 == 0

Bob Hanlon

---- kristoph <kristophs.p...@web.de> wrote:

=============
Hi,

is there a way to get a "proper" polynomial representation of results
that Mathematica gives?

Here is a "cooked up" example (my actual results in Mathematica a
fairly complicated expressions):

Suppose the result is:

x/(1 + y) + y/x - 1 = 0

I'm looking for something that gives me:

x^2 - x + y^2 = 0

Thanks in advance
Kris


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexei Boulbitch  
View profile   Translate to Translated (View Original)
 More options 7 Nov, 11:53
Newsgroups: comp.soft-sys.math.mathematica
From: Alexei Boulbitch <Alexei.Boulbi...@iee.lu>
Date: Sat, 7 Nov 2009 11:53:32 +0000 (UTC)
Local: Sat 7 Nov 2009 11:53
Subject: Re: easy way to represent polynomials (v 7.0)
Hi, Kris,
this may be what you need:

eq = x/(1 + y) + y/x - 1 == 0

 -1 + y/x + x/(1 + y) == 0

 Numerator@Together[eq[[1]]] == eq[[2]]

 -x + x^2 + y - x y + y^2 == 0

or you have in mind some further transformation?

Have success, Alexei

Hi,

is there a way to get a "proper" polynomial representation of results
that Mathematica gives?

Here is a "cooked up" example (my actual results in Mathematica a
fairly complicated expressions):

Suppose the result is:

x/(1 + y) + y/x - 1 = 0

I'm looking for something that gives me:

x^2 - x + y^2 = 0

Thanks in advance
Kris

--
Alexei Boulbitch, Dr., habil.
Senior Scientist

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern
Luxembourg

Phone: +352 2454 2566
Fax:   +352 2454 3566

Website: www.iee.lu

This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google