2016-09-19 18:48:27 +02:00
|
|
|
package org.warp.picalculator.math.functions.equations;
|
2016-09-12 16:30:51 +02:00
|
|
|
|
2016-09-19 18:48:27 +02:00
|
|
|
import org.warp.picalculator.Error;
|
2017-05-26 22:37:18 +02:00
|
|
|
import org.warp.picalculator.gui.expression.blocks.Block;
|
2017-02-14 20:02:03 +01:00
|
|
|
import org.warp.picalculator.math.Function;
|
|
|
|
import org.warp.picalculator.math.FunctionDynamic;
|
2017-05-16 22:02:44 +02:00
|
|
|
import org.warp.picalculator.math.MathContext;
|
|
|
|
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
|
|
|
|
|
2017-02-14 20:02:03 +01:00
|
|
|
public class EquationsSystem extends FunctionDynamic {
|
2016-09-12 16:30:51 +02:00
|
|
|
static final int spacing = 2;
|
2017-01-17 22:32:40 +01:00
|
|
|
|
2017-02-14 20:02:03 +01:00
|
|
|
public EquationsSystem(MathContext root) {
|
2017-01-17 22:32:40 +01:00
|
|
|
super(root);
|
2016-09-12 16:30:51 +02:00
|
|
|
}
|
2017-01-31 22:29:49 +01:00
|
|
|
|
2017-02-14 20:02:03 +01:00
|
|
|
public EquationsSystem(MathContext root, Function value) {
|
2017-01-31 22:29:49 +01:00
|
|
|
super(root, new Function[] { value });
|
2016-09-12 16:30:51 +02:00
|
|
|
}
|
2017-01-31 22:29:49 +01:00
|
|
|
|
2017-02-14 20:02:03 +01:00
|
|
|
public EquationsSystem(MathContext root, Function[] value) {
|
2017-01-17 22:32:40 +01:00
|
|
|
super(root, value);
|
2016-09-12 16:30:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-03-03 23:06:43 +01:00
|
|
|
public EquationsSystem clone() {
|
|
|
|
return new EquationsSystem(root, functions);
|
2016-09-12 16:30:51 +02:00
|
|
|
}
|
2017-04-10 22:50:43 +02:00
|
|
|
|
2017-05-26 22:37:18 +02:00
|
|
|
@Override
|
|
|
|
public ObjectArrayList<Block> toBlock(MathContext context) throws Error {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2016-09-12 16:30:51 +02:00
|
|
|
}
|