Post Reply 
Help with HP Prime Python Documentation
10-05-2021, 09:13 PM
Post: #8
RE: Help with HP Prime Python Documentation
Not to disapoint Gunter, here is his code, edited:


Code:
from math import *
import hpprime
c=int(input("Enter the exponent! "))
print("Exponent = ",c)
print("Iterations = ", 10**c)
a=0
t=hpprime.eval("time")
for i in range(1, 10**c+1):
    a=a+pow((e**(sin(atan(i)))),1/3) 
print("Time (sec) = ",round(hpprime.eval("time")-t,4))
print("Sum = ",a)

Namir
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Help with HP Prime Python Documentation - Namir - 10-05-2021 09:13 PM



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