News for hackers. Stuff that matters.
Re:A Little Calculus by auggierose on Friday May 05, 2023 @01:27AM (#35825517)
> So what is it intended to mean? The intent, clearly, is to represent the function that squares its input, just as 2x is meant to be the function that doubles its input. We have nicer ways of writing those:

> fun square(x :: Number) -> Number: x * x end

> fun double(x :: Number) -> Number: 2 * x end

No, that is not a nicer way of writing those. It certainly helps for understanding, but once you understood properly what is going on, writing `fun double(x :: Number) -> Number: 2 * x end` instead of `2x` is just not economical.

Re:A Little Calculus by tromp on Friday May 05, 2023 @04:00AM (#35826521)
d/dx F = F' is indeed a concise way to denote that d (\x.F) = (\x.F), where \x.F is the lambda calculus notation of a function that takes x to F.

The /dx part indicates that the following expression should be considered functions of x.

The equation can also be rewritten as d F = F' dx, reflecting that the change in function value is proportional to both the derivate and change in x.

Re:A Little Calculus by regularfry on Friday May 05, 2023 @06:53AM (#35827606)
I read it as (mostly) a joke. It's not nicer because it's objectively better in all cases, it's nicer because it's pyret.
Re:A Little Calculus by auggierose on Sunday May 07, 2023 @06:24AM (#35849959)
I haven't considered that it might be a joke...