question about programming polynomials

This is a discussion on question about programming polynomials within the C Programming forums, part of the General Programming Boards category; I wonder if parsing an arbitrary function is beyond what's expected for your assignment. Perhaps the user can input the ...

  1. #16
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,831
    I wonder if parsing an arbitrary function is beyond what's expected for your assignment.
    Perhaps the user can input the coefficients in another way - using multiple input prompts.
    For example, "Enter coefficient for C"... "X"... "X^2"... "X^3"... These would all go into a simple array. The to evaluate you simply loop through that.

  2. #17
    Registered User
    Join Date
    Feb 2011
    Posts
    20
    I already did a version just like what you said for my program, as a last resort. But it's required that the user will input the whole polynomial. Right now, I'm trying to do a polynomial parser, and it doesn't work T_T

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question bout my work
    By SirTalksAlots in forum C Programming
    Replies: 4
    Last Post: 07-18-2010, 03:23 PM
  2. A question about a question
    By hausburn in forum C++ Programming
    Replies: 3
    Last Post: 04-25-2010, 05:24 AM
  3. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Generating Polynomials using Linked Lists
    By shaheedpak in forum C++ Programming
    Replies: 0
    Last Post: 09-25-2001, 01:22 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21