News for hackers. Stuff that matters.
Re:Calculus with Julia by eggy on Sunday May 12, 2019 @01:11AM (#19890272)
I loved working through Ken Iverson's, the creator of APL, books in J: "Calculus", "Algebra", and the "Concrete Math Companion" (a companion Knuth and Patashnik's book "Concrete Math" in J)[1].

I also like the Physics and Math in SICM (Structure and Interptretation of Classical Mechanics), and Scheme maps well to math equations, at least for me [2].

Julia does follow the way math is written, but I prefer Haskell. The book "The Haskell Road to Logic, Math and Programming" [3] is great, and this article on Geometric Algebra (GA) in Haskell is excellent [4].

[1] https://www.jsoftware.com/books/pdf/

[2] https://mitpress.mit.edu/sites/default/files/titles/content/...

[3] https://www.amazon.com/Haskell-Logic-Programming-Second-Comp...

[4] https://crypto.stanford.edu/~blynn/haskell/ga.html

Re:Calculus with Julia by xrd on Saturday May 11, 2019 @04:10PM (#19888124)
I would love to see the sections annotated with "approximately twenty minutesb to read" (like Medium does). In fact, if Google added this to every link, that would be amazing. I'm always excited to book mark things like this, and then when I visit my bookmarks tell myself "I'll read this when I have more focused time". Inside my head I'm assuming it'll be hours of work and I never find or make that time, and as such, never read those articles. This looks great and I bet I'll never make the time because of my mistaken assumptions.
Re:Calculus with Julia by Cybiote on Saturday May 11, 2019 @07:21PM (#19889013)
Firefox has that feature for every page that can be given a reader mode/view.
Re:Calculus with Julia by supermdguy on Saturday May 11, 2019 @07:39PM (#19889088)
I've been thinking of making a kind of bookmarks manager that automatically adds time information. Ideally it would also support things like podcasts or videos. Then, when you have x amount of extra time, you could see find something to do easily.
Re:Calculus with Julia by O_H_E on Sunday May 12, 2019 @07:57AM (#19891377)
That actually sounds great
Re:Calculus with Julia by applecrazy on Saturday May 11, 2019 @03:46PM (#19888027)
This is good, looks like something I might read this summer.

Small question though: are infinite series and Taylor polynomials not part of calculus? I don't see them here.

Re:Calculus with Julia by adamnemecek on Saturday May 11, 2019 @04:26PM (#19888193)
Re:Calculus with Julia by applecrazy on Saturday May 11, 2019 @04:39PM (#19888268)
Thanks! I guess I missed it.
Re:Calculus with Julia by m4x on Saturday May 11, 2019 @04:21PM (#19888163)
Strictly speaking they aren't a "part of calculus" - they aren't directly related to continuous rates of change - but that's a pretty arbitrary distinction and both are almost always taught as part of a calculus course.
Re:Calculus with Julia by syrrim on Saturday May 11, 2019 @10:35PM (#19889766)
Stewart defines calculus as the study of limits, which include infinite series.
Re:Calculus with Julia by throwawaymath on Sunday May 12, 2019 @10:48AM (#19892207)
In my opinion a more all-encompassing (if also more obtuse) definition would be: Calculus is the study of completeness.

I rather like this phrasing because basically everything you'll learn in calculus is a consequence of the completeness property of the reals.

Re:Calculus with Julia by _hl_ on Saturday May 11, 2019 @04:36PM (#19888248)
How would you define and reason about integration without infinite series? Genuinely curious if someone has tried to do that.
Re:Calculus with Julia by m4x on Saturday May 11, 2019 @05:19PM (#19888444)
For many people, integration is defined as "the area under the curve" and computed using sets of known rules. Infinite series are a tool we use to reason about calculus concepts more formally. It's a very arbitrary distinction; I was only making it because if you aren't studying calculus in depth you can avoid talking about Taylor polynomials and infinite series, but you can't really avoid talking about derivatives and integrals. If you want to define integrals formally, then you will definitely see infinite series.
Re:Calculus with Julia by traderjane on Sunday May 12, 2019 @02:28AM (#19890503)
Although there are a few ways to define the reals, one way is to define it as the limit of an infinite rational series.
Re:Calculus with Julia by sixbrx on Sunday May 12, 2019 @08:39AM (#19891524)
A good def for the R. integral is: the one number which is both a lower bound of the set of all upper sums (area with superscribed rectangles), and an upper bound of all lower sums (inscribed rects).

That has a lot of nice properties which are useful in proofs, whereas the limit of sums definition suffers from there being too many ways for "delta x goes to 0" which need to be shown to be equivalent at some point to be useful (nasty!).

Re:Calculus with Julia by applecrazy on Saturday May 11, 2019 @04:40PM (#19888272)
I'm pretty sure that's not possible, since the integral is defined as a limit of Riemann sum.
Re:Calculus with Julia by m4x on Saturday May 11, 2019 @05:28PM (#19888485)
There are actually a number of different ways to define integrals - see https://en.m.wikipedia.org/wiki/Integral#Formal_definitions
Re:Calculus with Julia by sixbrx on Sunday May 12, 2019 @09:18AM (#19891682)
It's usually not really defined as the limit of a series in analysis texts, but as the simultaneous greatest lower bound and least upper bound of upper and lower sums (inscribed and circumscribed rects area), respectively. THat def is a lot easier to deal with in proofs and just as intuitive to many.
Re:Calculus with Julia by eigenspace on Sunday May 12, 2019 @02:28PM (#19893569)
People interested in this should really check out TaloySeries.jl. It's a pretty awesome tool for playing around with a lot of calculus concepts in Julia.

https://github.com/JuliaDiff/TaylorSeries.jl

http://www.juliadiff.org/TaylorSeries.jl/stable/userguide/

Re:Calculus with Julia by nerdponx on Saturday May 11, 2019 @04:20PM (#19888157)
Why are they writing every program name in code formatting?
Re:Calculus with Julia by setr on Saturday May 11, 2019 @06:30PM (#19888769)
I do that pretty often as well, mostly because backticks looks better in plaintext than asterisks, and the text ends up looking more 'programmatic' than bold (italics/underlines are pathetic, and I rarely consider them as emphasis options).

It's also very rare for inline code to be useful (versus multiline), so the backtick is generally wasted in markdown anyways.

Re:Calculus with Julia by nerdponx on Sunday May 12, 2019 @10:23AM (#19892066)
But why use special formatting at all? Just capitalize the name.
Re:Calculus with Julia by mymythisisthis on Saturday May 11, 2019 @07:09PM (#19888955)
Is there a tutorial like this but based on Python or R?
Re:Calculus with Julia by outlace on Sunday May 12, 2019 @12:08AM (#19890082)
Julia's syntax is sufficiently similar to Python/R/Matlab that it should be pretty easy to read (but might have to look up a few things) even if you've never used Julia
Re:Calculus with Julia by adamnemecek on Sunday May 12, 2019 @01:36PM (#19893255)
I like julia better than either of the two. It also has insane interop with both of those so like any numpy and R functions are a line away.

https://github.com/JuliaPy/PyCall.jl

Re:Calculus with Julia by athroway on Monday May 13, 2019 @07:44PM (#19905229)
I remember trying out Julia for the first time. There weren't many libs but I found out about @pyimport and I was like "cool, let's try some stuff" and I found out that pretty much all I wrote was calls through Python bindings, so I thought "wait it's probably simpler to just use Python then", and left it at that.

Point is, I hope the ecosystem has gotten better last time I tried it ~3 years ago, and I also hope the interoperability didn't turn out to be "too good" for the ecosystem's own health.

Re:Calculus with Julia by adamnemecek on Monday May 13, 2019 @10:49PM (#19906382)
The ecosystem is pretty amazing.