Skip to content
Snippets Groups Projects
Commit e070c517 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Fix code example in README.rst

parent 2e5fa980
Branches
Tags
No related merge requests found
...@@ -48,7 +48,7 @@ Create a `pystencils.AssignmentCollection` with pystencils: ...@@ -48,7 +48,7 @@ Create a `pystencils.AssignmentCollection` with pystencils:
import sympy import sympy
import pystencils import pystencils
z, x, y = pystencils.fields("z, y, x: [20,30]") z, y, x = pystencils.fields("z, y, x: [20,30]")
forward_assignments = pystencils.AssignmentCollection({ forward_assignments = pystencils.AssignmentCollection({
z[0, 0]: x[0, 0] * sympy.log(x[0, 0] * y[0, 0]) z[0, 0]: x[0, 0] * sympy.log(x[0, 0] * y[0, 0])
......
...@@ -38,7 +38,7 @@ Create a :class:`pystencils.AssignmentCollection` with pystencils: ...@@ -38,7 +38,7 @@ Create a :class:`pystencils.AssignmentCollection` with pystencils:
import sympy import sympy
import pystencils import pystencils
z, x, y = pystencils.fields("z, y, x: [20,30]") z, y, x = pystencils.fields("z, y, x: [20,30]")
forward_assignments = pystencils.AssignmentCollection({ forward_assignments = pystencils.AssignmentCollection({
z[0, 0]: x[0, 0] * sympy.log(x[0, 0] * y[0, 0]) z[0, 0]: x[0, 0] * sympy.log(x[0, 0] * y[0, 0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment