Post Reply 
New Sum of Powers Log Function
04-01-2021, 06:05 PM (This post was last modified: 04-01-2021 06:12 PM by Namir.)
Post: #18
RE: New Sum of Powers Log Function
Does any of your previous analysis and approximations work on the following variants of the SopLog summations?

Code:
def sdSum(n,s,x,scale):
  sumx = 1
  factor = 1
  for i in range(n,2,-1):
    sumx += i ** (x * factor)
    factor *= scale
  return sumx - s
  
  
def siSum(n,s,x,scale):
  sumx = 1
  factor = 1
  for i in range(2,n+1):
    sumx += i ** (x * factor)
    factor *= scale
  return sumx - s
  
def siSum2(n,s,x,incr):
  sumx = 1
  factor = 1
  j = 2
  for i in range(2,n):
    sumx += j ** (x * factor)
    j += incr
  return sumx - s
  
  
def siSum3(n,s,x,incr,scale):
  sumx = 1
  factor = 1
  j = 2
  for i in range(2,n+1):
    sumx += j ** (x * factor)
    j += incr
    factor *= scale
  return sumx - s

The "scale" can be above or below 1. The "incr" is an integer >= 1.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New Sum of Powers Log Function - Namir - 03-29-2021, 04:53 PM
RE: New Sum of Powers Log Function - C.Ret - 03-29-2021, 08:39 PM
RE: New Sum of Powers Log Function - Namir - 03-30-2021, 11:05 AM
RE: New Sum of Powers Log Function - Gene - 03-30-2021, 01:43 PM
RE: New Sum of Powers Log Function - C.Ret - 03-30-2021, 04:01 PM
RE: New Sum of Powers Log Function - Namir - 03-30-2021, 05:56 PM
RE: New Sum of Powers Log Function - Namir - 03-31-2021, 01:27 PM
RE: New Sum of Powers Log Function - Namir - 03-31-2021, 02:19 PM
RE: New Sum of Powers Log Function - Namir - 04-01-2021 06:05 PM
RE: New Sum of Powers Log Function - Namir - 04-01-2021, 11:55 PM
RE: New Sum of Powers Log Function - Namir - 04-04-2021, 03:41 PM



User(s) browsing this thread: 1 Guest(s)