Results 1 to 1 of 1

Thread: Python (x,y) Help

  1. #1
    Join Date
    Mar 2008
    Location
    London
    Posts
    748

    Default Python (x,y) Help

    Already been answered

    I've started a programming module this semester and looking for help with Python (x,y) coding.

    It will be specifically based on the uses of it that scientists use it for. Here is my first question;

    First consider evaluating the sum:



    Since we know the number of terms, we can use a for loop. Note that if you try to do this using integer arithmetic on the computer you will get the wrong answer.

    Need some help here, I have an idea how to do it using a while loop, but don't know how to do it with a for loop. If you could explain the answer as well that would be nice as well .
    Last edited by nosejam; 10-13-2008 at 14:34.

Posting Permissions

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