Not really familiar with terminology in higher Mathematics, so I will try to use python to express my ideas instead.
From Wikipedia: a scalar field associates a scalar value to every point in a space
So basically this is just a function that returns a single value then?
# a scalar field in one dimensional space
def scalar_field(x):
return x * 2
a scalar field in two dimensional space
def scalar_field(x,y):
return x * y * 2
From Wikipedia: a vector field associates a vector to every point in space
So basically this is just a function that returns multiple values then?
# a vector field in one dimensional space
def vector_field(x):
return (x*2, x*2)
a vector field in two dimensional space
def vector_field(x,y):
return (xy2, xy2)
Is this all there is to this concept, or am I overlooking something?