-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
limit, derivatives #10
Comments
Based on feedback; I think it might be good to split |
@mattdesl would it be a good idea to have 2 cases in the limit function (when represented in code): function f (x) {
return x === 1 ? 2 : (Math.pow(x, 2) - 1) / (x - 1);
} |
Hi. I just want to chime in that I'm going to review this branch. I'm right on the cusp of understanding what a derivative is, and I have no idea how to calculate one with code. I feel that my feedback would somehow be helpful... I've been studying calculus on khan academy for weeks now trying my best. |
I think it's doing an okay job of explaining the concepts up until the big honkin blob of math equations. It might also be nice if a solution was provided in code as to how one would write a function that finds a derivative.. or maybe a link to one if it's too verbose. |
@wraybowling the big blob of algebra describes a relatively simple concept. The derivative is the slope of a function at a particular point. Calculating what that may be for any particular function is where the challenge comes in. I'm not sure that math-as-code really makes sense for derivatives. If you want code to easily determine the derivatives of functions you might use dual numbers and something called automatic differentiation. Although this makes determining the derivative easy it relies on already knowing common derivatives which doesn't really help with understanding the concept. The limits used by math which can be used to compute a derivative don't really work well with code because code isn't a particular good too for algebraic manipulations. |
Branch:
https://github.com/Jam3/math-as-code/tree/feature/derivatives-integrals
Let me know if there's problems. Some of these are pretty challenging to explain in code / developer terms. 😕
Ideally I'd like to find a less "mathy" way of demonstrating this part, to make it a bit more code/newb-friendly. Basically the whole "derivatives" section could do with a clean up.
The text was updated successfully, but these errors were encountered: