Show a F1D function in the range 1-10 using Ruby
Source code name: "func0.rb"
Programming language: Ruby
Topic: Function/1D
DMelt Version 1. Last modified: 12/11/2015. License: Free
https://datamelt.org/code/cache/func0_587.rb
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.



require 'java'

java_import Java::jhplot.HPlot
java_import Java::jhplot.F1D

c1=HPlot.new()
c1.setGTitle("F_{2}^{c#bar{c}}")
c1.visible()
c1.setAutoRange()
f1 = F1D.new("2*exp(-x*x/50)+sin(pi*x)/x", 1.0, 10.0)
c1.draw(f1)