Ticket #1776 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch, positive review] symbolic function preparser bug

Reported by: was Owned by: was
Priority: major Milestone: sage-2.10
Component: calculus Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

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.

Attachments

trac1776.patch Download (2.7 KB) - added by was 5 years ago.
slightly better fix (there is only one post-equals symbol, namely =). This also fixes typos and mistakes in some of the docs.

Change History

comment:1 Changed 5 years ago by was

  • Status changed from new to assigned

Changed 5 years ago by was

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

comment:2 Changed 5 years ago by jsp

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

comment:3 Changed 5 years ago by jsp

  • Summary changed from symbolic function preparser bug to symbolic function preparser bug [with patch, positive review]

comment:4 Changed 5 years ago by mabshoff

  • Status changed from assigned to closed
  • Resolution set to fixed

Merged in Sage 2.10.alpha3.

comment:5 Changed 5 years ago by mhansen

  • Summary changed from symbolic function preparser bug [with patch, positive review] to [with patch, positive review] symbolic function preparser bug
Note: See TracTickets for help on using tickets.