diff --git a/scripts/InverseFourierTransformOfSquareRootOfFourierTransformOfJ0.arb b/scripts/InverseFourierTransformOfSquareRootOfFourierTransformOfJ0.arb index 132c0cbfa..e37d322b0 100644 --- a/scripts/InverseFourierTransformOfSquareRootOfFourierTransformOfJ0.arb +++ b/scripts/InverseFourierTransformOfSquareRootOfFourierTransformOfJ0.arb @@ -1,6 +1,3 @@ -f + +var f = RealFunction.express("(√(π)*Γ(3/4)*J(1/4, |s|)*2^(1/4)/|s|^(1/4))"); plot(-10,40,2000,f); -f.eval(-2.3); -plot(-10,40,2000,f); -var f = RealFunction.express("(√(π)*Γ(3/4)*J(1/4, abs(s))*2^(1/4)/abs(s)^(1/4))"); -plot(-10,40,2000,f); \ No newline at end of file diff --git a/src/main/java/arb/expressions/nodes/DerivativeNode.java b/src/main/java/arb/expressions/nodes/DerivativeNode.java index 8e5e6b76f..981febcfd 100644 --- a/src/main/java/arb/expressions/nodes/DerivativeNode.java +++ b/src/main/java/arb/expressions/nodes/DerivativeNode.java @@ -72,6 +72,13 @@ public class DerivativeNode> Node { + @Override + public Node simplify() + { + derivative.isResult = isResult; + return derivative; + } + @Override public String toString() { @@ -132,6 +139,7 @@ public boolean isLeaf() public MethodVisitor generate(MethodVisitor mv, Class resultType) { assert !resultType.equals(Object.class) : "Objects shan't be generated"; + derivative.isResult = isResult; return derivative.generate(mv, resultType); }