Show a F1D function in the range 1-10 using Groovy
Code: "func0.groovy"
Programming language: Groovy
DMelt Version 1. Last modified: 12/11/2015. License: Free
http://jwork.org/dmelt/code/cache/func0_3845.groovy
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.



import jhplot.*
f1 = new F1D("2*exp(-x*x/50)+sin(pi*x)/x", 1.0, 10.0)
c1 = new HPlot("Example of  function")
c1.visible()
c1.setAutoRange()
c1.draw(f1)