Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. guilhermemarques

    Problem with precision solving one math series!

    Thanks xwb, im using a G77 compiler. Actually the real*8 works. But the maximum value for T is yet small. When i tried to reach "(T<2200000000)" for example, it doesn´t work. Error msg: ~Fonte1.f:5: do while (T<2200000000) ^ Integer at (^) too large My...
  2. guilhermemarques

    Problem with precision solving one math series!

    My mistake, in the original program was: "do while (T<17000099)" How can i declare one double variable in Fortran? I tried double :: var But it doesn´t work.
  3. guilhermemarques

    Problem with precision solving one math series!

    Hey guys, I have to program a Fortran code to solve the problem: S = 1/1 + 1/2 + ... + 1/T to get the largest S possible. Actually my fortran program is like: program test implicit none real :: T = 17000000, S = 0; do while (T<17000000) S = S + 1/T...

Part and Inventory Search

Back
Top