Menu

#21 Evaluator enhancements

open
nobody
None
4
2007-09-27
2007-08-14
Tom Downey
No

Add support for a third column. Then expressions could have a label in the first column, the value in the second column, and the expression in the third column. Maybe an option to suppress the expression and just show the label and value? Is there currently an option to allow editing of the expression? Should be...

Discussion

  • Tom Downey

    Tom Downey - 2007-09-27
    • priority: 5 --> 4
     
  • Tom Downey

    Tom Downey - 2008-10-03

    From: Axel <axelclk@gmail.com>
    To: "Tom Downey" <tom@downeyfarnsworth.com>
    Subject: Re: webcompmath

    On 8/14/07, Tom Downey <tom@downeyfarnsworth.com> wrote:
    > I added this to my list of feature requests. I looked at it briefly and it
    > doesn't look too hard. I've been wanting to enhance evaluator to make it
    > easier to test new math functions, and this will give me the push to get it
    > done.
    >
    > Tom
    I've created my own "Evaluator" applet now. With proguard it shrinks
    to 55KB (because no plotting etc is needed in my Evaluator class).

    I've realized the 3 column layout with the BorderLayout. Probably a
    GridLayout would look better?

    The syntax in the wiki looks like this:
    ===Area and Volume of Circles and Spheres===
    <calc>
    <param name="Variable1" value="Radius:r:1">
    <param name="Expression1" value="Diameter:2 * r">
    <param name="Expression2" value="Circumference:2 * Pi * r">
    <param name="Expression3" value="Area of circle:Pi * r^2">
    <param name="Expression4" value="Surface of sphere:4 * Pi * r^2">
    <param name="Expression5" value="Volume of sphere:4/3 * Pi * r^3">
    </calc>

    I've used this proguard configuration file
    -injars meappletsbig.jar
    -outjars meapplets.jar
    -libraryjars C:\Java\jdk1.6.0\jre\lib\rt.jar
    -dontskipnonpubliclibraryclasses

    -keep public class net.sourceforge.webcompmath.applets.Evaluator

    --
    Axel Kramer
    WikiBlog: http://www.groovy-news.org/e/page/axelclk

     

Log in to post a comment.