/    Sign up×
Community /Pin to ProfileBookmark

??hyperbolic function (sinh,cosh.tanh)??

can hyperbolic function such as sinh,cosh,tanh applied in java?should i derive the formula?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@mudeltaMar 12.2007 — first of all: since you posted this in the javascript thread i guess you mean javascript and not java (they are not the same)

second: your question:

you can use the following functions:

[LIST]
  • [*]Math.sin(a)

  • [*]Math.cos(a)

  • [*]Math.tan(a)

  • [*]Math.asin(a)

  • [*]Math.acos(a)

  • [*]Math.atan(a)

  • [*]etc

  • [/LIST]


    http://www.topxml.com/javascript/javascript_math_functions.asp

    note that you have to use radians instead of degrees
    Copy linkTweet thisAlerts:
    @agent_x91Mar 12.2007 — He also posted it in the Java forum... minusxblind do you mean JavaScript or Java?
    Copy linkTweet thisAlerts:
    @vwphillipsMar 12.2007 — This came up a few days ago

    Java & PHP have hsin capability Javascript does not.

    Tried finding a suitable formula using JavaScript Math methods but got out of my depth, we need a decent mathematician and that not me.

    My interest?

    should make some pretty shapes.
    Copy linkTweet thisAlerts:
    @jalarieMar 13.2007 — <i>
    </i> function SinH(Angle) { // Angle in radians
    var e=Math.E;
    var p=Math.pow(e,Angle);
    var n=1/p;
    return (p-n)/2;
    } // SinH
    function CosH(Angle) { // Angle in radians
    var e=Math.E;
    var p=Math.pow(e,Angle);
    var n=1/p;
    return (p*1+n*1)/2;
    } // CosH
    function TanH(Angle) { // Angle in radians
    var s=SinH(Angle);
    var c=CosH(Angle);
    return s/c;
    } // TanH
    function arSinH(What) {
    var L=What*1+Math.sqrt(What*What+1);
    return Math.log(L);
    } // arSinH
    function arCosH(What) {
    var L=What*1+Math.sqrt(What*What-1);
    return Math.log(L);
    } // arCosH
    function arTanH(What) {
    var L=(1+What*1)/(1-What);
    return Math.log(L)/2;
    } // arTanH
    Copy linkTweet thisAlerts:
    @vwphillipsMar 13.2007 — Thanks

    Always easy when you know what your doing.
    ×

    Success!

    Help @minusxblind spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...