-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
automatically injected function does not work with desolve #15025
Comments
comment:1
It seems what gets injected and what gets returned is always an issue. On top level,
is redundant:
is not redundant because the methods on Looking at the side-effect free methods:
you see the design problem: The routine that constructs new symbolic functions creates entirely different objects depending on the arguments given. A
I understand how the shorthand The confusion is compounded by the top-level
You would get the same results from For the problem at hand in this ticket: The problem is that
but you'll quickly see why that's a senseless try. IN SHORT:
|
comment:5
A similar problem was just hit on this ask question. The bug is about wrong variable injection (the value injected into the Python variable does not correspond to the returned value, while it is claimed), not about
Besides fixing this bug, i have nothing against removing automatic variable injection from Sage (which seems to concern only As for the
I like the second one since it goes towards better consistency. But, as for removing the ugly |
comment:7
Thanks for the pointers ! |
comment:8
I think it's a duplicate of #17701 (ready for review). True? |
Reviewer: Dima Pasechnik |
comment:9
outdated, closing |
The following does not work:
altough
y
is automatically injected to the gobal namespace.This is because
y
is of the wrong type:It works with
f
:This is confusing, especially, since in the docstring of
function
under "Note" you can findTherefore, it is not absurd to assume that this automatically injected variable is the one I want to use, i.e. the one you would get by
y = function('y', x)
(similar to thevar
-command).(If this is behavior of
function
is (really) on purpose, then at least the error message ofdesolve
should be more clearifying and give a hint.)Component: symbolics
Keywords: desolve function
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/15025
The text was updated successfully, but these errors were encountered: