Results 1 to 6 of 6

Thread: Java - resolution of f (x) = 0

  1. #1
    Join Date
    Oct 2009
    Posts
    61

    Java - resolution of f (x) = 0

    Hi
    I am a student who needs your help in programming, the resolution of f (x) = 0 in Java or c. I started thinking but I've been lost I do not know where to start, If I am wrong forgiving me and share your opinion about proposed. Any help will be highly appreciated. Thanks in advance.
    Last edited by Caden Fernandes; 08-01-2010 at 10:58 AM.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Java - resolution of f (x) = 0

    Hello
    Doing research in the course of numerical analysis, this problem is already solved long ago by a series of algorithms, did you have to choose one that suits you and implement it. This is very easy my by knowledge. You have to just deal with numbers and nothing else, remaining is simple work. Hope you will do it. Just give it a try and if you have problems post back.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Java - resolution of f (x) = 0

    Hi
    First you must know is that the equation is of first or second degree or that it is polynomial of degree n. This can simplify the problem, if you specify this when you have to solve the parameters of the solution (eg if 2 degree calculate delta, b and b'). I first recommend you to know the type of the equation.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: Java - resolution of f (x) = 0

    Hello
    It is already a well-defined grammar for your equations, then it must be possible to evaluate the expression f (a) for any value a. To resolve the equation you have several methods of numerical calculation (dychotomie, Newton etc..). For more information on the numerical calculation methods you can visit the wikipedia, and search for java numeric methods.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: Java - resolution of f (x) = 0

    Hi
    It is mostly about a. In the general case (a function quite some), there is quite simply not producing algorithm. If we start to conditions such as continuity, then we arrive at something (dichotomy, typically), and was more info, it produces a more efficient algorithm. I think you should go with it. I know at first it is hard to program, but after a time period and a lot of practice you can solve it easily.

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: Java - resolution of f (x) = 0

    Hi
    You should know already that whatever is the input.
    1 - kind of an equation: 2x ^ 2-3xcos (x) = 0. ( '^' Operator is power)
    2 - an equation of 2nd degree type equation with coefficient 1, 2, 3.
    The calculation methods are generally iterative part of an initial interval [a0, b0] the best thing to have
    f (a0) * f (b0) <0 and f (x) continuous => existence of at least one root in the interval [a0, b0] (theory of intermediate values).
    To (1) is a problem more complicated because you must extract the coefficient and make a calculation expression for each value of x i.e
    f (0) = 2 * 0 -3 * 0 * cos (0) = 0.
    In developing that you can implement a solution algorithm.

Similar Threads

  1. Replies: 4
    Last Post: 04-09-2013, 11:04 PM
  2. Setting Of Java to The Point At Manual Java
    By winni in forum Software Development
    Replies: 4
    Last Post: 10-01-2011, 10:05 PM
  3. How to get screen resolution using java program?
    By Luz in forum Software Development
    Replies: 5
    Last Post: 03-02-2010, 08:42 PM
  4. Link List Example in Java Sample program in Java
    By trickson in forum Software Development
    Replies: 2
    Last Post: 04-08-2009, 08:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,035,957.34237 seconds with 17 queries