File: ruby.ct2

package info (click to toggle)
ctioga2 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,524 kB
  • sloc: ruby: 17,592; sh: 720; lisp: 88; makefile: 27
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)