Python Forum
Sum Series w/ Fractions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sum Series w/ Fractions
#10
(Oct-10-2016, 06:27 PM)Mekire Wrote:
(Oct-10-2016, 06:23 PM)EwH006 Wrote: It was a typo to begin with, pfft. Mekire

I wasn't referring to any typo.  Your corrected, working code, that sums the range was what I was referring to.  Anyway, what do you mean by sum fractions?  Without a better explanation we can't help.  You want a range that takes non integer steps?

Sorry had to go to class. I was thanking you Mekire for the post you had previously submitted. I can't edit / delete my posts. Anyway I'm looking to do the same thing with the code I gave but I need to use the following fractions, in which I don't know how apply to the syntax of while or for loops: 1/3 , 3/5, 5/7, 7/9, 9/11, 11/13, +..... all the way to 97/99 = 45.12445030305

It won't let me use floating point numbers in the for loop for sure.
Reply


Messages In This Thread
Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 02:42 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 03:19 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 05:14 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 05:23 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 06:07 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 06:23 PM
RE: Sum Series w/ Fractions - by Mekire - Oct-10-2016, 06:27 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-10-2016, 10:47 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 06:14 PM
RE: Sum Series w/ Fractions - by Mekire - Oct-10-2016, 06:14 PM
RE: Sum Series w/ Fractions - by ichabod801 - Oct-10-2016, 11:09 PM
RE: Sum Series w/ Fractions - by EwH006 - Oct-11-2016, 04:37 PM
RE: Sum Series w/ Fractions - by micseydel - Oct-11-2016, 06:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Periodic Fractions with Fraction or float_to_ratio? TimeMen 3 3,023 May-20-2018, 03:48 PM
Last Post: ljmetzger

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020