|
Show a F1D function in the range 1-10 using Groovy
Source code name: "func0.groovy"
Programming language: Groovy
Topic: Function/1D
DMelt Version 1. Last modified: 12/11/2015. License: Free
https://datamelt.org/code/cache/func0_2994.groovy
To run this script using the DataMelt 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)