File: ruby.ct2

package info (click to toggle)
ctioga2 0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,340 kB
  • ctags: 1,525
  • sloc: ruby: 15,186; sh: 438; lisp: 58; makefile: 26
file content (11 lines) | stat: -rw-r--r-- 128 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
ruby
def f(x,a)
  return sin(x)*cos(a*x)
end
ruby end
math /samples=1000
auto-legend true
plot f(x,0) 
plot f(x,1)
plot f(x,2)