Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2f3be9b

Browse filesBrowse files
Yueming LiuYueming Liu
authored andcommitted
fix Expr operator overload
1 parent a6680c3 commit 2f3be9b
Copy full SHA for 2f3be9b

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎.classpath‎

Copy file name to clipboardExpand all lines: .classpath
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<classpath>
33
<classpathentry kind="src" path="src"/>
44
<classpathentry kind="lib" path="lib/Jama-1.0.3.jar"/>
5-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-7-oracle"/>
5+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
66
<classpathentry kind="output" path="bin"/>
77
</classpath>
Collapse file

‎src/symjava/symbolic/Expr.java‎

Copy file name to clipboardExpand all lines: src/symjava/symbolic/Expr.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public Expr fdiff(Expr f, Expr df) {
2525
throw new IllegalArgumentException();
2626
Func F = (Func)f;
2727
Symbol alpha = new Symbol("_alpha_");
28-
Expr ff = this.subs(f, f+alpha*df);
28+
Expr ff = this.subs(f, f.add(alpha.multiply(df)));
2929
Expr dff = ff.diff(alpha);
3030
if(Symbol.C0.symEquals(dff)) {
3131
Func ret = new Func("0", F.args);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.