-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymbol_func_spaces.py
58 lines (50 loc) · 1.52 KB
/
symbol_func_spaces.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from sympy import *
import inspect
from fractions import Fraction
init_printing()
s=Symbol("s")
p=Symbol("p")
f=Symbol("f")
k=Symbol("k")
alpha=Symbol("alpha")
r=Symbol("r")
class Lp(Function):
@classmethod
def eval(cls, p, f):
pass
def _latex(self, printer):
p, f = self.args
_p, _f = printer._print(p), printer._print(f)
return r'\left \| %s \right \|_{L^{%s}}' % (_f, _p)
class hom_Hs(Function):
@classmethod
def eval(cls, s, Ff):
pass
def _latex(self, printer):
s,Ff = self.args
_s,_Ff = printer._print(s), printer._print(Ff)
return r'\left \| %s \right \|_{\dot{H}^{%s}}' % (_Ff,_s)
class inhom_Hs(Function):
@classmethod
def eval(cls, s, Ff):
pass
def _latex(self, printer):
s,Ff = self.args
_s,_Ff = printer._print(s), printer._print(Ff)
return r'\left \| %s \right \|_{H^{%s}}' % (_Ff,_s)
class Sobolev_Space(Function):
@classmethod
def eval(cls, k, p, f):
pass
def _latex(self, printer):
k,p,f = self.args
_k,_p,_f = printer._print(k),printer._print(p), printer._print(f)
return r'\left \| %s \right \|_{W^{%s,%s}}' % (_f,_k,_p)
class Holder_Space(Function):
@classmethod
def eval(cls, k, alpha, f):
pass
def _latex(self, printer):
k,alpha,f = self.args
_k,_alpha,_f = printer._print(k),printer._print(alpha), printer._print(f)
return r'\left \| %s \right \|_{C^{%s,%s}}' % (_f,_k,_alpha)