News for hackers. Stuff that matters.
Re:Integral Calculator by blobcode on Sunday April 14, 2024 @11:26PM (#40036801)
I think the really neat piece of software behind this is maxima (https://maxima.sourceforge.io/), a rather influential computer algebra system of ancient lineage still in use today in more places than you might think.
Re:Integral Calculator by kristopolous on Monday April 15, 2024 @12:16AM (#40037031)
Apparently that lineage goes back to 1968 https://en.m.wikipedia.org/wiki/Macsyma

I wonder what those early versions were like. It's on lisp so it's feasibly still runnable without too much fussing around

Re:Integral Calculator by anthk on Monday April 15, 2024 @07:57AM (#40039328)
Compile ITS and just run :macsyma at the DDT prompt (shell/debugger) from ITS:

https://github.com/pdp-10/its

The syntax it's the same, I even made a plot and 'printed' into the host from an ARDS output from the plot command, by converting the file into PPM->PNG or PPM->PDF.

This is a plot from Macsyma converted into PDF:

http://0x0.st/X-67.pdf

Re:Integral Calculator by kristopolous on Monday April 15, 2024 @12:25PM (#40042623)
that y2k bug is delightful
Re:Integral Calculator by anthk on Monday April 15, 2024 @12:38PM (#40042801)
And it has been fixed =)

    :date
      MONDAY, APRIL 15, 2024  07:37:33 PM
Re:Integral Calculator by lupire on Monday April 15, 2024 @01:24AM (#40037311)
The custom solver is really neat too

> In order to show the steps, the calculator applies the same integration techniques that a human would apply. The program that does this has been developed over several years and is written in Maxima's own programming language. It consists of more than 17000 lines of code. When the integrand matches a known form, it applies fixed rules to solve the integral (e. g. partial fraction decomposition for rational functions, trigonometric substitution for integrands involving the square roots of a quadratic polynomial or integration by parts for products of certain functions). Otherwise, it tries different substitutions and transformations until either the integral is solved, time runs out or there is nothing left to try. The calculator lacks the mathematical intuition that is very useful for finding an antiderivative, but on the other hand it can try a large number of possibilities within a short amount of time. The step by step antiderivatives are often much shorter and more elegant than those found by Maxima.

Re:Integral Calculator by nsajko on Monday April 15, 2024 @06:42AM (#40038768)
This is known as rule-based integration. Here's a powerful system of such rules: https://rulebasedintegration.org/integrationRules.html
Re:Integral Calculator by wiz21c on Monday April 15, 2024 @07:39AM (#40039190)
Does one know if mathematica uses that too ? I rememebr an HN post where one could see that sympy, maxima and the likes where way behind for a lot of more peculiar integrals..

ah the comparison is here : https://www.12000.org/my_notes/CAS_integration_tests/index.h...

(and posted by other on this very thread...)

Re:Integral Calculator by pkaye on Monday April 15, 2024 @02:07PM (#40043782)
There is a go implementation of a CAS which syntax similar to Mathematica which uses this rules based integration library.

https://github.com/corywalker/expreduce

Re:Integral Calculator by cjk2 on Monday April 15, 2024 @02:54AM (#40037693)
I still use this daily. It's ugly and cranky but it works and it's the right price.
Re:Integral Calculator by enriquto on Monday April 15, 2024 @04:26AM (#40038085)
Ugly and cranky is quite subjective... As much as I like Mathematica the language, the user interfaces that they propose are so wonky and ugly (in my eyes) that Maxima feels like a breath of fresh air and elegance.
Re:Integral Calculator by cjk2 on Monday April 15, 2024 @06:32AM (#40038696)
I don't disagree there.
Re:Integral Calculator by constantcrying on Monday April 15, 2024 @05:15AM (#40038308)
Maxima ist absolutely great. It can be somewhat confusing, but it is actually quite advanced.

Calculating integrals is extremely hard (unlike calculating derivatives, which is very easy to do) and maxima comes with some of the more advanced and comprehensive strategies to solve integrals.

Re:Integral Calculator by nsajko on Monday April 15, 2024 @06:36AM (#40038725)
It's integration functionalities are less advanced and comprehensive than those of Fricas. Interestingly, the latter is, like Maxima, implemented using Lisp and stems from an ancient software lineage. Both systems are free and open-source.

Fricas home page: http://fricas.github.io

Fricas Archlinux package page: https://archlinux.org/packages/extra/x86_64/fricas/

Some independent integration benchmarks, comparing multiple computer algebra systems: https://www.12000.org/my_notes/CAS_integration_tests/index.h...

Re:Integral Calculator by anthk on Monday April 15, 2024 @07:58AM (#40039346)
Both Fricas and Maxima use Common Lisp, most people will just use SBCL for both.

But, the magic of Lisp is that you might call Common Lisp functions from one suite into another and viceversa without too much trouble.

Re:Integral Calculator by constantcrying on Monday April 15, 2024 @07:16AM (#40039014)
Fascinating, thank you!
Re:Integral Calculator by iillexial on Monday April 15, 2024 @07:12AM (#40038989)
I use it in the university and I hate it. The interface is ugly and very unintuitive, as well as the language.
Re:Integral Calculator by anthk on Monday April 15, 2024 @07:59AM (#40039359)
Interface? You can use wxmaxima, maxima.el from Emacs (and with Gnuplot/LaTex support to render inline equations), or KDE's Cantor too.
Re:Integral Calculator by mochito_bottle on Monday April 15, 2024 @01:17AM (#40037284)
I love this site. Without it I wouldn't be able to self learn calc 2
Re:Integral Calculator by beckthompson on Monday April 15, 2024 @01:24AM (#40037315)
Right? Its such a useful site that is regularly updated and just made by some guy (David Scherfgen) and not a big company trying to make money (E.g symbolab).
Re:Integral Calculator by fragebogen on Monday April 15, 2024 @05:02AM (#40038252)
Shout out to another project by the same creator: https://www.derivative-calculator.net/ Both of these helped me through my undergrad physics degree, especially because of the step-by-step solutions. Without it I wouldn't have learned nearly as much about calculus.
Re:Integral Calculator by CamperBob2 on Monday April 15, 2024 @10:19AM (#40040854)
I really like the interactive function graph. Feels lightweight and snappy compared to the usual framework-driven solutions. I wish the author had gone into a bit more detail on how that works.
Re:Integral Calculator by abhinavstarts on Monday April 15, 2024 @11:32AM (#40041922)
Wow. Thanks for sharing
Re:Integral Calculator by ekiauhce on Monday April 15, 2024 @01:09PM (#40043129)
Integrating is a part of wolfram alpha, e.g https://www.wolframalpha.com/input?i=integrate+%28sin%28sqrt...