Math tools: Difference between revisions

From miki
Jump to navigation Jump to search
(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 ...")
 
Line 25: Line 25:
p1
p1
* '''PC''' — Use '''[http://matplotlib.org/ matplotlib]'''
* '''PC''' — Use '''[http://matplotlib.org/ matplotlib]'''
:TBC
* '''PC''' — Use '''Jupyter with Julia kernel'''
:TBC
:TBC

Revision as of 17:42, 10 February 2016

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
  • PC — Use Jupyter with Julia kernel
TBC