Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MemoryError
#2
I can't reproduce your issue:
Error:
File "testit.py", line 7 function = ((2499-Speed)/357)*((-1,75*10**-8)*Head**4+(1,21*10**-4)*Head**3-(3,1*10**-1)*Head**2+(3,53*10**2)*Head-1,49*10**5)+((Speed-2142)/357)*((-2,87*10**-9)*Head**4 +(2,58*10**-5)*Head**3-(8,71*10**-2)*Head**2+(1,3*10**2)*Head-7,03*10**4) ^ SyntaxError: invalid token
That said, I would have had to guess a speed and head. Can you please provide simpler code without input() (just hard-coded values which reproduce the issue) and verify that the code you've posted produces a particular error? Also, you should provide the full error message, not just "MemoryError" (if your IDE does not provide this, use a terminal to get it). I expect that you should be able to post five or fewer lines to reproduce this issue, no need to provide 4 similar lines.

Other than that, what type are you expecting function to be?
Reply


Messages In This Thread
MemoryError - by mitmoot - Nov-27-2018, 07:49 PM
RE: MemoryError - by micseydel - Nov-27-2018, 08:12 PM
RE: MemoryError - by Larz60+ - Nov-27-2018, 08:12 PM
RE: MemoryError - by ichabod801 - Nov-27-2018, 08:35 PM
RE: MemoryError - by Gribouillis - Nov-27-2018, 09:03 PM
RE: MemoryError - by mitmoot - Dec-07-2018, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MemoryError in pywinauto.findwindows.find_windows – Need Help! ktw3857 1 465 Apr-18-2024, 04:28 PM
Last Post: itegumo
  Code starts slowing down? MemoryError AshkanDev 1 2,231 May-19-2020, 11:38 PM
Last Post: AshkanDev
  Getting MemoryError frames.write(buffer) kunwarsingh 0 1,671 Feb-10-2020, 09:39 PM
Last Post: kunwarsingh
  MemoryError AwaAgathe 0 1,788 Feb-26-2019, 02:57 AM
Last Post: AwaAgathe

Forum Jump:

User Panel Messages

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