1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-07-02 15:27:22 -07:00

Switch to using NumberRange in range-related areas.

This commit is contained in:
Danila Fedorin 2017-09-20 15:45:43 -07:00
parent 2f4362e23b
commit 122b402ef4

View File

@ -9,6 +9,7 @@ import org.nwapw.abacus.context.EvaluationContext
import org.nwapw.abacus.context.MutableEvaluationContext import org.nwapw.abacus.context.MutableEvaluationContext
import org.nwapw.abacus.number.NaiveNumber import org.nwapw.abacus.number.NaiveNumber
import org.nwapw.abacus.number.NumberInterface import org.nwapw.abacus.number.NumberInterface
import org.nwapw.abacus.number.NumberRange
import org.nwapw.abacus.plugin.StandardPlugin import org.nwapw.abacus.plugin.StandardPlugin
import org.nwapw.abacus.tree.TreeNode import org.nwapw.abacus.tree.TreeNode
@ -30,7 +31,7 @@ import org.nwapw.abacus.tree.TreeNode
* @property pointInputVariable the variable which is substituted for the number of the input point being generated. * @property pointInputVariable the variable which is substituted for the number of the input point being generated.
*/ */
class Graph(val abacus: Abacus, class Graph(val abacus: Abacus,
var domain: ClosedRange<NumberInterface>, var range: ClosedRange<NumberInterface>, var domain: NumberRange, var range: NumberRange,
var inputVariable: String = "x", var pointInputVariable: String = "n") { var inputVariable: String = "x", var pointInputVariable: String = "n") {
/** /**