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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit, derivatives #10

Open
mattdesl opened this issue Jun 30, 2015 · 5 comments
Open

limit, derivatives #10

mattdesl opened this issue Jun 30, 2015 · 5 comments

Comments

@mattdesl
Copy link
Collaborator

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.

screen shot 2015-06-30 at 1 40 16 pm

@mattdesl
Copy link
Collaborator Author

Based on feedback; I think it might be good to split derivatives into two parts: theory (what it is now) + application (e.g. using Newton's method? Or something else entirely?). Right now, those already familiar with derivatives aren't getting much out of it.

@mattdesl mattdesl changed the title [for review] function, prime, limit, derivatives [for review] limit, derivatives Jul 1, 2015
@winkerVSbecks
Copy link

@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);
}

@mattdesl mattdesl changed the title [for review] limit, derivatives [flimit, derivatives Jul 3, 2015
@mattdesl mattdesl changed the title [flimit, derivatives limit, derivatives Jul 3, 2015
@wraybowling
Copy link

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.

@wraybowling
Copy link

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.

@kevinbarabash
Copy link

@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.

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