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 4 of 4

Thread: Is algebra possible in Java?

  1. #1
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Is algebra possible in Java?

    Is there a way to trick the java code into solving algebra problems, others than for:

    ax + b = cx + d; and ax2 + bx + c = 0 ?



  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Is algebra possible in Java?

    There are some private party packages that will evaluate some expressions.
    Don't know about simultaneous(??) equations

    Google it.

  3. #3
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Is algebra possible in Java?

    Depends on how much functionality you want in.

    For a Linear System of equations, you can easily implement some sort of algorithm to compute a Reduced Row Echelon matrix, or implement an iterative Linear Algebra solver (I put 2 such implementations here), just note that iterative solvers are not always guaranteed to give you the answer if there is one.

    For higher-powered algebra calculations, the "easiest" method would be to implement a computer algebra system/solver or CAS (note: this is used extremely lightly. CAS's are extremely difficult to implement well). I believe there is one implementation here in Java, you probably can dig through the source code there.

    edit:

    Polynomial solvers shouldn't be too difficult to implement, either. Do a google search and you'll probably find some along with algorithms to solve them numerically.

  4. #4
    Member
    Join Date
    May 2010
    Posts
    38
    Thanks
    1
    Thanked 8 Times in 7 Posts

    Default Re: Is algebra possible in Java?

    Have you tried JEval?

Similar Threads

  1. Code wise working of Computer Algebra Systems
    By helloworld922 in forum Java Theory & Questions
    Replies: 1
    Last Post: July 7th, 2009, 07:45 AM