Applied mathematical modeling #2578
hurufu
started this conversation in
Show and tell
Replies: 2 comments
-
Such hypothetical system should be reasonably smart:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Similar idea to this one is already implemented https://github.com/JanWielemaker/GarpSim/blob/master/predator.pl, and way better then me. Very cool. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In natural sciences formulas are often quite complex and they are hard to describe using regular Prolog syntax (
is/2
) and even with CLP(ℤ) in many cases you have to juggle dozens of variables at a time. Post #2576 reminded me about my old forgotten project that I did as an assignment at the university. The idea was the following, instead of writing:And then trying not to get lost in a sea of different variables, what if that could be written as:
So all variables would've been implicit and then write code that will try to piece together complex formula and allocate all variables as needed. Here is a gist with a real world formula: https://gist.github.com/hurufu/5f6ba83290837fc410f8e0bf79a3b094.
All in all I somehow managed to pass that assignment by implementing it in Perl :), but I also have 3 different implementations in Prolog of that idea and they are all equally bad (not even fully working or extremely slow), so I don't wish to share any of them, but what do you think about notation per-se? Also I very like Iverson bracket, and it is very useful for that kind of notation too.
Beta Was this translation helpful? Give feedback.
All reactions