Thread: Python Help
i'm new using classes in python, python in general, , i'm not sure i'm doing wrong this. i'm hoping can tell me how fix this.
code:class cp: x = x/1000 def o2(self, x): self.state = 30.03235 + 8.772972*x + (-3.988133*x**2) + (0.788313*x**3) - 0.741599/(x**2) def n2(self, x): self.state = 19.50583 + 19.88705*x + (-8.598535*x**2) + (1.369784*x**3) + 0.527601/(x**2) print(cp.o2(1500))
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Python Help
Ubuntu
Comments
Post a Comment