-
Notifications
You must be signed in to change notification settings - Fork 7
Add method for using PowerSeries to differentiate generic functions #5
Comments
Yes, this seems useful. I think I will just make polyder take a second argument for order. |
Sorry, I didn't read this carefully enough. This is for taking derivatives of arbitrary functions, not for taking higher order derivatives of series. I definitely think this is useful. I'm a little bit uneasy about overloading D this way, though. What if another package comes along and wants to implement a different algorithm for differentiating functions? |
Yes, that is the issue. Somewhere in base there needs to be functions like Perhaps there is a better name in the meantime, but D pops to mind first. On Thu, Feb 13, 2014 at 12:43 PM, Jason Merrill notifications@github.comwrote:
John Verzani |
Having a method in base would solve half the issue, but you'd still want a In any case, I want to think about this one a little more. On Thu, Feb 13, 2014 at 10:31 AM, john verzani notifications@github.comwrote:
|
I also suspect there will be performance problems with the implementation |
I was hoping you would have a better implementation :) This functionality is just a convenient way to get automatic On Thu, Feb 13, 2014 at 1:45 PM, Jason Merrill notifications@github.comwrote:
John Verzani |
See # PowerSeries comes with types defined for series up to order 7. By
default,# trying to construct a higher order series is a type
error.julia> series(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)ERROR: no method
series(Int64, Int64, Int64, Int64, Int64, Int64, Int64, Int64, Int64,
Int64)
# If you want to work with higher order series, you can generate types
up# to a given order with PowerSeries.generate(order)julia>
PowerSeries.generate(9)julia> series(0, 1, 2, 3, 4, 5, 6, 7, 8,
9)Series9{Int64}(0,1,2,3,4,5,6,7,8,9)
The library currently works by generating different types for each series Many of the algorithms here are cubic in the order of the series, so On Thu, Feb 13, 2014 at 10:51 AM, john verzani notifications@github.comwrote:
|
Oh yeah, I had read that at one time. Thanks for explaining. I don't really On Thu, Feb 13, 2014 at 2:12 PM, Jason Merrill notifications@github.comwrote:
John Verzani |
This isn't written as nicely as it could be, but wouldn't this kind of function be a useful alternative to
polyder
:The text was updated successfully, but these errors were encountered: