Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Conjugate Gradient having issues with defining A (function to solve [A]{x} = {b} )
Post: Conjugate Gradient having issues with defining A (...

Hi guys I have a problem with defining A (its in line 33) in my Full matrix solution and i was wondering if you could help me . class Vector(object): def __init__(self, data): self.data =...
DimosG General Coding Help 2 2,834 Apr-05-2020, 06:36 PM
    Thread: TypeError: can't multiply sequence by non-int of type 'float'
Post: TypeError: can't multiply sequence by non-int of t...

Hi guys I'm having a problem with an assignment in my class we are now on using fullmatrix and sparce and I get this error in my code : class Vector(object): def __init__(self, data): se...
DimosG General Coding Help 3 3,376 Apr-03-2020, 05:58 PM
    Thread: Issue with def norm in class Vector
Post: RE: Issue with def norm in class Vector

Wow guys thanks a lot I am new to python and classes seem a bit strange to understand !
DimosG General Coding Help 4 2,492 Mar-26-2020, 05:03 PM
    Thread: Issue with def norm in class Vector
Post: Issue with def norm in class Vector

Hi guys I am trying to calculate the norm(magnitude) of a Vector using class and when i run the code I get: Error:return math.sqrt(sum( i**2 for i in self )) TypeError: 'Vector' object is not iterable...
DimosG General Coding Help 4 2,492 Mar-26-2020, 02:53 PM

User Panel Messages

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