
Computer Science Computer Science Forum 
 LinkBack  Thread Tools  Display Modes 
August 31st, 2013, 08:21 PM  #11  
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: need ideas concerning polynomial class Quote:
 
September 1st, 2013, 08:03 AM  #12  
Senior Member Joined: Mar 2012 From: Belgium Posts: 654 Thanks: 11  Re: need ideas concerning polynomial class Quote:
Code: polynomial a("ab"); polynomial b("a^2+ab+b^2"); cout<<a*b<<endl; I think I am going to follow your idea now.  
September 1st, 2013, 12:47 PM  #13 
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: need ideas concerning polynomial class
Sounds good!

September 2nd, 2013, 06:27 AM  #14 
Senior Member Joined: Mar 2012 From: Belgium Posts: 654 Thanks: 11  Re: need ideas concerning polynomial class
Mhmmm I wanted to start programming on this now but some question came up again. What if the user enters something like or just something like Should I allow A user to do things like that ? Because Actually I have no idea how to take care of those. Another problem I thought of today is this. How can my interpreter see the difference between the two different power signs used here: (5a^2b+b^2a)^3 two of them are just a part of my monomial. and the other one is the power sign over the polynomial. but for the computer that is the same 
September 2nd, 2013, 08:24 AM  #15  
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: need ideas concerning polynomial class Quote:
Quote:
 
September 2nd, 2013, 12:07 PM  #16 
Senior Member Joined: Mar 2012 From: Belgium Posts: 654 Thanks: 11  Re: need ideas concerning polynomial class
Well I started implenting the shuntingyard algorithm now. I will let you know if I am ready. (or if I have more questions). And by the way I have just (finally!) encountered a practical use of pointers lol I have always been wondering why those things actually exist untill today haha. 
September 5th, 2013, 11:59 AM  #17 
Senior Member Joined: Mar 2012 From: Belgium Posts: 654 Thanks: 11  Re: need ideas concerning polynomial class
Hello it's me again. I managed to write my shuntingyard interpreter and I can convert a string with a polynomial to a reverse polish notation. But now I don't really know what exactly to do with it.. I could reinterpret it again to get again the original polynomial but that would be pointless. 
September 5th, 2013, 02:36 PM  #18 
Global Moderator Joined: Nov 2006 From: UTC 5 Posts: 16,046 Thanks: 938 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms  Re: need ideas concerning polynomial class
You could consider RPN to be your internal notation, or you might want a particular specialized form of it (this is what I'd do, since then equating polynomials would be the same as equating internal expressions). In any case it seems that your goal should be to take two polynomials (rational functions) and combine them with +, , * (+, , *, /) to get another. You may also wish to implement equality and limits. 

Tags 
class, ideas, polynomial 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Ideas for research  Keroro  Advanced Statistics  0  February 17th, 2014 09:43 PM 
Ideas for research  Keroro  Algebra  0  February 17th, 2014 09:37 PM 
I want the ideas for solving those questions  rsoy  Physics  13  June 3rd, 2012 11:44 AM 
Math Club Ideas?  jcmc2112  New Users  2  July 19th, 2010 08:47 AM 
i need some ideas  ely_en  Algebra  0  September 1st, 2008 05:29 AM 