Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorial: typo in section "Euler’s Method for Systems of Differential Equations" #8245

Closed
sagetrac-mvngu mannequin opened this issue Feb 12, 2010 · 9 comments
Closed

Comments

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Feb 12, 2010

From sage-support:

In the section, "A Guided Tour"->"Basic Algebra and Calculus"-
>"Euler’s Method for Systems of Differential Equations", I found that

the answer of the example is z(1)≈0.75, which seems to be wrong.

The calculation is
------------------------------------------------------------------------
sage: t,x,y = PolynomialRing(RealField(10),3,"txy").gens()
sage: f = y; g = -x - y * t
sage: eulers_method_2x2(f,g, 0, 1, 0, 1/4, 1)
         t                    x                h*f(t,x,y)                    y           h*g(t,x,y)
         0                    1                      0.00                    0                -0.25
       1/4                  1.0                    -0.062                -0.25                -0.23
       1/2                 0.94                     -0.12                -0.48                -0.17
       3/4                 0.82                     -0.16                -0.66               -0.081
         1                 0.65                     -0.18                -0.74                0.022
------------------------------------------------------------------------

So I think the right answer should be z(1)≈0.65 

CC: @kcrisman

Component: documentation

Keywords: beginner sd35.5

Author: Kenneth Smith

Reviewer: Karl-Dieter Crisman

Merged: sage-4.8.rc0

Issue created by migration from https://trac.sagemath.org/ticket/8245

@sagetrac-mvngu sagetrac-mvngu mannequin added this to the sage-4.8 milestone Feb 12, 2010
@sagetrac-mvngu sagetrac-mvngu mannequin self-assigned this Feb 12, 2010
@kcrisman

This comment has been minimized.

@sagetrac-ksmith
Copy link
Mannequin

sagetrac-ksmith mannequin commented Jan 11, 2012

Author: Kenneth Smith

@sagetrac-ksmith
Copy link
Mannequin

sagetrac-ksmith mannequin commented Jan 11, 2012

comment:4

Attachment: trac_8245_Euler_Guided_Tour.patch.gz

I just made that one change making the 7 a 6.

@sagetrac-ksmith
Copy link
Mannequin

sagetrac-ksmith mannequin commented Jan 11, 2012

Changed keywords from none to beginner sd35.5

@kcrisman
Copy link
Member

Reviewer: Karl-Dieter Crisman

@kcrisman
Copy link
Member

comment:6

And the math turns out to be right. The example itself is somewhat elliptically expressed, but this is fine.

Curious as to why we have both :math: and the backticks... but anyway, that would be a general overhaul of the tutorial.

@jdemeyer
Copy link

comment:7

Replying to @kcrisman:

Curious as to why we have both :math: and the backticks... but anyway, that would be a general overhaul of the tutorial.

Within Sage, `foo` is equivalent to :math:`foo`. In general ReST code, this is not true.

@kcrisman
Copy link
Member

comment:8

Curious as to why we have both :math: and the backticks... but anyway, that would be a general overhaul of the tutorial.

Within Sage, `foo` is equivalent to :math:`foo`. In general ReST code, this is not true.

Ah, so it's historical in that sense. Thanks for the clarification.

@jdemeyer
Copy link

Merged: sage-4.8.rc0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants