bugJACAL symbolic mathematics program - Bugs: bug #17704, function definition doesn't...


bug #17704: function definition doesn't "see" all bound variables

Submitted by:  None
Submitted on:  Mon 11 Sep 2006 08:44:53 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Aubrey Jaffer <jaffer>
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 23 Sep 2009 05:50:27 AM UTC, comment #1:

FWIW, it looks like this is still happening in 1c1.

Wim Lewis <wiml>
Mon 11 Sep 2006 08:44:53 PM UTC, original submission:

For example, defining a funcion to return one of the roots of a quadratic equation,

qf(a,b,c) := ( -b + (b^2 - 4ac)^(1/2) ) / (2*a);

and then applying it, the variables inside the root do not get bound to the lambda's arguments. Example (using outgrammar standard):

e1 : qf;
qf: lambda([@1, @2], (%i * ((- b^2) + 4 * a * c)^(1/2) - @2)/(2 * @1))

e1 : qf(p,q,r);

e1: ((- q) + %i * ((- b^2) + 4 * a * c)^(1/2))/(2 * p)

e2 : qf(1,0,0);

e2: %i * ((- b^2) + 4 * a * c)^(1/2)/2

JACAL's behavior seems to be the same in 1b5 and 1b6 wrt this problem.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jaffer (Updated the item)
  • -unavailable- added by wiml (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 12 Oct 2009 04:28:40 AM UTCjafferAssigned toNone=>jaffer
    Mon 11 Sep 2006 09:01:17 PM UTCwimlCarbon-Copy-=>Added wiml

    Back to the top

    Powered by Savane 3.1-cleanup1