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

symbolic function preparser bug #1776

Closed
williamstein opened this issue Jan 14, 2008 · 3 comments
Closed

symbolic function preparser bug #1776

williamstein opened this issue Jan 14, 2008 · 3 comments

Comments

@williamstein
Copy link
Contributor

sage: preparse('f(x) = x')
'_=var("x");f=symbolic_expression(x).function(x)'
sage: preparse('f(x) =+x')
'f(x) =+x'
sage: preparse('f(x) =-x')
'f(x) =-x'

This was found by Jason Grout, with input by Jaap Spies and John Cremona.

Component: calculus

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

@williamstein williamstein added this to the sage-2.10 milestone Jan 14, 2008
@williamstein williamstein self-assigned this Jan 14, 2008
@williamstein
Copy link
Contributor Author

slightly better fix (there is only one post-equals symbol, namely =). This also fixes typos and mistakes in some of the docs.

@jaapspies
Copy link
Member

comment:2

Attachment: trac1776.patch.gz

Works for me!

----------------------------------------------------------------------
| SAGE Version 2.10.alpha2, Release Date: 2008-01-11                 |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------


sage: f(x)=-x

sage: f(2)
 -2


Jaap

@jaapspies jaapspies changed the title symbolic function preparser bug symbolic function preparser bug [with patch, positive review] Jan 14, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 14, 2008

comment:4

Merged in Sage 2.10.alpha3.

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Jan 14, 2008
@mwhansen mwhansen changed the title symbolic function preparser bug [with patch, positive review] symbolic function preparser bug Jan 15, 2008
@mwhansen mwhansen reopened this Jan 15, 2008
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