sum to infinity fuctions with arrays in python help?
Watch
Announcements
Page 1 of 1
Skip to page:
The pic linked below shows the function i need to code. can someone start me off in terms of the process, like what do i need to do after defining the function?
also I'm very new to python
also I'm very new to python
Last edited by localmemelord; 1 month ago
0
reply
Report
#2
(Original post by localmemelord)
The pic linked below shows the function i need to code. can someone start me off in terms of the process, like what do i need to do after defining the function?
also I'm very new to python
The pic linked below shows the function i need to code. can someone start me off in terms of the process, like what do i need to do after defining the function?
also I'm very new to python
0
reply
Report
#3
(Original post by localmemelord)
The pic linked below shows the function i need to code. can someone start me off in terms of the process, like what do i need to do after defining the function?
also I'm very new to python
The pic linked below shows the function i need to code. can someone start me off in terms of the process, like what do i need to do after defining the function?
also I'm very new to python
0
reply
Report
#4
(Original post by davros)
How much Python have you covered? I'm not an expert, but you're going to need the sine function so I'm not sure whether that's in native Python or whether you have to import a maths library, should be fairly simple in either case. And then your (truncated) sum is basically a big for loop - but note that it's only summing over odd values of n, so be careful how you set up the for loop. All the rest is just multiplying and adding (using a running total for the sum), plus a reference to pi (again, not sure if that's a predefined constant in Python).
How much Python have you covered? I'm not an expert, but you're going to need the sine function so I'm not sure whether that's in native Python or whether you have to import a maths library, should be fairly simple in either case. And then your (truncated) sum is basically a big for loop - but note that it's only summing over odd values of n, so be careful how you set up the for loop. All the rest is just multiplying and adding (using a running total for the sum), plus a reference to pi (again, not sure if that's a predefined constant in Python).
0
reply
Report
#6
(Original post by SHADOW_SCRIPT)
no ik how to do it in python, i just need you to break the math problem into steps
no ik how to do it in python, i just need you to break the math problem into steps

0
reply
Report
#7
ah right
well:
python has no Pi
not sur about sine, though i think it does
btw good advice
well:
python has no Pi
not sur about sine, though i think it does
btw good advice

0
reply
X
Page 1 of 1
Skip to page:
Quick Reply
Back
to top
to top