Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Linear Equation Help !!!

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Linear Equation Help !!!

    Hi Techies,

    I have a sample formula shows below,

    ((((c1+c2)/c3)*c4)-c5+c6) like this. This formula format can be vary which means this formula generating from the end user. It can be any format. we are using only basic arithmetic operatiors ie, +, - , * , / and (,).

    I can choose any one value to find out. If i choose C3 to find out the value, the formula needs to be modified like below,

    C3 = (c1+c2)*(c4/(c5-c6))

    if i use string operation it will be a complex code. Any other best practice?

    Suggestion and ideas welcome please...


    Thanks in advance....

    Thangavel L Nathan


  2. #2
    Member DanBrown's Avatar
    Join Date
    Jan 2011
    Posts
    134
    My Mood
    Confused
    Thanks
    1
    Thanked 12 Times in 12 Posts

    Default Re: Linear Equation Help !!!

    if you don't want to go for string operations then you can maintain the formula in char array or in linkedlist

    Correct me if i m wrong.
    if it will be in linked list we can swap position of every individual part.

    Please post algorithm you are thinking for formulating formula.
    Thanks and Regards
    Dan Brown

    Common Java Mistakes

Similar Threads

  1. Help with Quadratic forumla equation in java please.
    By taylor6132 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 27th, 2010, 08:27 PM

Tags for this Thread