All public logs
From TheAnalogThing
Combined display of all available logs of TheAnalogThing. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 09:45, 9 August 2021 Sven talk contribs created page File:Overload.svg (A cartoon displaying the Machine Units. Made by User:Sven == Python/Matplotlib source code == <pre> import pylab as pl, numpy as np # some inspiration comes from https://stackoverflow.com/a/23855021 maxX = 5 A = 1.5 # sin amplitude B = 1.2 # clipping C = 1.0 # computing range x = np.arange(-maxX, maxX,0.1) y = np.exp(x/2) * np.sin(x)*A tolerance = np.logical_or(y < -C, y > C) overload = np.logical_or(y < -B, y > B) y = np.clip(y, -B, B) fig = pl.figure() ax = fig.add_subplot(111...)
- 09:45, 9 August 2021 Sven talk contribs uploaded File:Overload.svg (A cartoon displaying the Machine Units. Made by User:Sven == Python/Matplotlib source code == <pre> import pylab as pl, numpy as np # some inspiration comes from https://stackoverflow.com/a/23855021 maxX = 5 A = 1.5 # sin amplitude B = 1.2 # clipping C = 1.0 # computing range x = np.arange(-maxX, maxX,0.1) y = np.exp(x/2) * np.sin(x)*A tolerance = np.logical_or(y < -C, y > C) overload = np.logical_or(y < -B, y > B) y = np.clip(y, -B, B) fig = pl.figure() ax = fig.add_subplot(111...)