File:Beta versus rapidity.svg

Summary

Description
English: This diagram for the Wikiversity:Special relativity and steps towards general relativity course shows the relation between speed and rapidity. Use the octave source code below to produce a better quality postscript figure than the .svg figure.
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
## octave script 
## * output files created in /tmp : tanh.(eps|svg)
## * the .svg file is likely to have font problems, the .eps file should be OK
set(gcf(),"defaultlinelinewidth",3);
phi=linspace(-5,5,500);
plot(phi,tanh(phi),'-',
     [-5 5],[-1 -1],'-k','linewidth',1,
     [-5 5],[1 1],'-k','linewidth',1)
set(gca(),"fontsize",24, "linewidth",3);
xlabel('{\fontsize{32}\phi}');
ylabel('{\fontsize{32}\beta = tanh \phi }');
axis([-5 5 -1.5 1.5])
print('/tmp/Beta_versus_rapidity.eps','-deps','-F:24')
print('/tmp/Beta_versus_rapidity.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#Beta%20versus%20rapidity.svg
Category:Self-published work Category:Minkowski diagrams Category:Created with GNU Octave Category:Hyperbolic tangent function
Category:CC-BY-SA-3.0 Category:Created with GNU Octave Category:Hyperbolic tangent function Category:Minkowski diagrams Category:Self-published work