Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. How to code complicated actuarial formulas in C#?!

How to code complicated actuarial formulas in C#?!

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharptutorialquestion
13 Posts 9 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    k3n3dy
    wrote on last edited by
    #1

    I have this actuarial software project in which I have to code some crazy looking actuarial formulas and frankly I have no idea how I can do that?! Any suggestions appreciated! Best regards, k3n3dy

    P _ K J 4 Replies Last reply
    0
    • K k3n3dy

      I have this actuarial software project in which I have to code some crazy looking actuarial formulas and frankly I have no idea how I can do that?! Any suggestions appreciated! Best regards, k3n3dy

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      k3n3dy wrote:

      Any suggestions appreciated!

      Any suggestions? Even the anatomically improbable ones? I've developed actuarial software in the past - you really need to work with an actuary on this. More importantly though, you need to realise that this is the coding horrors forum - where ungodly code is held up to the sunlight of derision where it bursts into flames. Tell you what, when you've finished your code hold it up for us to have a deride.

      Deja View - the feeling that you've seen this post before.

      _ J 2 Replies Last reply
      0
      • K k3n3dy

        I have this actuarial software project in which I have to code some crazy looking actuarial formulas and frankly I have no idea how I can do that?! Any suggestions appreciated! Best regards, k3n3dy

        _ Offline
        _ Offline
        _Damian S_
        wrote on last edited by
        #3

        Sounds like you are on your way to creating a coding horror of your own!!

        ------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!

        1 Reply Last reply
        0
        • P Pete OHanlon

          k3n3dy wrote:

          Any suggestions appreciated!

          Any suggestions? Even the anatomically improbable ones? I've developed actuarial software in the past - you really need to work with an actuary on this. More importantly though, you need to realise that this is the coding horrors forum - where ungodly code is held up to the sunlight of derision where it bursts into flames. Tell you what, when you've finished your code hold it up for us to have a deride.

          Deja View - the feeling that you've seen this post before.

          _ Offline
          _ Offline
          _Damian S_
          wrote on last edited by
          #4

          Pete O`Hanlon wrote:

          ungodly code is held up to the sunlight of derision where it bursts into flames

          PMFSL... that's all kinds of funny...

          ------------------------------------------- Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Just bugger off and leave me alone!!

          1 Reply Last reply
          0
          • K k3n3dy

            I have this actuarial software project in which I have to code some crazy looking actuarial formulas and frankly I have no idea how I can do that?! Any suggestions appreciated! Best regards, k3n3dy

            K Offline
            K Offline
            KarstenK
            wrote on last edited by
            #5

            Use the fast C++ in a dll and watch out for precision details. And better disable optimization until you proof that there isnt going something wrong. Use 64bit values int64 and double. Check that the values dont go near 0 or get really big, because it harms precision. First multiply than divide.

            Greetings from Germany

            P P 2 Replies Last reply
            0
            • K KarstenK

              Use the fast C++ in a dll and watch out for precision details. And better disable optimization until you proof that there isnt going something wrong. Use 64bit values int64 and double. Check that the values dont go near 0 or get really big, because it harms precision. First multiply than divide.

              Greetings from Germany

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              You forgot to tell him to stiffen his sinews and gird his loins. I know that you would expect him to be using the Manly macros, but I suspect that he's actually using the Wimpy ones. But good catch on the first multiply then divide. It's a mistake that people often make.

              Deja View - the feeling that you've seen this post before.

              J 1 Reply Last reply
              0
              • K KarstenK

                Use the fast C++ in a dll and watch out for precision details. And better disable optimization until you proof that there isnt going something wrong. Use 64bit values int64 and double. Check that the values dont go near 0 or get really big, because it harms precision. First multiply than divide.

                Greetings from Germany

                P Offline
                P Offline
                Phil J Pearson
                wrote on last edited by
                #7

                KarstenK wrote:

                First multiply than divide

                That happens all too often nowadays. :(( People should work harder at fulfilling their commitment.

                Phil


                The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

                R 1 Reply Last reply
                0
                • P Pete OHanlon

                  k3n3dy wrote:

                  Any suggestions appreciated!

                  Any suggestions? Even the anatomically improbable ones? I've developed actuarial software in the past - you really need to work with an actuary on this. More importantly though, you need to realise that this is the coding horrors forum - where ungodly code is held up to the sunlight of derision where it bursts into flames. Tell you what, when you've finished your code hold it up for us to have a deride.

                  Deja View - the feeling that you've seen this post before.

                  J Offline
                  J Offline
                  jg_
                  wrote on last edited by
                  #8

                  try breaking it into many subprograms. wont make u lost

                  -

                  V 1 Reply Last reply
                  0
                  • J jg_

                    try breaking it into many subprograms. wont make u lost

                    -

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #9

                    jglim1994 wrote:

                    breaking it into many subprograms

                    Divide and Rule?

                    Vasudevan Deepak Kumar Personal Homepage Tech Gossips
                    Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

                    J 1 Reply Last reply
                    0
                    • K k3n3dy

                      I have this actuarial software project in which I have to code some crazy looking actuarial formulas and frankly I have no idea how I can do that?! Any suggestions appreciated! Best regards, k3n3dy

                      J Offline
                      J Offline
                      jhwurmbach
                      wrote on last edited by
                      #10

                      Just Copy&Paste them from Excel into VisualStudio and assign the result to a variable.


                      Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
                      Douglas Adams, "Dirk Gently's Holistic Detective Agency"

                      1 Reply Last reply
                      0
                      • P Pete OHanlon

                        You forgot to tell him to stiffen his sinews and gird his loins. I know that you would expect him to be using the Manly macros, but I suspect that he's actually using the Wimpy ones. But good catch on the first multiply then divide. It's a mistake that people often make.

                        Deja View - the feeling that you've seen this post before.

                        J Offline
                        J Offline
                        jhwurmbach
                        wrote on last edited by
                        #11

                        Pete O`Hanlon wrote:

                        tell him to stiffen his sinews and gird his loins.

                        Because: "Its fun to charter an accountant, and sail the wide accountan-see! Its all tax deductible, we're fairly incorruptible and sailing on the wide accountan-see!" Please excuse these attack by our introductory film


                        Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
                        Douglas Adams, "Dirk Gently's Holistic Detective Agency"

                        1 Reply Last reply
                        0
                        • V Vasudevan Deepak Kumar

                          jglim1994 wrote:

                          breaking it into many subprograms

                          Divide and Rule?

                          Vasudevan Deepak Kumar Personal Homepage Tech Gossips
                          Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

                          J Offline
                          J Offline
                          jg_
                          wrote on last edited by
                          #12

                          sort of- at least you dont get lost in a huge pile of code

                          -

                          1 Reply Last reply
                          0
                          • P Phil J Pearson

                            KarstenK wrote:

                            First multiply than divide

                            That happens all too often nowadays. :(( People should work harder at fulfilling their commitment.

                            Phil


                            The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.

                            R Offline
                            R Offline
                            Russell Jones
                            wrote on last edited by
                            #13

                            Phil J Pearson wrote:

                            KarstenK wrote: First multiply than divide That happens all too often nowadays. People should work harder at fulfilling their commitment.

                            Or require a licence prior to multiplication

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups