Python Forum
Laplace Inverse Transform Implementation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Laplace Inverse Transform Implementation
#7
I recently added some lines at the bottom of that code to define the F(s) and call the HoogTransform function from the code with its parameters. These are the 3 new lines I added at the end of the code:


#defining the F(s)=1/(s-1)
def FUN(s):
   return 1.0/(s-1.0)

#Calling the HoogTransform function
HoogTransform (1.0, 100, 20, 100, FUN, 3, 1, 10, 10)
And this is the complete code:
But I get this error:
Error:
Traceback (most recent call last):   File "/home/hp/Desktop/4.py", line 147, in <module>     HoogTransform (1.0, 100, 20, 100, FUN, 3, 1, 10, 10)   File "/home/hp/Desktop/4.py", line 46, in HoogTransform     d[0] = AOld TypeError: 'int' object does not support item assignment
Does anybody have any idea about how I can fix it and finally get the code to work?
Thanks
Reply


Messages In This Thread
RE: Laplase Inverse Transform Implementation - by jafar1363 - Nov-15-2016, 11:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Looking for documentation on Reportlab's canvas.transform() function NeilUK 1 678 Aug-23-2023, 01:21 PM
Last Post: NeilUK
  Transform Dic to dataframe d9d9d 4 1,469 Apr-14-2022, 09:35 AM
Last Post: perfringo
  Transform 3 Columns into Single Column DaveG 8 1,990 Apr-04-2022, 08:42 AM
Last Post: Pedroski55
  How to transform from wide to long format in python shantanu97 1 1,699 Nov-21-2021, 11:53 AM
Last Post: buran
  How inverse a number? Capitaine_Flam 8 3,369 Nov-20-2020, 10:34 AM
Last Post: perfringo
  Transform list or set regardless of nesting structure blubb 2 2,016 Mar-10-2020, 07:17 PM
Last Post: ibreeden
  Transform simplified dictionary to nested dictionaries bhojendra 1 2,416 Jul-02-2019, 02:05 PM
Last Post: ichabod801
  transform list to tuple with takaa 2 2,925 Nov-28-2017, 10:44 PM
Last Post: takaa

Forum Jump:

User Panel Messages

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