python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
solving of equations by the Euler method in Prolog
I wrote this mini pseudo code that solves the equation using the Euler method:
// y'= x^2 - 5y
int n = 10; // count of steps
double h = 0.5; // step
double x = 0;
double y = 1;
...

np.
Votes: 0
Answers: 1
How to solve this exercise on Prolog?
I'm currently trying to this exercise, but I'm stuck.
My predicate is Something(Number_Line,List,Islands).
The response of this predicate is the structure islands[Numb_bridge, (Number_line,Column)].
C...

Isabel Comédias
Votes: 0
Answers: 1
Prolog: Initialize predicate variables connected with operators correctly
I created some predicate similar to that one in the (hopefully) minimal example I want to give you below. With that I wish to get the set Z in following logical way:
Given some universal set {peter, s...

Martin Kunze
Votes: 0
Answers: 1
Can't get all result of query in prolog
When I query remove_row([[r,r],[b,b]],A), it is supposed to get A of value [[e,e],[b,b]] and [[r,r],[e,e]], but I only get the fisrt value and the program get stuck
Jack
Votes: 0
Answers: 1