ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How do you code for Exponential

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do you code for Exponential

    Hello,

    I am doing a new assignment having to do with calculating a new recover score in RPG. Does anyone know how to code for Exponential?

    Here is my spec:

    Interim Value = ((Weight1) + (Weight2) + (Weight3) + (Weight4) + (Weight5)) ? 2.6339

    Interim_Probability = Exponential(Interim Value ) / (1+ Exponential(Interim Value)

    Post_Primary_Target_Visa_Recovery_Score = Round[(1000 * Interm_Probability) , 1]

    Thanks,

    DAC

  • #2
    Re: How do you code for Exponential

    DAC,

    Double splat. **

    Code:
     Eval      WkReturnRate = ( ( CashValue / OrigPrem )
               ** ( 1 / Duration ) ) - 1
    HTH,
    MdnghtPgmr
    "Tis better to be thought a fool then to open one's mouth and remove all doubt." - Benjamin Franklin

    Comment


    • #3
      Re: How do you code for Exponential

      Hi dcutaia:

      MdnghtPgmr got it right. See article here:



      Best of Luck
      GLS
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment

      Working...
      X