Math tools

From miki
Revision as of 17:38, 10 February 2016 by Mip (talk | contribs) (Created page with "== Function plotting == * '''PC / Android''' — Use '''[http://www.wolframalpha.com/ Wolfram Alpha]'''. For instance: plot sin(x)/x :Quick and easy but the free version ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function plotting

plot sin(x)/x
Quick and easy but the free version is limited (no zoom or drag).
sin(x)/x
g(x)=sin(x)/x
GeoGebra creates function plot as geometric objects, changing color for each function. Note that function can later be moved on the graph, and GeoGebra automatically adapt the algebraic expression
  • Android — Use Grapher (2D/3D/history...)
Very handy application. Can handle parametric equation, easy zoom, etc.
  • PC — Use iPython/Jupyter:
%matplotlib                    # OR %matplotlib inline in Jupyter
import matplotlib.pyplot as plt
import numpy as np
# http://stackoverflow.com/questions/332289/how-do-you-change-the-size-of-figures-drawn-with-matplotlib
plt.figure(figsize=(20,10)) 
x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp');
  • PC — Use Sage
f = lambda t: log( 3659846486 / ((30 - t) * 2^(t/2)) )/log(10)
p1 = plot(f,0,29.9,rgbcolor=hue(0.5))
p1
TBC