Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

C30N9

Members
  • Content count

    1331
  • Joined

  • Last visited

5 Followers

About C30N9

  • Rank
    Senior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Single Status Update

See all updates by C30N9

  1. This code is supposed to calculate e to the power x. It works fine at lower numbers, but then at x = 3.6, the output starts to decrease as x goes up. What's wrong?

    C language.

    EDIT: The problem was that "factorial" function was an int, so at high values, it won't work.

    code:
    Array

    1. Show previous comments  3 more
    2. AndrewB

      AndrewB

      I'm pretty sure this forum can't be Google searched anyway.

    3. GreyGhost

      GreyGhost

      Looks like it can't, but you can Google search member blogs, so at least the OP can be read without logging into the forums.

    4. Memfis

      Memfis

      When you ask a question like this and then notice your own mistake, it can make you feel embarassed, especially if it's something that seems totally obvious now that you've spotted it. Naturally, you don't want other people to laugh at you so you hide the evidence of your stupidity. I can understand that even though Phml is probably right.

    5. Show next comments  3 more
×