20 lines
493 B
Java
20 lines
493 B
Java
package it.cavallium.warppi.math.parser.features;
|
|
|
|
import it.cavallium.warppi.math.Function;
|
|
import it.cavallium.warppi.math.MathContext;
|
|
import it.cavallium.warppi.math.functions.trigonometry.Sine;
|
|
import it.cavallium.warppi.util.Error;
|
|
|
|
public class FeatureSine extends FeatureSingleImpl {
|
|
|
|
public FeatureSine(Object child) {
|
|
super(child);
|
|
}
|
|
|
|
@Override
|
|
public Function toFunction(MathContext context) throws Error {
|
|
return new Sine(context, getFunction1());
|
|
}
|
|
|
|
}
|