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

add a function for the derivative of ceil and floor #9874

Open
burcin opened this issue Sep 8, 2010 · 7 comments
Open

add a function for the derivative of ceil and floor #9874

burcin opened this issue Sep 8, 2010 · 7 comments

Comments

@burcin
Copy link
Contributor

burcin commented Sep 8, 2010

We should define a new symbolic function for the derivative of ceil or floor.

In Maple:

> diff(floor(x),x);
                                  floor(1, x)
> diff(floor(x),x,x);
                                  floor(1, x)
> diff(ceil(x),x,x); 
                                  floor(1, x)
> eval(diff(ceil(x),x,x),x=1.5);
                                       0
> eval(diff(ceil(x),x,x),x=0);  
Error, (in floor) floor is not differentiable at integers

CC: @sagetrac-ktkohl @rwst @kcrisman @pelegm

Component: symbolics

Keywords: sd35.5

Author: Karen Kohl

Branch/Commit: u/ktkohl/add_a_function_for_the_derivative_of_ceil_and_floor @ 8013b9f

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

@burcin burcin added this to the sage-5.11 milestone Sep 8, 2010
@burcin burcin self-assigned this Sep 8, 2010
@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented Jan 12, 2012

Changed keywords from none to sd35.5

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented May 24, 2015

Author: ktkohl

@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented May 25, 2015

@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented May 25, 2015

comment:8

These give the right answer but also a runtime error:

sage: floor(x).derivative().subs(x=1.5)
Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in 'sage.structure.parent.good_as_coerce_domain' ignored
0
sage: ceil(x).derivative().subs(x=1.5)
Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in 'sage.structure.parent.good_as_coerce_domain' ignored
0

New commits:

8013b9fAdded ceiling and floor functions to allow 2nd argument for derivative.

@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented May 25, 2015

Commit: 8013b9f

@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented May 25, 2015

Changed author from ktkohl to Karen Kohl

@rwst
Copy link
Contributor

rwst commented May 26, 2015

comment:11

Just a quick note that there are empty examples and tests fields but you probably know that.

@rwst rwst modified the milestones: sage-6.4, sage-6.8 May 26, 2015
@mkoeppe mkoeppe removed this from the sage-6.8 milestone Dec 29, 2022
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

4 participants