News for hackers. Stuff that matters.
Re:The Derivative of a Number by pfortuny on Tuesday August 19, 2014 @02:45PM (#8199053)
No, it can be an operator on any kind of (usually) ring or more general algebraic structure. What you refer to is the "usual" derivative of functions of one variable, just one of many derivatives one can define.
Re:The Derivative of a Number by quotemstr on Tuesday August 19, 2014 @03:12PM (#8199189)
You can even take the derivative of a grammar to get a parser!

http://matt.might.net/papers/might2011derivatives.pdf

Re:The Derivative of a Number by kazinator on Tuesday August 19, 2014 @05:22PM (#8199902)
I implemented Brzozowski's regex derivatives to build a regex implementation back-end. That back-end is used whenever exotic constructs (negation, intersection) appear in the abstract syntax of the regex; in their absence, the implementation falls back on the NFA-graph-based back end.
Re:The Derivative of a Number by kazinator on Tuesday August 19, 2014 @05:19PM (#8199895)
Yes, this seems to build on the idea of regex derivatives. If regex derivatives can be used to transform a regular expression into a recognizer for strings, why not transform a more general grammar into a recognizer of strings.
Re:The Derivative of a Number by sp332 on Tuesday August 19, 2014 @02:53PM (#8199096)
Where would it be used? It seems like declaring that the derivative of every prime number = 1 is entirely arbitrary.
Re:The Derivative of a Number by wyager on Tuesday August 19, 2014 @02:58PM (#8199123)
Yes, it is completely arbitrary. However, this arbitrary definition follows certain rules and properties and can therefore be used for certain types of mathematical reasoning.

This is why, when we talk about rings and fields and such we say "multiplication-like" or "addition-like" operators. The operators defined for the algebraic structure may not be exactly like "standard" operators, but they still follow rules and you can still do cool things with them.

Re:The Derivative of a Number by pfortuny on Tuesday August 19, 2014 @04:56PM (#8199778)
Not entirely: it is the only way to do it coherently, but it is not so easy to explain.
Re:The Derivative of a Number by wyager on Tuesday August 19, 2014 @05:19PM (#8199894)
>it is the only way to do it coherently

There are many consistent ways to define the derivative of a number.

The way we are all familiar with is to define a number as a zeroth-order polynomial.