File:Slope field from Eugster.svg
Summary
Description |
English: octave plot intended to beautify Simon Eugsters contribution of Allemanian "Richtungsfeld". |
Date | |
Source | Own work |
Author | Glockenklang1 |
Octave source code
create a file named richtunsgfeld.m with content
%----- snip
function richtungsfeld(dgl)
y = -5:.5:5;
x = -5:.5:5;
for y_n = 1:length(y)
for x_n = 1:length(x)
len = sqrt( dgl(y(y_n), x(x_n))^2 + 1 );
dx(y_n,x_n) = 1 / len;
dy(y_n,x_n) = dgl(y(y_n), x(x_n)) / len;
end
end
h=quiver(x, y, dx, dy,0.5,"r","linewidth",1);
set (h, "maxheadsize", 0.1);
xlabel ("x");
ylabel("y");
print('field.svg', '-dsvg')
%-----snap
then run three octave commands
source("richtungsfeld.m")
dgl = @(y, x) y-x
richtungsfeld(dgl)
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.