I want to use a function implemented inside a class as followed:
class calcul:
def func(a,b):
return log(a/b)
def sec_func(c,d):
out = func(c,d)
return out
I've tried to initiate the function:
class calcul:
def __init__(self):
self.func(a,b)
def func(a,b):
return log(a/b)
def sec_func(self,c,d):
out = self.func(c,d)
return out
however, I get 'func is not defined' as output