File:Scalar fields theta quadrant.svg

Summary

Description
English: This diagram for the Wikiversity:Special relativity and steps towards general relativity course is used in showing that the coordinate typically called θ, itself a scalar field, has strong gradients near the origin and weak gradients far from the origin. This is a small step towards explaining the algebra of tensor fields. A scalar field is itself a (0,0) tensor field.
Date
Source Own work
Author Boud

octave source code

The .svg version of the file, along with a better quality encapsulated postscript file, is produced by

  • the following octave source code,
  • in a local directory called /tmp
  • the .svg file is about 260 times as big as the source code
  • the .eps file is about 50 times as big as the source code
## (c) CC-BY-SA-3.0 or later
## octave script: visual intuition of a coordinate of the Euclidean plane
## as scalar fields on a smooth 2-manifold

n_dots=30;
x=linspace(0,10,n_dots);
y=linspace(10,0,n_dots);
xmat=repmat(x,n_dots,1);
ymat=repmat(y',1,n_dots);
theta=atan2(ymat,xmat);
imagesc(x,y,theta)
print('/tmp/Scalar_fields_theta_quadrant.eps',"-depsc","-F:20")
print('/tmp/Scalar_fields_theta_quadrant.svg',"-dsvg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#Scalar%20fields%20theta%20quadrant.svg
Category:Self-published work Category:Images with Octave source code Category:Scalar fields Category:Color gradient
Category:CC-BY-SA-3.0 Category:Color gradient Category:Images with Octave source code Category:Scalar fields Category:Self-published work