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 fbc9020

Browse filesBrowse files
committed
readme
1 parent d0fffde commit fbc9020
Copy full SHA for fbc9020

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

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

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ http://amelentev.github.io/eclipse.jdt-oo-site/
1010
-----------------------Example Code---------------------------
1111

1212
package symjava.examples;
13+
14+
import static symjava.symbolic.Symbol.*;
15+
import symjava.bytecode.BytecodeFunc;
16+
import symjava.symbolic.*;
17+
1318
/**
1419
* This example uses Java Operator Overloading for symbolic computation.
1520
* See https://github.com/amelentev/java-oo for Java Operator Overloading.
@@ -18,9 +23,18 @@ package symjava.examples;
1823
public class Example1 {
1924

2025
public static void main(String[] args) {
26+
Expr expr = x + y * z;
27+
System.out.println(expr);
2128
22-
29+
Expr expr2 = expr.subs(x, y*y);
30+
System.out.println(expr2);
31+
System.out.println(expr2.diff(y));
32+
33+
Func f = new Func("f1", expr2.diff(y));
34+
System.out.println(f);
35+
36+
BytecodeFunc func = f.toBytecodeFunc();
37+
System.out.println(func.apply(1,2));
2338
}
24-
2539
}
2640

Collapse file

‎README.md~‎

Copy file name to clipboard
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SymJava
2+
SymJava is a Java library for symbolic mathematics.
3+
4+
SymJava is developed under Java 7 and Eclipse-Kepler (SR2 4.3.2, https://www.eclipse.org/downloads/packages/release/kepler/sr2)
5+
6+
Install java-oo Eclipse plugin for Java Operator Overloading support (https://github.com/amelentev/java-oo):
7+
Click in menu: Help -> Install New Software. Enter in "Work with" field:
8+
http://amelentev.github.io/eclipse.jdt-oo-site/
9+
10+
-----------------------Example Code---------------------------
11+
12+
package symjava.examples;
13+
/**
14+
* This example uses Java Operator Overloading for symbolic computation.
15+
* See https://github.com/amelentev/java-oo for Java Operator Overloading.
16+
*
17+
*/
18+
public class Example1 {
19+
20+
public static void main(String[] args) {
21+
22+
23+
}
24+
25+
}
26+

0 commit comments

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