File: plotting16.mac

package info (click to toggle)
maxima 5.47.0-9
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 193,104 kB
  • sloc: lisp: 434,678; fortran: 14,665; tcl: 10,990; sh: 4,577; makefile: 2,763; ansic: 447; java: 328; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (9 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
xy: [[10,.6],[20,.9],[30,1.1],[40,1.3],[50,1.4]]$
plot2d ([[discrete,xy], 2*%pi*sqrt(l/980)], [l,0,50], [style,points,lines],
  [color,red,blue], [point_type,asterisk], [legend,"experiment","theory"],
  [xlabel,"pendulum's length (cm)"], [ylabel, "period (s)"],
  [pdf_file,"./plotting16.pdf"]);
plot2d ([[discrete,xy], 2*%pi*sqrt(l/980)], [l,0,50], [style,points,lines],
  [color,red,blue], [point_type,asterisk], [legend,"experiment","theory"],
  [xlabel,"pendulum's length (cm)"], [ylabel, "period (s)"],
  [png_file,"./plotting16.png"]);