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

[is invalid?] cannot define function variables? #1443

Closed
zimmermann6 opened this issue Dec 9, 2007 · 2 comments
Closed

[is invalid?] cannot define function variables? #1443

zimmermann6 opened this issue Dec 9, 2007 · 2 comments

Comments

@zimmermann6
Copy link

It seems not possible to create a functional variable in SAGE. This gives strange things:

sage: var('f');
sage: f(x)
x

Ideally one should be able to do the following, to compute the formal derivative of f(g(x)):

sage: var('f,g');
sage: diff(f(g(x)), x)

(Currently this gives 1 due to the above strange simplification f(x) -> x.)

Component: calculus

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

@mwhansen
Copy link
Contributor

comment:1
sage: f = function('f')
sage: f(x)
f(x)
sage: g = function('g')
sage: f(g(x))
f(g(x))
sage: diff(f(g(x)),x)
diff(f(g(x)), x, 1)

@mwhansen mwhansen changed the title cannot define function variables? [is invalid?] cannot define function variables? Dec 10, 2007
@mwhansen mwhansen assigned mwhansen and unassigned williamstein Dec 10, 2007
@williamstein
Copy link
Contributor

comment:2

Use function, as mentioned above:

sage: function('f, g')
(f, g)
sage: diff(f(g(x)), x)
diff(f(g(x)), x, 1)

@sagetrac-mabshoff sagetrac-mabshoff mannequin removed this from the sage-2.9 milestone Dec 16, 2007
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