Results 1 to 9 of 9
  1. #1
    Y. Progammer is offline Member
    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0

    Default gov.sns.tools.math.ElementaryFunction

    This package contains classes that contain methods to find the inverse hyerbolic functions directly by taking double as input ... i searched a lot to find the .jar containing this package but i'm unable to find..

    By the way I found another jar containing another package -- org.nfunk.jep.function .. this package too contains methods that claim to find the inverse hyperbolic functions but these methods take "Object" as input ....
    and return as incompatible format...i succeeded in finding hyperbolic results by converting the object first into string and then the string into double.. but applying the same procedure for the inverse hyperbolic functions result into formats as "(5.192925985263684, 0.0)" so i am not able to extract value of my interest..
    http://mirrors.ibiblio.org/pub/mirro...s/jep-2.24.jar

    Java Code:
    import org.nfunk.jep.function.*;
    import org.nfunk.jep.ParseException;
    
    public class xMain {
    
        public static void main(String[] args) {
                    try {
                        ArcCosineH obj = new ArcCosineH();
                        System.out.println(obj.acosh(90));
                        System.out.println(Double.valueOf(obj.acosh(90).toString()).doubleValue());
                    } catch (ParseException po) {
                    }
        }
    }

    the pakage i mentioned the first in the title takes input as double and results into double so thats no problem ... but i am not able to find the jar for the same ...please help me finding the jar file for this package..

  2. #2
    Y. Progammer is offline Member
    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Y. Progammer View Post
    This package contains classes that contain methods to find the inverse hyerbolic functions directly by taking double as input ... i searched a lot to find the .jar containing this package but i'm unable to find..

    By the way I found another jar containing another package -- org.nfunk.jep.function .. this package too contains methods that claim to find the inverse hyperbolic functions but these methods take "Object" as input ....
    and return as incompatible format...i succeeded in finding hyperbolic results by converting the object first into string and then the string into double.. but applying the same procedure for the inverse hyperbolic functions result into formats as "(5.192925985263684, 0.0)" so i am not able to extract value of my interest..
    Most likely that function anticipates for values < 1 where the answer is supposed to be a complex number. I peeked into that .jar and indeed I saw a Complex.class so I'm probably right. The answer to acosh(90) is correct and the imaginary component of the answer is zero. The expansion of that function is: acosh(z) == ln(z+sqrt(z-1)*sqrt(z+1))

    kind regards,

    Jos

  4. #4
    Y. Progammer is offline Member
    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0

    Default

    I peeked into that .jar and indeed I saw a Complex.class so I'm probably right.
    yes you are right!

    The expansion of that function is: acosh(z) == ln(z+sqrt(z-1)*sqrt(z+1))
    .. and i do know the alternative


    BUt if i have an option for the direct implementation
    gov.sns.tools.math.ElementaryFunction
    that would be more pratical and time saving too !

    "(5.192925985263684, 0.0)"
    Isn't there any way to extract the real part??

  5. #5
    Y. Progammer is offline Member
    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0

    Default

    can you help me finding the .jar file for the package that i mentioned in the title of this thread . thnx

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Y. Progammer View Post
    BUt if i have an option for the direct implementation that would be more pratical and time saving too !


    Isn't there any way to extract the real part??
    I don't know; that .jar should have a description of its API, otherwise it's useless. My guess would be that the Complex class has the appropriate methods, e.g. getRealPart() and getImaginaryPart() (or similar). Never use a jar that you have scraped from the net without any documentation, programming is not a guessing game.

    kind regards,

    Jos

  7. #7
    Y. Progammer is offline Member
    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0

    Default

    and what about the other package
    ??

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Y. Progammer View Post
    and what about the other package
    ??
    How would I know? Is Google down in your part of the world?

    kind regards,

    Jos

  9. #9
    Y. Progammer is offline Member
    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0

    Default

    If Can you atleast suggest some site or.. where i can probably find it .. i trying since morning and failed to find yet..

    Any way . Can you help me in my last thread "Unable to render printing the complete JPanel"

Similar Threads

  1. 50 tools for Java!
    By amylein in forum Java Applets
    Replies: 1
    Last Post: 11-12-2009, 07:46 AM
  2. LF: Tools in Java for RAD
    By laurence.abas in forum SWT / JFace
    Replies: 0
    Last Post: 07-16-2009, 08:15 AM
  3. Need to know about tools.jar
    By nn12 in forum New To Java
    Replies: 5
    Last Post: 01-07-2009, 07:27 AM
  4. New to java, need tools
    By thenarin in forum New To Java
    Replies: 3
    Last Post: 12-10-2008, 12:56 PM
  5. Bug tools
    By mew in forum Advanced Java
    Replies: 1
    Last Post: 01-20-2008, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •