chunk_id
large_stringlengths
9
11
question_id
large_stringlengths
6
8
language
large_stringclasses
1 value
chunk_index
int64
0
4
chunk_text
large_stringlengths
115
2.62k
sparse_text
large_stringlengths
111
4.37k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
9
217
sparse_values
listlengths
9
217
export_source
large_stringclasses
1 value
76552521_c0
76552521
prolog
0
Title: Iterate through two lists at same index Problem title: Iterate through two lists at same index Tags: list, prolog Problem: Iterate through two lists at same index How can you iterate through two lists with the same index, so that you get a pair of each list: ?- X = [1, 2, 3], Y = [a, b, c], ... ElemX = 1, ElemY ...
Iterate through two lists at same index Iterate through two lists at same index list prolog Iterate ElemX ElemY Iterate through two lists at same index How can you iterate through two lists with the same index, so that you get a pair of each list:
[ 0.01904296875, -0.00164794921875, 0.00185394287109375, 0.002777099609375, -0.02099609375, 0.035888671875, 0.00139617919921875, -0.0091552734375, 0.01495361328125, -0.03759765625, 0.0184326171875, -0.0068359375, -0.01373291015625, -0.00201416015625, -0.010498046875, -0.004364013671875, ...
[ 87, 8560, 67, 8305, 6626, 5303, 99, 5701, 63262, 502, 4867, 540, 195, 1542, 1723, 7, 831, 17, 678, 2046, 10, 80836, 111, 12638 ]
[ 0.04974365234375, 0.281494140625, 0.1484375, 0.1846923828125, 0.198974609375, 0.2449951171875, 0.060272216796875, 0.1644287109375, 0.2427978515625, 0.08636474609375, 0.12445068359375, 0.03692626953125, 0.1246337890625, 0.1412353515625, 0.1434326171875, 0.00417327880859375, 0.06256103...
embed
19175322_c0
19175322
prolog
0
Title: Split words with a capital letter Problem title: Split words with a capital letter Tags: prolog Problem: Split words with a capital letter I have this problem with extraction of text from a page. Sometimes i have this words: EatAppleGood but i want Eat Apple Good I obtained the three words together. How can i sp...
Split words with a capital letter Split words with a capital letter prolog Split EatAppleGood Eat Apple Good Split words with a capital letter I have this problem with extraction of text from a page. Sometimes i have this words: but i want I obtained the three words together. How can i split the words with capital lett...
[ -0.00897216796875, -0.0120849609375, -0.017333984375, 0.00445556640625, -0.0048828125, 0.0213623046875, 0.015869140625, 0.02587890625, 0.01226806640625, -0.0172119140625, -0.005218505859375, -0.0098876953125, -0.0279541015625, 0.01312255859375, 0.0274658203125, 0.0234375, 0.016479492...
[ 46474, 34153, 678, 10, 10323, 31330, 502, 4867, 241, 257, 75339, 144890, 4129, 18621, 765, 903, 2967, 4173, 10763, 7986, 9191, 160193, 1284, 3444, 113054, 297, 70, 17262, 25842, 11249, 831, 17, 65450 ]
[ 0.239990234375, 0.208251953125, 0.0975341796875, 0.028564453125, 0.205078125, 0.187255859375, 0.1109619140625, 0.169677734375, 0.11309814453125, 0.0927734375, 0.1304931640625, 0.1153564453125, 0.1666259765625, 0.1600341796875, 0.004180908203125, 0.04364013671875, 0.10955810546875, ...
embed
75659221_c3
75659221
prolog
3
_letran, la_viga, escuadron_201, cerro_de_la_estrella, constitucion_de_1917, lazaro_cardenas, ciudad_deportiva, agricola_oriental, canal_de_san_juan, pegnon_viejo, santa_marta, los_reyes, la_paz, ciudad_azteca, plaza_aragon, rio_de_los_remedios, villa_de_aragon, bosque_de_aragon, deportivo_oceania, romero_rubio, r_flor...
_letran, la_viga, escuadron_201, cerro_de_la_estrella, constitucion_de_1917, lazaro_cardenas, ciudad_deportiva, agricola_oriental, canal_de_san_juan, pegnon_viejo, santa_marta, los_reyes, la_paz, ciudad_azteca, plaza_aragon, rio_de_los_remedios, villa_de_aragon, bosque_de_aragon, deportivo_oceania, romero_rubio, r_flor...
[ 0.0004291534423828125, -0.0194091796875, -0.00994873046875, 0.0106201171875, 0.037353515625, -0.0201416015625, -0.007720947265625, -0.00030517578125, -0.005584716796875, 0.0004253387451171875, 0.0024566650390625, 0.0177001953125, -0.0003376007080078125, -0.018310546875, 0.002182006835937...
[ 101, 1974, 1603, 4, 21, 686, 208, 61461, 11, 65025, 454, 123885, 6641, 516, 112, 143, 525, 54862, 11764, 6447, 2947, 2489, 58100, 38931, 33, 162, 21089, 4680, 4501, 127695, 49133, 289, 26944, 1462, 461, 66, 280, 11137, 19, 15959, 86818,...
[ 0.064208984375, 0.1507568359375, 0.237548828125, 0.1016845703125, 0.116455078125, 0.1885986328125, 0.1646728515625, 0.061248779296875, 0.044769287109375, 0.1591796875, 0.020172119140625, 0.2108154296875, 0.0963134765625, 0.1142578125, 0.139404296875, 0.0601806640625, 0.02125549316406...
embed
7733788_c0
7733788
prolog
0
Title: Adding integers in list Problem title: Adding integers in list Tags: prolog Problem: Adding integers in list For some reason, this is not working. I am getting: ERROR: is/2: Arguments are not sufficiently instantiated 1 add_list([]). 2 add_list([H|T]):- 3 Sum2 is Sum1 + H, 4 add_list(T). I am trying to add the c...
Adding integers in list Adding integers in list prolog Adding add_list Sum2 Sum1 Adding integers in list For some reason, this is not working. I am getting: ERROR: is/2: Arguments are not sufficiently instantiated I am trying to add the contents of a list (containing only numbers).
[ -0.0048828125, 0.0018310546875, -0.0011138916015625, 0.0172119140625, -0.028076171875, 0.0234375, -0.01300048828125, 0.0022430419921875, -0.005126953125, -0.0286865234375, 0.00921630859375, -0.0233154296875, -0.00201416015625, 0.025390625, 0.02001953125, -0.01434326171875, 0.02185058...
[ 62, 59725, 892, 26255, 23, 5303, 502, 4867, 15190, 6562, 36335, 304, 418, 31635, 903, 959, 20697, 151206, 24638, 83, 12477, 12, 112140, 6, 129980, 34648, 14, 27686, 31577, 10941, 98102, 4734, 101935 ]
[ 0.1009521484375, 0.11053466796875, 0.1654052734375, 0.1331787109375, 0.09027099609375, 0.2335205078125, 0.1270751953125, 0.16845703125, 0.1768798828125, 0.2344970703125, 0.2042236328125, 0.146240234375, 0.0693359375, 0.0158538818359375, 0.0228118896484375, 0.107177734375, 0.124572753...
embed
8669947_c0
8669947
prolog
0
Title: Prolog Functor - Computing x^y Problem title: Prolog Functor - Computing x^y Tags: exponentiation, prolog, iso-prolog Problem: Prolog Functor - Computing x^y I am new to prolog and trying out to learn how to program. I want to know how to compute x^y in Prolog both being integers. I know for a fact that it goes ...
Prolog Functor - Computing x^y Prolog Functor - Computing x^y exponentiation prolog iso-prolog Prolog Functor Computing Prolog Functor - Computing x^y I am new to prolog and trying out to learn how to program. I want to know how to compute x^y in Prolog both being integers. I know for a fact that it goes something like...
[ 0.0252685546875, -0.006439208984375, -0.000469207763671875, 0.0272216796875, -0.000926971435546875, 0.0103759765625, 0.004913330078125, 0.0020599365234375, 0.0194091796875, -0.0213623046875, -0.00347900390625, 0.0084228515625, -0.0203857421875, -0.0089111328125, 0.004241943359375, -0.0...
[ 1250, 4867, 28670, 18770, 159415, 214, 1022, 8353, 53, 78643, 21616, 2320, 502, 13882, 3454, 3525, 31577, 30698, 1528, 3444, 3714, 3642, 47, 9969, 6743, 23, 15044, 8035, 892, 26255, 15824, 60899, 9844, 1884, 903 ]
[ 0.1812744140625, 0.2705078125, 0.1573486328125, 0.16796875, 0.157958984375, 0.04248046875, 0.1474609375, 0.15673828125, 0.214111328125, 0.13427734375, 0.0810546875, 0.022064208984375, 0.1392822265625, 0.1085205078125, 0.134033203125, 0.06903076171875, 0.0150146484375, 0.00875854492...
embed
4280611_c0
4280611
prolog
0
Title: Android and Prolog Problem title: Android and Prolog Tags: prolog, android Problem: Android and Prolog I have built an expert system in Prolog . Is there a way I can incorporate the Prolog code into my Android application so that the application takes arguments passes them to the Prolog expert system, and the ex...
Android and Prolog Android and Prolog prolog android Android Prolog Android and Prolog I have built an expert system in Prolog . Is there a way I can incorporate the Prolog code into my Android application so that the application takes arguments passes them to the Prolog expert system, and the expert system returns the...
[ 0.039794921875, 0.0169677734375, -0.0036163330078125, 0.0086669921875, -0.01055908203125, 0.0296630859375, -0.0048828125, 0.003509521484375, 0.001495361328125, -0.05224609375, 0.005218505859375, -0.0146484375, -0.015625, 0.0179443359375, 0.017578125, -0.00982666015625, 0.011901855468...
[ 3952, 136, 1250, 4867, 502, 54527, 88303, 26808, 5426, 3917, 831, 49504, 67, 70, 18151, 3934, 38415, 51776, 10750, 10922, 30646, 35166 ]
[ 0.19873046875, 0.103759765625, 0.1785888671875, 0.285400390625, 0.123779296875, 0.126708984375, 0.0765380859375, 0.1697998046875, 0.140869140625, 0.06109619140625, 0.0150146484375, 0.1287841796875, 0.04638671875, 0.037841796875, 0.2003173828125, 0.076171875, 0.146728515625, 0.05053...
embed
40840662_c0
40840662
prolog
0
Title: Comparing a variable and a predicate in Prolog Problem title: Comparing a variable and a predicate in Prolog Tags: prolog Problem: Comparing a variable and a predicate in Prolog I want to check if a variable, say X, is a predicate of the form add( ). How do I check if this is true? X == add( ) does not work, nei...
Comparing a variable and a predicate in Prolog Comparing a variable and a predicate in Prolog prolog Comparing Prolog Comparing a variable and a predicate in Prolog I want to check if a variable, say X, is a predicate of the form add( ). How do I check if this is true? X == add( ) does not work, neither does X is add(_...
[ -0.007049560546875, 0.0029296875, -0.006683349609375, 0.00408935546875, -0.002349853515625, 0.03515625, 0.014404296875, -0.01025390625, -0.00933837890625, -0.03173828125, 0.021240234375, 0.005645751953125, -0.00872802734375, -0.00836181640625, 0.0098876953125, -0.00762939453125, -0.0...
[ 113307, 214, 77336, 136, 1653, 2063, 67, 1250, 4867, 502, 23, 3444, 12765, 2174, 1193, 83, 10, 111, 3173, 15190, 132, 29568, 69112, 959, 4488, 454, 69307, 225490 ]
[ 0.182373046875, 0.033203125, 0.2452392578125, 0.018463134765625, 0.187255859375, 0.2371826171875, 0.1280517578125, 0.1326904296875, 0.225341796875, 0.0792236328125, 0.009246826171875, 0.0258331298828125, 0.1700439453125, 0.05450439453125, 0.107666015625, 0.04119873046875, 0.014862060...
embed
22276101_c1
22276101
prolog
1
to recursion(_,[],[],_,[]). I get: 98 ?- recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, X). T Call: (6) recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, _G1632) T Redo: (6) recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, _G1632) T Fail: (6) recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, _G1632) false. Any ideas? Code sig...
to recursion(_,[],[],_,[]). I get: 98 ?- recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, X). T Call: (6) recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, _G1632) T Redo: (6) recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, _G1632) T Fail: (6) recursion([1, 2], [1, 2], [[1, 1], [2, 2]], 0, _G1632) false. Any ideas? Code sig...
[ -0.01153564453125, 0.0223388671875, 0.0185546875, 0.0145263671875, 0.00506591796875, 0.00994873046875, -0.0037994384765625, -0.0172119140625, 0.0002307891845703125, 0.01470947265625, 0.01611328125, -0.003204345703125, -0.007720947265625, 0.0052490234375, 0.006591796875, -0.013916015625...
[ 47, 195625, 1830, 132, 454, 1065, 194, 87, 2046, 12, 16193, 705, 9, 418, 116, 68252, 106, 304, 4, 757, 1193, 384, 26265, 6791, 2485, 91887, 6096, 31, 190355, 98320, 25647, 28864, 26073, 7, 165428, 42, 6889, 13794, 1218, 379, 7870, 765...
[ 0.1385498046875, 0.284912109375, 0.2010498046875, 0.04150390625, 0.0677490234375, 0.0277557373046875, 0.0231781005859375, 0.053863525390625, 0.1275634765625, 0.0279388427734375, 0.306396484375, 0.1519775390625, 0.09014892578125, 0.058563232421875, 0.137451171875, 0.02508544921875, 0....
embed
26227483_c0
26227483
prolog
0
Title: Negative Predicate in Prolog Problem title: Negative Predicate in Prolog Tags: prolog Problem: Negative Predicate in Prolog I want to make a negative base case, that is, the rule should not work if the argument is an empty list. \+fun([]). One option is to put a "L =/ []" in every rule I write for fun(L), but ha...
Negative Predicate in Prolog Negative Predicate in Prolog prolog Negative Predicate Prolog Negative Predicate in Prolog I want to make a negative base case, that is, the rule should not work if the argument is an empty list. \+fun([]). One option is to put a "L =/ []" in every rule I write for fun(L), but having a sing...
[ -0.007049560546875, -0.00567626953125, -0.01495361328125, -0.00927734375, -0.0184326171875, 0.005218505859375, -0.004547119140625, -0.019287109375, -0.0003757476806640625, -0.0235595703125, -0.0026702880859375, -0.005767822265625, -0.005096435546875, -0.002685546875, 0.004974365234375, ...
[ 221717, 13, 7145, 2063, 67, 1250, 4867, 23, 502, 3444, 3249, 40907, 3647, 7225, 79986, 5608, 959, 4488, 2174, 10750, 83, 201505, 5303, 41872, 1328, 16498, 35829, 866, 2203, 64, 11907, 33022, 100, 7477, 11001, 1653, 10443 ]
[ 0.2354736328125, 0.05224609375, 0.1910400390625, 0.194580078125, 0.0770263671875, 0.16064453125, 0.2252197265625, 0.009490966796875, 0.1156005859375, 0.059295654296875, 0.0155792236328125, 0.236572265625, 0.1800537109375, 0.1617431640625, 0.1661376953125, 0.0106201171875, 0.080505371...
embed
21308115_c1
21308115
prolog
1
or [V,U,f(V),f(U)]. [The solution is implementation dependent.] So there are two possible ways how sort/2 will work, and one cannot even rely on the success of: sort([f(U),U,U,f(V),f(U),V],L), sort(L, K), L == K. As an example: ?- avs_term_rearranged(['A'=A,'B'=B,'C'=C], A+C+F+B, AVsR). AVsR = ['A'=A,'C'=C,'B'=B]. Cod...
or [V,U,f(V),f(U)]. [The solution is implementation dependent.] So there are two possible ways how sort/2 will work, and one cannot even rely on the success of: sort([f(U),U,U,f(V),f(U),V],L), sort(L, K), L == K. As an example: ?- avs_term_rearranged(['A'=A,'B'=B,'C'=C], A+C+F+B, AVsR). AVsR = ['A'=A,'C'=C,'B'=B]. Cod...
[ 0.005889892578125, 0.021240234375, 0.0079345703125, -0.00531005859375, -0.01483154296875, -0.00909423828125, 0.0021514892578125, 0.008056640625, 0.0027923583984375, 0.0142822265625, 0.02587890625, 0.035400390625, -0.0079345703125, 0.01019287109375, 0.008544921875, -0.0185546875, -0.0...
[ 707, 856, 1062, 420, 29806, 208124, 108750, 6626, 7722, 48322, 3642, 12096, 12477, 1221, 4488, 1632, 53418, 456, 538, 36272, 132, 866, 341, 339, 69112, 1301, 27781, 705, 185, 7, 32166, 107, 147, 5445, 297, 284, 571, 441, 62, 1328, 919, ...
[ 0.0372314453125, 0.1768798828125, 0.108154296875, 0.10333251953125, 0.14453125, 0.12353515625, 0.08953857421875, 0.0950927734375, 0.1021728515625, 0.07989501953125, 0.05523681640625, 0.270751953125, 0.30419921875, 0.056854248046875, 0.1484375, 0.0176239013671875, 0.095458984375, 0....
embed
70208035_c0
70208035
prolog
0
Title: prolog: X > Y breaks the cycle Problem title: prolog: X > Y breaks the cycle Tags: prolog Problem: prolog: X > Y breaks the cycle I'm trying to implement something like a while loop in prolog but when the X > Y is false it breaks and does nothing else. Example: loop(X, Y):- X > Y, Y1 is Y +1, loop(X,Y1), w...
prolog: X > Y breaks the cycle prolog: X > Y breaks the cycle prolog prolog: X > Y breaks the cycle I'm trying to implement something like a while loop in prolog but when the X > Y is false it breaks and does nothing else. Example: Is there any way of making it work wihout changing the loop and the write?
[ 0.0186767578125, -0.002349853515625, -0.005401611328125, 0.01513671875, 0.00445556640625, 0.012451171875, 0.002288818359375, 0.0106201171875, 0.00640869140625, -0.013427734375, 0.0118408203125, 0.01458740234375, -0.03662109375, 0.007232666015625, 0.036376953125, 0.012451171875, -0.00...
[ 502, 4867, 1193, 619, 5386, 74, 990, 36356, 7, 105823, 12, 977, 31577, 29479, 12960, 40956, 23, 3229, 83, 98320, 14602, 33720, 37076, 89536, 3917, 4488, 151134, 33022 ]
[ 0.1837158203125, 0.250732421875, 0.122802734375, 0.09814453125, 0.1746826171875, 0.026702880859375, 0.1739501953125, 0.185546875, 0.0545654296875, 0.2042236328125, 0.014892578125, 0.12158203125, 0.03570556640625, 0.115234375, 0.150390625, 0.17578125, 0.004608154296875, 0.0165557861...
embed
38534031_c0
38534031
prolog
0
Title: running make on a http_deamon swi prolog Problem title: running make on a http_deamon swi prolog Tags: prolog, swi-prolog Problem: running make on a http_deamon swi prolog If I run a website using a http_deamon on a server is it possible to ssh into the server then open the prolog interface, run some queries, no...
running make on a http_deamon swi prolog running make on a http_deamon swi prolog prolog swi-prolog http_deamon running make on a http_deamon swi prolog If I run a website using a http_deamon on a server is it possible to ssh into the server then open the prolog interface, run some queries, notably make and close the i...
[ 0.0223388671875, 0.0262451171875, 0.0074462890625, -0.00164031982421875, -0.0087890625, -0.0032806396484375, -0.01519775390625, 0.01422119140625, -0.016845703125, -0.0703125, -0.00543212890625, -0.0010528564453125, 0.004150390625, 0.00109100341796875, 0.031494140625, -0.006866455078125...
[ 51042, 3249, 98, 1621, 112, 80361, 91, 2452, 502, 4867, 3454, 11675, 4165, 17368, 10, 454, 10723, 83, 442, 7722, 1495, 3934, 9803, 101758, 41, 136, 20903, 7464 ]
[ 0.1466064453125, 0.18408203125, 0.08642578125, 0.1634521484375, 0.156005859375, 0.2276611328125, 0.047393798828125, 0.16162109375, 0.1607666015625, 0.2423095703125, 0.15234375, 0.12890625, 0.136962890625, 0.04150390625, 0.005279541015625, 0.02972412109375, 0.1385498046875, 0.003814...
embed
23283121_c0
23283121
prolog
0
Title: What is wrong in this Prolog clause? Problem title: What is wrong in this Prolog clause? Tags: prolog Problem: What is wrong in this Prolog clause? I need to write clauses in prolog that express the following sentence "Everyone is mortal but john" here are my clauses: not(mortal(john)). mortal(_). but when I que...
What is wrong in this Prolog clause? What is wrong in this Prolog clause? prolog What Prolog What is wrong in this Prolog clause? I need to write clauses in prolog that express the following sentence here are my clauses: but when I query ?- mortal(john). it returns true instead false. What is wrong?
[ 0.0137939453125, 0.010986328125, 0.0027008056640625, 0.00714111328125, -0.0264892578125, 0.025146484375, -0.0069580078125, 0.0115966796875, -0.00020694732666015625, -0.0011444091796875, -0.00726318359375, -0.01287841796875, -0.01483154296875, 0.00604248046875, 0.0233154296875, 0.021728...
[ 4865, 83, 44691, 23, 903, 1250, 4867, 70731, 13, 502, 3871, 33022, 90, 36510, 149357, 3688, 1284, 3229, 41, 1294, 705, 67573, 132, 66159, 19, 30646, 29568, 64457, 98320 ]
[ 0.057861328125, 0.0845947265625, 0.205078125, 0.0789794921875, 0.1094970703125, 0.1661376953125, 0.2410888671875, 0.1776123046875, 0.10467529296875, 0.11181640625, 0.019989013671875, 0.013824462890625, 0.05615234375, 0.041748046875, 0.0462646484375, 0.026519775390625, 0.0159759521484...
embed
25709343_c2
25709343
prolog
2
the beginning (the lines) it returns false. the full code Or in another way Code signals: How, List, BiggerList, X11, X12, X13, X14, X15, X16, X17, X18, X19, X21, X22, X23, X24, X25, X26, X27, X28, X29, X31, X32, X33, X34, X35, X36, X37, X38, X39, X41, X42, X43, X44, X45, X46, X47, X48, X49, X51, X52, X53, X54, X55, X...
the beginning (the lines) it returns false. the full code Or in another way Code signals: How, List, BiggerList, X11, X12, X13, X14, X15, X16, X17, X18, X19, X21, X22, X23, X24, X25, X26, X27, X28, X29, X31, X32, X33, X34, X35, X36, X37, X38, X39, X41, X42, X43, X44, X45, X46, X47, X48, X49, X51, X52, X53, X54, X55, X...
[ -0.017822265625, 0.006683349609375, -0.0022430419921875, 0.018310546875, -0.01806640625, 0.00112152099609375, 0.033935546875, 0.0027313232421875, 0.0172119140625, 0.0341796875, -0.0022735595703125, 0.0031890869140625, 0.01202392578125, -0.0022430419921875, -0.0174560546875, 0.008666992...
[ 70, 86595, 2347, 124519, 442, 30646, 7, 98320, 4393, 18151, 3347, 15700, 3917, 28864, 26073, 12, 11249, 4, 32036, 175737, 56, 154663, 1193, 1662, 1530, 2681, 2592, 1837, 2485, 2489, 1819, 2947, 3117, 4015, 3742, 2357, 2588, 4046, 3768, 38...
[ 0.0504150390625, 0.1937255859375, 0.0748291015625, 0.208740234375, 0.05950927734375, 0.174560546875, 0.0906982421875, 0.256591796875, 0.141845703125, 0.241943359375, 0.02972412109375, 0.03509521484375, 0.037841796875, 0.2734375, 0.27197265625, 0.0242462158203125, 0.2149658203125, 0...
embed
23143843_c0
23143843
prolog
0
Title: Learning recursion in Prolog Problem title: Learning recursion in Prolog Tags: declarative-programming, prolog, recursion Problem: Learning recursion in Prolog I have a basic understanding of how recursion works in Prolog. I am finding it difficult to think in declarative paradigm. Could you suggest some learnin...
Learning recursion in Prolog Learning recursion in Prolog declarative-programming prolog recursion Learning Prolog Learning recursion in Prolog I have a basic understanding of how recursion works in Prolog. I am finding it difficult to think in declarative paradigm. Could you suggest some learning resources(with solved...
[ 0.0108642578125, 0.0174560546875, 0.0106201171875, 0.01214599609375, -0.00116729736328125, 0.027587890625, -0.0002574920654296875, -0.010498046875, 0, -0.03466796875, 0.02294921875, -0.04150390625, -0.0194091796875, 0.006683349609375, 0.017578125, 0.0030364990234375, 0.00604248046875...
[ 114344, 195625, 1830, 23, 1250, 4867, 21635, 4935, 28966, 502, 62822, 100094, 43240, 90791, 34844, 5351, 214709, 42459, 52080, 65514, 86869, 27781, 32562, 5844, 1653, 2063, 1636 ]
[ 0.151611328125, 0.2420654296875, 0.1329345703125, 0.0394287109375, 0.1668701171875, 0.243896484375, 0.1519775390625, 0.046356201171875, 0.06890869140625, 0.0926513671875, 0.02301025390625, 0.040924072265625, 0.10418701171875, 0.03466796875, 0.0826416015625, 0.1009521484375, 0.1551513...
embed
33197848_c0
33197848
prolog
0
Title: Get decimal number from float in Prolog Problem title: Get decimal number from float in Prolog Tags: prolog Problem: Get decimal number from float in Prolog I need to convert float representation of time (02.35) to minutes. So I get 02 by floor function (floor(02.35) = 2.) and multiply that by 60. How can I get ...
Get decimal number from float in Prolog Get decimal number from float in Prolog prolog float Get Prolog Get decimal number from float in Prolog I need to convert float representation of time (02.35) to minutes. So I get 02 by floor function (floor(02.35) = 2.) and multiply that by 60. How can I get the the decimal numb...
[ 0.0162353515625, 0.007354736328125, 0.0086669921875, 0.0040283203125, 0.002410888671875, -0.003570556640625, -0.000865936279296875, 0.0025787353515625, -0.0084228515625, -0.0157470703125, -0.0096435546875, 0.00830078125, -0.036865234375, 0.0289306640625, 0.009521484375, -0.004760742187...
[ 20779, 32380, 2749, 14012, 1295, 21917, 257, 23, 1250, 4867, 502, 3871, 96760, 18811, 1733, 14664, 120840, 14633, 2046, 4648, 390, 74912, 32354, 52347, 787, 6024, 62479, 1496, 831, 105557 ]
[ 0.0850830078125, 0.20947265625, 0.171875, 0.160888671875, 0.13037109375, 0.2176513671875, 0.1533203125, 0.062286376953125, 0.1561279296875, 0.2420654296875, 0.111572265625, 0.058624267578125, 0.0953369140625, 0.1099853515625, 0.1290283203125, 0.0943603515625, 0.1910400390625, 0.220...
embed
64470282_c0
64470282
prolog
0
Title: How to check if variable is a number in Prolog? Problem title: How to check if variable is a number in Prolog? Tags: prolog Problem: How to check if variable is a number in Prolog? const(0) const(X):- number(X). ?- const(0). true ?- const(1). false I'm new to Prolog. I'm trying to check if X is a number. I don't...
How to check if variable is a number in Prolog? How to check if variable is a number in Prolog? prolog How Prolog How to check if variable is a number in Prolog? const(0) const(X):- number(X). ?- const(0). true ?- const(1). false I'm new to Prolog. I'm trying to check if X is a number. I don't want to manually enter co...
[ -0.000881195068359375, -0.0164794921875, 0.00102996826171875, 0.0224609375, 0.016357421875, 0.035400390625, -0.0201416015625, 0.00262451171875, -0.00872802734375, -0.0233154296875, -0.0089111328125, -0.02490234375, -0.02392578125, 0.01141357421875, 0.01806640625, 0.01202392578125, 0....
[ 11249, 47, 12765, 2174, 77336, 83, 10, 14012, 23, 1250, 4867, 502, 158, 271, 177609, 1542, 5, 29568, 27750, 98320, 3525, 31577, 1193, 23009, 30957, 2271, 18, 1733, 54, 903 ]
[ 0.055389404296875, 0.0670166015625, 0.2037353515625, 0.1361083984375, 0.30859375, 0.1326904296875, 0.0875244140625, 0.21923828125, 0.1148681640625, 0.176025390625, 0.250732421875, 0.0877685546875, 0.0977783203125, 0.14990234375, 0.165771484375, 0.12451171875, 0.000640869140625, 0.1...
embed
43299789_c0
43299789
prolog
0
Title: How to create list of list Problem title: How to create list of list Tags: prolog Problem: How to create list of list I having a problem with predicate which creates list of list for example ?-listoflist([p v q, p, r], R). R=[ [p,q],[p],[r] ] So far i have: :- op(500, xfy, v). change_to_list(X v Y, [X|List]):- c...
How to create list of list How to create list of list prolog How Result change_to_list Tmp List How to create list of list I having a problem with predicate which creates list of list for example So far i have:
[ 0.00396728515625, -0.007568359375, -0.00147247314453125, 0.01202392578125, -0.002532958984375, 0.01708984375, -0.012451171875, -0.004119873046875, 0.0026092529296875, -0.017333984375, 0.01318359375, 0.0201416015625, 0.0206298828125, 0.005279541015625, 0.00616455078125, -0.0046081542968...
[ 11249, 47, 28282, 5303, 111, 502, 4867, 126684, 15549, 188, 6562, 384, 2676, 32036, 2967, 1653, 2063, 67, 27781, 2060, 765 ]
[ 0.0714111328125, 0.066650390625, 0.2099609375, 0.2437744140625, 0.185791015625, 0.1375732421875, 0.21044921875, 0.209716796875, 0.1275634765625, 0.07470703125, 0.2061767578125, 0.0692138671875, 0.217041015625, 0.2001953125, 0.0855712890625, 0.1051025390625, 0.1572265625, 0.06561279...
embed
67147819_c0
67147819
prolog
0
Title: How do you know if the elements of a list are odd or even? Problem title: How do you know if the elements of a list are odd or even? Tags: prolog Problem: How do you know if the elements of a list are odd or even? I wrote two predicates to find out if the elements that make up a prolog list are odd or even but i...
How do you know if the elements of a list are odd or even? How do you know if the elements of a list are odd or even? prolog How How do you know if the elements of a list are odd or even? I wrote two predicates to find out if the elements that make up a prolog list are odd or even but it doesn't work. Why ?
[ -0.009033203125, 0.006256103515625, 0.01123046875, -0.0233154296875, -0.000274658203125, 0.0322265625, -0.00604248046875, 0.00335693359375, 0.010986328125, -0.0130615234375, 0.00958251953125, -0.0244140625, 0.0010833740234375, -0.004241943359375, 0.003387451171875, 0.0164794921875, 0...
[ 11249, 54, 398, 3714, 2174, 80854, 5303, 621, 70270, 707, 3853, 111, 10, 502, 4867, 54397, 6626, 1653, 2063, 7413, 1810, 1284, 22027, 18, 4488, 44084 ]
[ 0.08197021484375, 0.059234619140625, 0.0269317626953125, 0.1650390625, 0.11907958984375, 0.1873779296875, 0.1986083984375, 0.09124755859375, 0.25, 0.12451171875, 0.210693359375, 0.04791259765625, 0.017608642578125, 0.120849609375, 0.1824951171875, 0.00525665283203125, 0.0068130493164...
embed
61160857_c1
61160857
prolog
1
source-file Clauses of og_prod/3 are not together in the source-file Earlier definition at ex1 cap7.pl:11 Current predicate: tipo_prod/2 Use :- discontiguous og_prod/3. to suppress this message If someone could explain to me whats wrong in this program i would appreciate it a lot. Code signals: f001, f002, f003, lar_i...
source-file Clauses of og_prod/3 are not together in the source-file Earlier definition at ex1 cap7.pl:11 Current predicate: tipo_prod/2 Use :- discontiguous og_prod/3. to suppress this message If someone could explain to me whats wrong in this program i would appreciate it a lot. Code signals: f001, f002, f003, lar_i...
[ 0.005401611328125, 0.01373291015625, -0.00347900390625, 0.0174560546875, -0.00592041015625, 0.0203857421875, -0.03173828125, -0.005767822265625, 0.01239013671875, -0.0032196044921875, -0.007568359375, -0.000949859619140625, 0.00445556640625, -0.01806640625, -0.00274658203125, 0.0225830...
[ 31344, 29822, 100700, 90, 60, 112348, 18113, 621, 959, 25842, 23, 147, 56786, 80934, 1119, 3540, 966, 19993, 114063, 1653, 2063, 4309, 12477, 36836, 20947, 3598, 1234, 10821, 15811, 11856, 26008, 5809, 73342, 163, 2367, 7, 44691, 903, 1528,...
[ 0.2166748046875, 0.2093505859375, 0.197509765625, 0.057373046875, 0.2017822265625, 0.2396240234375, 0.261474609375, 0.0751953125, 0.1656494140625, 0.230224609375, 0.0484619140625, 0.07708740234375, 0.1561279296875, 0.173583984375, 0.06268310546875, 0.07427978515625, 0.02569580078125,...
embed
3864382_c0
3864382
prolog
0
Title: How to check type of a list element Problem title: How to check type of a list element Tags: types, prolog, list Problem: How to check type of a list element Is there a way to determine the type of an element within a list in Prolog? I know that variables aren't explicitly typed in Prolog, but I need to check wh...
How to check type of a list element How to check type of a list element types prolog list How How to check type of a list element Is there a way to determine the type of an element within a list in Prolog? I know that variables aren't explicitly typed in Prolog, but I need to check whether an element is a number, a spe...
[ 0.0052490234375, -0.004913330078125, 0.0029144287109375, 0.01129150390625, -0.017578125, -0.001861572265625, -0.019287109375, 0.013427734375, -0.01165771484375, -0.006561279296875, 0.0015106201171875, -0.0400390625, -0.0164794921875, -0.006744384765625, -0.0191650390625, 0.005767822265...
[ 11249, 47, 12765, 10644, 111, 5303, 12830, 52895, 502, 4867, 3917, 83324, 28032, 23, 1250, 77336, 36766, 83, 14012, 29458, 62816, 163846 ]
[ 0.07354736328125, 0.0673828125, 0.196044921875, 0.2198486328125, 0.0770263671875, 0.1705322265625, 0.177490234375, 0.18505859375, 0.101806640625, 0.1990966796875, 0.0400390625, 0.108642578125, 0.099365234375, 0.0302734375, 0.1195068359375, 0.127685546875, 0.02191162109375, 0.024536...
embed
59120632_c0
59120632
prolog
0
Title: How to give values to items in a list in prolog Problem title: How to give values to items in a list in prolog Tags: prolog Problem: How to give values to items in a list in prolog So i made a list using atom_chars(X,Y). Which split the string 'abc' into [a,b,c] . I now want to assign numbers to the elements in ...
How to give values to items in a list in prolog How to give values to items in a list in prolog prolog How atom_chars How to give values to items in a list in prolog So i made a list using atom_chars(X,Y). Which split the string 'abc' into [a,b,c] . I now want to assign numbers to the elements in the list. Such as a is...
[ -0.002044677734375, -0.005828857421875, 0.0098876953125, 0.039306640625, -0.01434326171875, 0.01806640625, 0.0096435546875, 0.0147705078125, 0.0064697265625, 0.00518798828125, 0.01220703125, -0.002716064453125, 0.011962890625, 0.013427734375, -0.0150146484375, 0.000377655029296875, 0...
[ 11249, 47, 8337, 142424, 55769, 23, 5303, 502, 4867, 34627, 9254, 7, 10, 7228, 17368, 1542, 1723, 65450, 79315, 2055, 238, 3934, 11, 275, 5036, 3444, 95486, 101935, 80854, 83, 201, 876, 116, 501, 2861, 1672, 20594, 903 ]
[ 0.08251953125, 0.1475830078125, 0.18994140625, 0.2486572265625, 0.2196044921875, 0.06903076171875, 0.225341796875, 0.170654296875, 0.2391357421875, 0.2135009765625, 0.2086181640625, 0.06866455078125, 0.0228271484375, 0.0213470458984375, 0.0594482421875, 0.041107177734375, 0.092346191...
embed
28930425_c0
28930425
prolog
0
Title: Convert Prolog sentence to query Problem title: Convert Prolog sentence to query Tags: prolog Problem: Convert Prolog sentence to query Is there any way to convert a simple sentence like: Is Bob a man? to a Prolog query like: man(Bob). My thought is to take Bob and man from the input then store them in variables...
Convert Prolog sentence to query Convert Prolog sentence to query prolog Convert Prolog Bob Convert Prolog sentence to query Is there any way to convert a simple sentence like: to a Prolog query like: My thought is to take Bob and man from the input then store them in variables. Then somehow build the query from those ...
[ 0.007354736328125, 0.021484375, -0.0133056640625, 0.025634765625, -0.01348876953125, 0.025146484375, -0.00107574462890625, 0.01300048828125, -0.006195068359375, -0.052001953125, 0.00183868408203125, 0.0038299560546875, -0.017578125, 0.01239013671875, 0.006988525390625, 0.032470703125, ...
[ 1657, 11549, 1250, 4867, 149357, 47, 41, 1294, 502, 25027, 3917, 96760, 8781, 1884, 2646, 17569, 83, 5646, 136, 332, 1295, 107730, 4343, 23, 77336, 45367, 2071, 7722 ]
[ 0.09124755859375, 0.156982421875, 0.1871337890625, 0.260498046875, 0.2080078125, 0.0743408203125, 0.1864013671875, 0.2069091796875, 0.146484375, 0.1978759765625, 0.044952392578125, 0.1710205078125, 0.1304931640625, 0.040985107421875, 0.053741455078125, 0.136474609375, 0.0121688842773...
embed
41397283_c0
41397283
prolog
0
Title: Prolog recursively append the list Problem title: Prolog recursively append the list Tags: prolog Problem: Prolog recursively append the list Here's a code which recursively add the element X at the end of the list. app(X, [], [X]). app(X, [Y | S], [Y | S2]) :- app(X, S, S2). Could anyone explain me how it works...
Prolog recursively append the list Prolog recursively append the list prolog Prolog Prolog recursively append the list Here's a code which recursively add the element X at the end of the list. Could anyone explain me how it works? Where's the return statement, what exactly the app(X, S, S2) [Y | S], [Y | S2] do?
[ 0.00156402587890625, 0.0260009765625, 0.0098876953125, 0.00860595703125, 0.006866455078125, 0.019287109375, 0.0002079010009765625, 0.00921630859375, 0.00860595703125, -0.00994873046875, 0.0306396484375, -0.02880859375, -0.033935546875, 0.00860595703125, 0.01513671875, 0.007171630859375...
[ 1250, 4867, 195625, 5844, 114689, 71, 5303, 538, 70, 502, 18151, 15190, 12830, 1193, 3564, 111, 73342, 3642, 442, 43240, 30646, 63805, 2367, 66161, 4027, 1542, 159, 10461, 1723, 90173, 54 ]
[ 0.1602783203125, 0.240478515625, 0.2159423828125, 0.138916015625, 0.182861328125, 0.060302734375, 0.2022705078125, 0.005157470703125, 0.006103515625, 0.1298828125, 0.1533203125, 0.1424560546875, 0.1365966796875, 0.115966796875, 0.1678466796875, 0.036529541015625, 0.09552001953125, ...
embed
6792730_c0
6792730
prolog
0
Title: Fill list in SWI-Prolog Problem title: Fill list in SWI-Prolog Tags: list, prolog Problem: Fill list in SWI-Prolog I am trying to fill a list of given length N with numbers 1,2,3,...,N. I thought this could be done this way: create_list(N,L) :- length(L,N), forall(between(1,N,X), nth1(X,L,X)). However, this does...
Fill list in SWI-Prolog Fill list in SWI-Prolog list prolog Fill SWI-Prolog create_list nth1 Fill list in SWI-Prolog I am trying to fill a list of given length N with numbers 1,2,3,...,N. I thought this could be done this way: However, this does not seem to work. Can anyone say what I am doing wrong?
[ 0.00897216796875, 0.0069580078125, 0.007537841796875, 0.01080322265625, -0.003875732421875, -0.00250244140625, -0.005584716796875, 0.01123046875, 0.01025390625, -0.02294921875, 0.0040283203125, -0.0108642578125, -0.000514984130859375, 0.0184326171875, -0.00250244140625, 0.0062866210937...
[ 140423, 5303, 159, 38969, 10752, 4867, 23, 502, 28282, 6562, 653, 927, 418, 31577, 26292, 34475, 140909, 541, 678, 101935, 25568, 363, 27, 839, 17569, 5809, 16940, 903, 3917, 33306, 14602, 959, 48903, 4488, 5154, 444, 20594, 44691 ]
[ 0.2418212890625, 0.25146484375, 0.08648681640625, 0.2154541015625, 0.135498046875, 0.205322265625, 0.01190185546875, 0.110107421875, 0.16455078125, 0.2410888671875, 0.061859130859375, 0.1986083984375, 0.057861328125, 0.1123046875, 0.2310791015625, 0.07568359375, 0.167724609375, 0.1...
embed
77781529_c1
77781529
prolog
1
1 , C, Letter, Aux, NewMatrix). replaceRow([], _, _, _, NewMatrix, NewMatrix) :- !. replaceRow([H | T], C2 , C, Letter, Aux, NewMatrix) :- ( C2 < C; C2 > C -> NewC is C2 + 1, append(Aux, [H], NewAux), replaceRow(T, NewC, C, Letter, NewAux, NewMatrix); C2 == C, NewC is C2 + 1, append(Aux, [Letter], NewAux), replaceRow(T...
1 , C, Letter, Aux, NewMatrix). replaceRow([], _, _, _, NewMatrix, NewMatrix) :- !. replaceRow([H | T], C2 , C, Letter, Aux, NewMatrix) :- ( C2 < C; C2 > C -> NewC is C2 + 1, append(Aux, [H], NewAux), replaceRow(T, NewC, C, Letter, NewAux, NewMatrix); C2 == C, NewC is C2 + 1, append(Aux, [Letter], NewAux), replaceRow(T...
[ -0.0028228759765625, 0.00799560546875, 0.0184326171875, 0.0233154296875, -0.006103515625, -0.00836181640625, -0.0011138916015625, 0.01007080078125, 0.0228271484375, 0.049072265625, 0.0028839111328125, -0.0089111328125, 0.0081787109375, -0.006927490234375, -0.0091552734375, -0.017211914...
[ 106, 6, 4, 313, 105451, 62, 6077, 2356, 4613, 87427, 194, 91995, 12724, 434, 132, 1065, 101, 15772, 711, 841, 58745, 384, 268, 304, 4426, 74, 977, 33079, 441, 83, 997, 114689, 71, 618, 3142, 69112, 284, 5267, 3055, 111767, 1135, 28864...
[ 0.109619140625, 0.01300048828125, 0.057037353515625, 0.114013671875, 0.2371826171875, 0.0396728515625, 0.1876220703125, 0.17529296875, 0.09130859375, 0.1744384765625, 0.05426025390625, 0.2471923828125, 0.1612548828125, 0.128662109375, 0.019683837890625, 0.000640869140625, 0.040710449...
embed
16237901_c0
16237901
prolog
0
Title: When does prolog return fail? Problem title: When does prolog return fail? Tags: prolog Problem: When does prolog return fail? Here is my tutor's question. "In your own words, what possible conclusions can be drawn when prolog returns fail for a query?" I have never experienced prolog returning fail. I can only ...
When does prolog return fail? When does prolog return fail? prolog When When does prolog return fail? Here is my tutor's question. "In your own words, what possible conclusions can be drawn when prolog returns fail for a query?" I have never experienced prolog returning fail. I can only assume that it might return fail...
[ 0.0306396484375, 0.0189208984375, 0.0111083984375, -0.01153564453125, -0.002960205078125, -0.004730224609375, 0.0003643035888671875, -0.00830078125, -0.0013275146484375, -0.00128936767578125, 0.009033203125, -0.0302734375, -0.01287841796875, 0.01116943359375, 0.00201416015625, -0.00059...
[ 14847, 502, 4867, 30646, 35782, 14602, 121314, 93192, 3229, 41, 1294, 8306, 122446, 13648, 18499, 190647, 125728 ]
[ 0.0897216796875, 0.15185546875, 0.2481689453125, 0.2193603515625, 0.1988525390625, 0.0360107421875, 0.05670166015625, 0.0273284912109375, 0.0076904296875, 0.0404052734375, 0.002716064453125, 0.011810302734375, 0.010986328125, 0.0137939453125, 0.07623291015625, 0.042388916015625, 0.10...
embed
18427778_c0
18427778
prolog
0
Title: PROLOG resolution traversal, visualize? Problem title: PROLOG resolution traversal, visualize? Tags: prolog, visualization Problem: PROLOG resolution traversal, visualize? Is it possible, with reasonable effort, to visualize how PROLOG found the results to a query? It would help to understand via which paths it ...
PROLOG resolution traversal, visualize? PROLOG resolution traversal, visualize? prolog visualization PROLOG PROLOG resolution traversal, visualize? Is it possible, with reasonable effort, to visualize how PROLOG found the results to a query? It would help to understand via which paths it found e.g. some repeating entri...
[ 0.0177001953125, 0.033447265625, 0.004730224609375, 0.00180816650390625, 0.004180908203125, 0.004425048828125, -0.024169921875, -0.015380859375, -0.005126953125, -0.0159912109375, -0.001983642578125, 0.00616455078125, -0.0306396484375, 0.01025390625, 0.005340576171875, 0.021728515625, ...
[ 10514, 47510, 158839, 37317, 289, 21176, 20650, 502, 4867, 47691, 7722, 169022, 71834, 47, 3642, 14037, 50339, 41, 1294, 4358, 28219, 1829, 60875, 119140, 112820, 90791, 35845, 186351, 53201 ]
[ 0.1907958984375, 0.257568359375, 0.240966796875, 0.213623046875, 0.126708984375, 0.2242431640625, 0.166259765625, 0.1629638671875, 0.255859375, 0.1015625, 0.10565185546875, 0.036834716796875, 0.0254058837890625, 0.03973388671875, 0.036163330078125, 0.119873046875, 0.1439208984375, ...
embed
60638985_c0
60638985
prolog
0
Title: Prolog - Update a value in list of list Problem title: Prolog - Update a value in list of list Tags: prolog Problem: Prolog - Update a value in list of list I have a fact : available_resources([[r1, 0], [r2, 0]]). I need when a specified condition is true increase the zero by 1 . like: release(X):- allocated(X ,...
Prolog - Update a value in list of list Prolog - Update a value in list of list prolog Prolog Update available_resources Prolog - Update a value in list of list I have a fact : I need when a specified condition is true increase the zero by 1 . like: I don't know how to update a fact.
[ -0.00167083740234375, -0.00017642974853515625, 0.0030364990234375, 0.01483154296875, -0.004180908203125, 0.00147247314453125, -0.01239013671875, 0.019287109375, 0.0137939453125, 0.008056640625, 0.02734375, 0.007354736328125, 0.01092529296875, 0.00225830078125, 0.02197265625, 0.00228881...
[ 1250, 4867, 20, 28641, 10, 34292, 23, 5303, 111, 502, 19882, 107, 60427, 765, 15824, 87, 3871, 3229, 58735, 35431, 83, 29568, 51312, 70, 45234, 390, 106, 1884, 2301, 18, 3714, 3642, 28350, 5 ]
[ 0.1763916015625, 0.258056640625, 0.030120849609375, 0.2279052734375, 0.04632568359375, 0.1983642578125, 0.07879638671875, 0.2095947265625, 0.09722900390625, 0.130859375, 0.1365966796875, 0.0552978515625, 0.15869140625, 0.0151214599609375, 0.204833984375, 0.00036597251892089844, 0.128...
embed
21805610_c0
21805610
prolog
0
Title: why is L=[...]. not allowed in the source file? Problem title: why is L=[...]. not allowed in the source file? Tags: prolog Problem: why is L=[...]. not allowed in the source file? I have a long list that I need to declare in the Data-Base. Can't I write: L=[a,b,c,d,f]. f(t,g,r) :- w(L), ... When I tray to compi...
why is L=[...]. not allowed in the source file? why is L=[...]. not allowed in the source file? prolog why is L=[...]. not allowed in the source file? I have a long list that I need to declare in the Data-Base. Can't I write: When I tray to compile it gives an error message. If I cancel the L= ... line it's ok. How do ...
[ 0.02197265625, 0.018310546875, 0.001800537109375, 0.0037078857421875, -0.0125732421875, -0.00927734375, -0.01397705078125, -0.0036468505859375, 0.0091552734375, -0.042724609375, 0.0047607421875, 0.0028228759765625, 0.007537841796875, -0.0027008056640625, 0.01544189453125, 0.00207519531...
[ 15400, 339, 1369, 46344, 5, 959, 107003, 31344, 11435, 23, 502, 4867, 83, 4989, 5303, 159978, 11809, 63473, 4171, 33022, 1152, 53, 9969, 1340, 18499, 26008, 53017, 153, 13315, 3664 ]
[ 0.0946044921875, 0.1744384765625, 0.1820068359375, 0.1910400390625, 0.0855712890625, 0.1021728515625, 0.1568603515625, 0.2130126953125, 0.165283203125, 0.013092041015625, 0.1466064453125, 0.2091064453125, 0.011444091796875, 0.0023193359375, 0.160400390625, 0.1473388671875, 0.06213378...
embed
2250564_c0
2250564
prolog
0
Title: operator expected error- prolog Problem title: operator expected error- prolog Tags: prolog, syntax-error Problem: operator expected error- prolog I'm trying to write a prediate that returns every third letter of a list. This is my code so far: third([],X):-X=[]. third([_],X):-X=[]. third([_,_],X):-X=[]. third([...
operator expected error- prolog operator expected error- prolog prolog syntax-error operator expected error- prolog I'm trying to write a prediate that returns every third letter of a list. This is my code so far: I get the "operator expected" error on the last line. Does anyone know why?
[ 0.00701904296875, -0.00439453125, -0.001922607421875, 0.0018768310546875, 0.0029754638671875, 0.0235595703125, -0.00927734375, 0.0242919921875, 0.0040283203125, -0.0225830078125, 0.013671875, -0.020263671875, -0.004241943359375, -0.0179443359375, 0.01153564453125, 0.01953125, -0.0034...
[ 39933, 84751, 18499, 502, 4867, 6002, 86531, 188800, 31577, 33022, 1653, 101426, 30646, 11907, 50960, 31330, 5303, 18151, 2060, 206469, 98, 4568, 13315, 3714, 15400 ]
[ 0.2451171875, 0.2073974609375, 0.1993408203125, 0.13623046875, 0.197998046875, 0.004421234130859375, 0.1024169921875, 0.1700439453125, 0.0209808349609375, 0.04327392578125, 0.150634765625, 0.197998046875, 0.0882568359375, 0.05426025390625, 0.1671142578125, 0.137451171875, 0.104248046...
embed
57214404_c0
57214404
prolog
0
Title: What&#x27;s the equivalent of a map function in Prolog? Problem title: What&#x27;s the equivalent of a map function in Prolog? Tags: map-function, meta-predicate, prolog Problem: What's the equivalent of a map function in Prolog? If I have a list, and want to produce a list with all items transformed by a "funct...
What&#x27;s the equivalent of a map function in Prolog? What&#x27;s the equivalent of a map function in Prolog? map-function meta-predicate prolog What Prolog What's the equivalent of a map function in Prolog? If I have a list, and want to produce a list with all items transformed by a "function", eg, the equivalent of...
[ 0.01092529296875, 0.0106201171875, 0.0184326171875, -0.0096435546875, -0.022216796875, -0.0002727508544921875, -0.001983642578125, 0.0057373046875, 0.0034027099609375, -0.03173828125, 0.0022735595703125, -0.0059814453125, -0.0255126953125, -0.003814697265625, 0.0068359375, 0.0058288574...
[ 3768, 183234, 22288, 32354, 23, 1250, 4867, 111, 137175, 23550, 19714, 2063, 502, 4865, 70, 5303, 3444, 27489, 678, 756, 55769, 27198, 390, 1261, 7008 ]
[ 0.035552978515625, 0.1884765625, 0.2100830078125, 0.211181640625, 0.03485107421875, 0.1473388671875, 0.2425537109375, 0.00372314453125, 0.2042236328125, 0.1275634765625, 0.08831787109375, 0.0787353515625, 0.1060791015625, 0.00830078125, 0.010009765625, 0.160400390625, 0.0334167480468...
embed
66417829_c0
66417829
prolog
0
Title: fibonacci sequence recursive syntax error Problem title: fibonacci sequence recursive syntax error Tags: prolog Problem: fibonacci sequence recursive syntax error I tried this code fibonacci(1, 1). fibonacci(2, 1). fibonacci(N, F):- N1 is N–1, N2 is N – 2, fibonacci(N1, F1), fibonacci(N2, F2), F is F1 + F2. but ...
fibonacci sequence recursive syntax error fibonacci sequence recursive syntax error prolog N-1 fibonacci sequence recursive syntax error I tried this code but it tells me there is a syntax error at N1 is N-1 . Specifically at the N-1 part. Any ideeas?
[ 0.0076904296875, 0.00147247314453125, -0.0172119140625, 0.01080322265625, -0.00225830078125, 0.003448486328125, -0.001068115234375, 0.0191650390625, -0.01336669921875, -0.01806640625, -0.0019989013671875, -0.0177001953125, -0.01153564453125, 0.00107574462890625, 0.03466796875, -0.01806...
[ 809, 20990, 52544, 40, 944, 195625, 5844, 6002, 86531, 18499, 3956, 502, 4867, 541, 5759, 37842, 903, 18151, 14192, 163, 2685, 10, 99, 418, 83, 209052, 2831, 113309 ]
[ 0.12127685546875, 0.13671875, 0.170654296875, 0.07000732421875, 0.1265869140625, 0.1715087890625, 0.09088134765625, 0.1422119140625, 0.198486328125, 0.212158203125, 0.0074005126953125, 0.11328125, 0.152099609375, 0.12005615234375, 0.1961669921875, 0.07940673828125, 0.0031032562255859...
embed
15125756_c0
15125756
prolog
0
Title: Prolog - How to calculate the total number of elements Problem title: Prolog - How to calculate the total number of elements Tags: prolog Problem: Prolog - How to calculate the total number of elements How do you calculate the total number of elements in a list when there can be lists within a list? (add the len...
Prolog - How to calculate the total number of elements Prolog - How to calculate the total number of elements prolog Prolog How Prolog - How to calculate the total number of elements How do you calculate the total number of elements in a list when there can be lists within a list? (add the length of all the lists toget...
[ 0.0250244140625, 0.018310546875, -0.01434326171875, 0.017333984375, -0.0220947265625, 0.0103759765625, 0.006317138671875, -0.0036163330078125, 0.01171875, -0.05859375, -0.01068115234375, -0.031982421875, 0.00167083740234375, 0.017578125, 0.01123046875, 0.0001850128173828125, 0.017944...
[ 1250, 4867, 11249, 47, 74481, 67, 3622, 14012, 111, 80854, 502, 54, 23, 5303, 831, 28032, 4028, 140909, 25842 ]
[ 0.1641845703125, 0.2410888671875, 0.060882568359375, 0.00659942626953125, 0.177001953125, 0.066650390625, 0.1754150390625, 0.16650390625, 0.0269775390625, 0.22900390625, 0.0966796875, 0.0141448974609375, 0.0284576416015625, 0.140625, 0.060943603515625, 0.1302490234375, 0.060607910156...
embed
16389834_c0
16389834
prolog
0
Title: I want to use TuProlog in my Android Project Problem title: I want to use TuProlog in my Android Project Tags: tuprolog, prolog, java, android Problem: I want to use TuProlog in my Android Project How I can make an Android Project using tuProlog like Api I have benn trying it but I couldn't I have this error: Co...
I want to use TuProlog in my Android Project I want to use TuProlog in my Android Project tuprolog prolog java android TuProlog Android Project I want to use TuProlog in my Android Project How I can make an Android Project using tuProlog like Api I have benn trying it but I couldn't I have this error:
[ -0.002960205078125, 0.024658203125, 0.0021209716796875, 0.0155029296875, -0.0208740234375, -0.00110626220703125, 0.006134033203125, -0.006683349609375, 0.0062255859375, -0.05517578125, -0.0087890625, -0.0216064453125, -0.017578125, 0.01611328125, 0.0172119140625, -0.00628662109375, 0...
[ 87, 3444, 47, 4527, 1371, 10752, 4867, 23, 759, 3952, 27331, 370, 3454, 502, 79, 330, 54527, 11249, 831, 3249, 17368, 1884, 5787, 14, 765, 1585, 19, 31577, 69427, 18, 903, 18499, 12 ]
[ 0.0282745361328125, 0.12310791015625, 0.056427001953125, 0.12127685546875, 0.206787109375, 0.206787109375, 0.26220703125, 0.07928466796875, 0.01146697998046875, 0.1895751953125, 0.179443359375, 0.1849365234375, 0.1512451171875, 0.1134033203125, 0.06414794921875, 0.116455078125, 0.097...
embed
53228318_c0
53228318
prolog
0
Title: Why length/2 predicate in prolog can produce infinite number of lengths? Problem title: Why length/2 predicate in prolog can produce infinite number of lengths? Tags: prolog Problem: Why length/2 predicate in prolog can produce infinite number of lengths? When I apply this query: ? length(P, _). P = [] ? ; P = [...
Why length/2 predicate in prolog can produce infinite number of lengths? Why length/2 predicate in prolog can produce infinite number of lengths? prolog Why Why length/2 predicate in prolog can produce infinite number of lengths? When I apply this query: ? length(P, _). I have that result. How does this works?
[ 0.00022125244140625, 0.01458740234375, 0.011962890625, 0.007415771484375, -0.01336669921875, 0.006256103515625, 0.01373291015625, 0.00836181640625, 0.021240234375, -0.0303955078125, 0.009033203125, -0.01153564453125, 0.003936767578125, 0.00157928466796875, 0.0167236328125, 0.0059204101...
[ 44084, 140909, 12477, 1653, 2063, 67, 502, 4867, 831, 27489, 54241, 13, 14012, 7, 23, 59911, 41, 1294, 683, 101, 16750, 43240 ]
[ 0.1075439453125, 0.2359619140625, 0.239013671875, 0.1536865234375, 0.1685791015625, 0.07025146484375, 0.1602783203125, 0.2181396484375, 0.09991455078125, 0.1624755859375, 0.1397705078125, 0.07318115234375, 0.11456298828125, 0.06549072265625, 0.0357666015625, 0.0589599609375, 0.068420...
embed
37587633_c0
37587633
prolog
0
Title: How to read a file and assert facts in prolog Problem title: How to read a file and assert facts in prolog Tags: prolog Problem: How to read a file and assert facts in prolog I have a file test.txt : :-dynamic birth/3. birth(tom,1,1). birth(tonny,1,1). How can I read the file and assert them into prolog. Say onl...
How to read a file and assert facts in prolog How to read a file and assert facts in prolog prolog How test.txt How to read a file and assert facts in prolog I have a file test.txt : How can I read the file and assert them into prolog. Say only assert into prolog and I can use them as facts.
[ 0.032470703125, 0.0028076171875, 0.0123291015625, 0.01953125, -0.010498046875, 0.0125732421875, 0.003814697265625, 0.03076171875, -0.00445556640625, -0.03759765625, 0.006317138671875, -0.006500244140625, -0.035888671875, -0.0250244140625, 0.0322265625, 0.0024871826171875, 0.012268066...
[ 11249, 12301, 11435, 136, 237, 33657, 15824, 7, 23, 502, 4867, 47, 3034, 124326, 5, 831, 3934, 4734, 4527 ]
[ 0.034881591796875, 0.202880859375, 0.184326171875, 0.0911865234375, 0.09918212890625, 0.219970703125, 0.184814453125, 0.09100341796875, 0.0638427734375, 0.1680908203125, 0.228759765625, 0.026336669921875, 0.228759765625, 0.2366943359375, 0.042572021484375, 0.0247039794921875, 0.08825...
embed
4370133_c0
4370133
prolog
0
Title: Help In Learning Prolog Problem title: Help In Learning Prolog Tags: prolog Problem: Help In Learning Prolog I've been learning Prolog for the past two months. I want to increase my knowledge as soon as possible. Am asking if someone can point me to where i can get Prolog exercises and practice them. I also welc...
Help In Learning Prolog Help In Learning Prolog prolog Help Learning Prolog Help In Learning Prolog I've been learning Prolog for the past two months. I want to increase my knowledge as soon as possible. Am asking if someone can point me to where i can get Prolog exercises and practice them. I also welcome examination ...
[ 0.0439453125, 0.01220703125, -0.00007724761962890625, 0.01361083984375, -0.00872802734375, 0.033447265625, -0.01409912109375, -0.004058837890625, 0.00543212890625, -0.0556640625, 0.011962890625, -0.027587890625, -0.00531005859375, 0.01611328125, 0.00029754638671875, 0.012939453125, -...
[ 39527, 360, 114344, 1250, 4867, 502, 87, 272, 2809, 52080, 11015, 6626, 21775, 3444, 47, 51312, 51359, 33662, 7722, 113292, 22008, 831, 6275, 7440, 2046, 81979, 136, 41361, 2856, 81907, 96730, 17582, 141626, 4358 ]
[ 0.1900634765625, 0.1722412109375, 0.1820068359375, 0.1875, 0.2783203125, 0.152587890625, 0.002685546875, 0.0003662109375, 0.034759521484375, 0.124755859375, 0.05291748046875, 0.05902099609375, 0.103271484375, 0.08251953125, 0.025665283203125, 0.10198974609375, 0.114990234375, 0.067...
embed
23308158_c0
23308158
prolog
0
Title: How to check whether a value is a numeric value in Prolog? Problem title: How to check whether a value is a numeric value in Prolog? Tags: prolog Problem: How to check whether a value is a numeric value in Prolog? When someone enters a value (Year), I want to validate the value. I.e., I want to check whether the...
How to check whether a value is a numeric value in Prolog? How to check whether a value is a numeric value in Prolog? prolog How Prolog How to check whether a value is a numeric value in Prolog? When someone enters a value (Year), I want to validate the value. I.e., I want to check whether the value is a numeric. I am ...
[ -0.012451171875, -0.01007080078125, 0.01904296875, 0.0230712890625, -0.00714111328125, 0.02587890625, -0.0245361328125, 0.005218505859375, -0.012451171875, 0.00732421875, -0.02001953125, -0.001220703125, -0.0191650390625, -0.017578125, 0.01165771484375, -0.00115966796875, 0.013122558...
[ 11249, 47, 12765, 36766, 34292, 83, 10, 54744, 238, 23, 1250, 4867, 502, 14847, 22008, 30957, 69085, 147, 3444, 44622, 67, 70, 3525, 4171, 4358, 903, 129745 ]
[ 0.09381103515625, 0.0799560546875, 0.203857421875, 0.1168212890625, 0.24853515625, 0.10302734375, 0.08056640625, 0.2203369140625, 0.1533203125, 0.1136474609375, 0.1676025390625, 0.250732421875, 0.08837890625, 0.0283966064453125, 0.036956787109375, 0.171875, 0.1754150390625, 0.16735...
embed
70489542_c0
70489542
prolog
0
Title: Separate list from a list Prolog Problem title: Separate list from a list Prolog Tags: prolog Problem: Separate list from a list Prolog I have this: Lines=[['4'],['1','2','3','4'],['5','6','7','8'],['9', '10']] And i want: a=['4'] b=[['1','2','3','4']['5','6','7','8']] To do this, I have to search for the elemen...
Separate list from a list Prolog Separate list from a list Prolog prolog a Separate Prolog Lines Separate list from a list Prolog I have this: And i want: To do this, I have to search for the elements inside of Lines that have length=a=['4']. Can someone help me please?
[ 0.0003604888916015625, 0.0038909912109375, 0.0030517578125, 0.0174560546875, -0.0439453125, 0.00579833984375, 0.01531982421875, 0.0198974609375, 0.0101318359375, -0.0018157958984375, -0.0218505859375, 0.007415771484375, 0.00396728515625, 0.0169677734375, -0.0208740234375, -0.0191650390...
[ 503, 6276, 67, 5303, 1295, 10, 1250, 4867, 502, 16777, 765, 903, 3444, 54, 33938, 100, 80854, 46132, 111, 450, 140909, 11, 617, 4171, 4358, 22936 ]
[ 0.091796875, 0.2142333984375, 0.1170654296875, 0.241455078125, 0.1649169921875, 0.033355712890625, 0.1572265625, 0.2176513671875, 0.1287841796875, 0.2186279296875, 0.0526123046875, 0.057037353515625, 0.08917236328125, 0.041046142578125, 0.171875, 0.08770751953125, 0.1700439453125, ...
embed
52660298_c0
52660298
prolog
0
Title: prolog pattern identification for list of numbers Problem title: prolog pattern identification for list of numbers Tags: prolog, pattern-matching Problem: prolog pattern identification for list of numbers So I'm trying to identify if a list of numbers can be identified as a arithmetic progression. For example I ...
prolog pattern identification for list of numbers prolog pattern identification for list of numbers prolog pattern-matching prolog pattern identification for list of numbers So I'm trying to identify if a list of numbers can be identified as a arithmetic progression. For example I have a list of numbers [5, 10, 15, 20]...
[ -0.00299072265625, 0.01422119140625, -0.005340576171875, 0.021484375, -0.004241943359375, 0.031494140625, -0.0172119140625, 0.02294921875, 0.014892578125, -0.0208740234375, 0.0019989013671875, 0.0037384033203125, -0.01611328125, -0.01220703125, 0, 0.01239013671875, 0.00775146484375, ...
[ 502, 4867, 103510, 221160, 100, 5303, 111, 101935, 98753, 214, 1061, 31577, 135812, 2174, 831, 207487, 237, 10, 187, 8962, 282, 9523, 187735, 758, 209, 423, 387, 3871, 3249, 1653, 2063, 1636, 903 ]
[ 0.1781005859375, 0.2427978515625, 0.258056640625, 0.1929931640625, 0.044281005859375, 0.1890869140625, 0.0528564453125, 0.181884765625, 0.166748046875, 0.0316162109375, 0.000244140625, 0.049072265625, 0.146484375, 0.00811767578125, 0.06304931640625, 0.171630859375, 0.0450439453125, ...
embed
12428303_c0
12428303
prolog
0
Title: prolog parsing operations problems Problem title: prolog parsing operations problems Tags: prolog, parsing Problem: prolog parsing operations problems Here is the problem. I want to do a prolog program on count(a*b*c, * , N) which will count the * in a*b*c and return N=2 . How can i achieve this? I have done som...
prolog parsing operations problems prolog parsing operations problems prolog parsing prolog parsing operations problems Here is the problem. I want to do a prolog program on count(a*b*c, * , N) which will count the * in a*b*c and return N=2 . How can i achieve this? I have done some research, either passing it as s str...
[ 0.01806640625, -0.00933837890625, -0.006927490234375, 0.00897216796875, 0.004364013671875, 0.0191650390625, -0.0189208984375, -0.00799560546875, 0.0150146484375, -0.06982421875, -0.0018463134765625, -0.0196533203125, -0.006805419921875, -0.00148773193359375, -0.0018310546875, -0.007171...
[ 502, 4867, 366, 6953, 41018, 44402, 11853, 2967, 3444, 54, 1528, 98, 54529, 11, 1639, 275, 238, 661, 541, 16, 1221, 70, 23, 10, 30646, 55257, 69307, 25188, 452, 91, 79315, 5303, 47, 84797, 2060, 33720, 65771 ]
[ 0.1959228515625, 0.250244140625, 0.1827392578125, 0.08837890625, 0.22607421875, 0.1885986328125, 0.006256103515625, 0.12548828125, 0.0836181640625, 0.0374755859375, 0.1768798828125, 0.053314208984375, 0.21875, 0.047271728515625, 0.114501953125, 0.06024169921875, 0.1107177734375, 0....
embed
1939054_c0
1939054
prolog
0
Title: Solving a logic puzzle using Prolog Problem title: Solving a logic puzzle using Prolog Tags: prolog, puzzle Problem: Solving a logic puzzle using Prolog The criminal is one of A, B, C and D. A says: "It's not me" B says: "It's D" C says: "It's B" D says: "It's not me" And we know that only one of them tells the ...
Solving a logic puzzle using Prolog Solving a logic puzzle using Prolog prolog puzzle Prolog Solving Solving a logic puzzle using Prolog The criminal is one of A, B, C and D. And we know that only one of them tells the truth. Who is the one? I want to solve it by using Prolog. It's an interview question.
[ 0.004974365234375, 0.00750732421875, 0.004974365234375, 0.046630859375, -0.0159912109375, 0.0208740234375, -0.0157470703125, -0.00494384765625, -0.0033416748046875, -0.0478515625, -0.00439453125, 0.01043701171875, 0.006439208984375, 0.027099609375, 0.0081787109375, 0.018310546875, 0....
[ 6678, 6496, 62775, 104192, 17368, 1250, 4867, 10, 502, 581, 49602, 83, 1632, 111, 62, 4, 335, 313, 136, 391, 642, 3714, 4734, 2856, 14192, 85027, 40469, 70, 3444, 86869, 442, 33683, 9655, 5 ]
[ 0.1312255859375, 0.06414794921875, 0.1873779296875, 0.2288818359375, 0.09100341796875, 0.200439453125, 0.28466796875, 0.0205230712890625, 0.140869140625, 0.01392364501953125, 0.27587890625, 0.06365966796875, 0.115966796875, 0.10003662109375, 0.0667724609375, 0.0303192138671875, 0.079...
embed
275660_c0
275660
prolog
0
Title: Without creating a list, how can I query the integers between two values in Prolog? Problem title: Without creating a list, how can I query the integers between two values in Prolog? Tags: prolog Problem: Without creating a list, how can I query the integers between two values in Prolog? For example, if I make a...
Without creating a list, how can I query the integers between two values in Prolog? Without creating a list, how can I query the integers between two values in Prolog? prolog Without Prolog Without creating a list, how can I query the integers between two values in Prolog? For example, if I make a query like between(1,...
[ -0.01611328125, 0.012451171875, 0.0029296875, 0.00360107421875, -0.0045166015625, 0.032958984375, -0.00005817413330078125, 0.0038604736328125, -0.006072998046875, -0.013427734375, 0.0036468505859375, -0.00933837890625, -0.004302978515625, 0.00860595703125, 0.018798828125, 0.00154113769...
[ 177417, 105233, 5303, 41, 1294, 892, 26255, 17721, 6626, 142424, 1250, 4867, 3642, 831, 502, 163324, 1542, 41206, 1193, 55257, 76067, 7722 ]
[ 0.1204833984375, 0.1402587890625, 0.1595458984375, 0.1390380859375, 0.1690673828125, 0.1541748046875, 0.1456298828125, 0.1993408203125, 0.1273193359375, 0.1605224609375, 0.1494140625, 0.2451171875, 0.009979248046875, 0.0258026123046875, 0.0723876953125, 0.1961669921875, 0.08197021484...
embed
37869329_c2
37869329
prolog
2
, 4-9, 4-11, 4-19, 4-20, 5-6, 5-9, 5-15, 5-16, 5-19, 6-1, 6-11, 6-15, 7-1, 7-6, 7-15, 8-5, 8-10, 8-15, 8-18, 9-1, 9-10, 9-13, 9-15, 9-17, 9-20, 10-1, 10-7, 10-17, 10-19, 11-5, 11-7, 11-11, 11-13, 11-20, 12-5, Code signals: ECLiPSe, CLP, Board, Hints, Row-Col, Row, Col, Cell, hint_constraints, RowHints, ColHints, ic_glo...
, 4-9, 4-11, 4-19, 4-20, 5-6, 5-9, 5-15, 5-16, 5-19, 6-1, 6-11, 6-15, 7-1, 7-6, 7-15, 8-5, 8-10, 8-15, 8-18, 9-1, 9-10, 9-13, 9-15, 9-17, 9-20, 10-1, 10-7, 10-17, 10-19, 11-5, 11-7, 11-11, 11-13, 11-20, 12-5, Code signals: ECLiPSe, CLP, Board, Hints, Row-Col, Row, Col, Cell, hint_constraints, RowHints, ColHints, ic_glo...
[ -0.0031280517578125, 0.007537841796875, 0.01373291015625, 0.0242919921875, 0.005767822265625, -0.0002536773681640625, -0.016357421875, 0.006500244140625, -0.015380859375, -0.01318359375, -0.0341796875, -0.0101318359375, 0.00799560546875, 0.01904296875, -0.00823974609375, -0.00552368164...
[ 6, 4, 201, 15205, 16675, 8363, 11033, 43096, 190, 13386, 13528, 126188, 305, 185678, 361, 13545, 382, 10342, 109395, 9444, 179219, 173638, 483, 22820, 13521, 209, 5759, 16709, 534, 427, 28864, 26073, 7, 12, 59947, 9506, 9059, 13, 37352, 6...
[ 0.0860595703125, 0.109619140625, 0.1593017578125, 0.23681640625, 0.175048828125, 0.1988525390625, 0.17578125, 0.160400390625, 0.09765625, 0.148681640625, 0.1387939453125, 0.16455078125, 0.067138671875, 0.1287841796875, 0.013336181640625, 0.1427001953125, 0.0562744140625, 0.17602539...
embed
13678029_c0
13678029
prolog
0
Title: How do I get the lists of list&#x27; first element in Prolog? Problem title: How do I get the lists of list&#x27; first element in Prolog? Tags: prolog Problem: How do I get the lists of list' first element in Prolog? Let's say we have a matrix, represented by a list of lists, e.g.: [[1,2,3],[4,5,6],[7,8,9]] . H...
How do I get the lists of list&#x27; first element in Prolog? How do I get the lists of list&#x27; first element in Prolog? prolog How Prolog How do I get the lists of list' first element in Prolog? Let's say we have a matrix, represented by a list of lists, e.g.: [[1,2,3],[4,5,6],[7,8,9]] . How do I write a predicate ...
[ 0.01708984375, 0.0022125244140625, -0.0057373046875, 0.01409912109375, -0.016845703125, 0.01904296875, 0.01031494140625, 0.005096435546875, 0.00311279296875, -0.02294921875, 0.0108642578125, 0.00860595703125, -0.0179443359375, -0.00171661376953125, 0.000560760498046875, 0.0079956054687...
[ 11249, 87, 2046, 70, 5303, 7, 111, 3768, 5117, 12830, 23, 1250, 4867, 502, 54, 50944, 425, 33636, 133063, 96386, 617, 104629, 966, 145180, 33022, 1653, 2063, 67, 62163, 163324, 108368, 71928, 141670, 363, 910, 171379, 129745 ]
[ 0.0654296875, 0.03277587890625, 0.1361083984375, 0.05694580078125, 0.2298583984375, 0.1063232421875, 0.0882568359375, 0.071533203125, 0.1959228515625, 0.2109375, 0.0731201171875, 0.206787109375, 0.2666015625, 0.1182861328125, 0.031982421875, 0.180908203125, 0.07489013671875, 0.1768...
embed
55560239_c0
55560239
prolog
0
Title: How to add rules in Jason while running Problem title: How to add rules in Jason while running Tags: prolog, multi-agent, agent Problem: How to add rules in Jason while running I am wondering how to add a new rule in Jason. In prolog it would be just something like: a :- b, c. In Jason I have tried something tha...
How to add rules in Jason while running How to add rules in Jason while running prolog multi-agent agent How Jason How to add rules in Jason while running I am wondering how to add a new rule in Jason. In prolog it would be just something like: In Jason I have tried something that was discussed in jason users list , wi...
[ 0.005859375, 0.027587890625, 0.017822265625, 0.0306396484375, 0.007354736328125, 0.006988525390625, -0.0224609375, 0.0247802734375, -0.00628662109375, -0.0478515625, 0.01068115234375, -0.000820159912109375, -0.01416015625, 0.001739501953125, 0.03125, -0.004669189453125, 0.00848388671...
[ 11249, 47, 15190, 91736, 23, 85613, 12960, 51042, 502, 4867, 6024, 83963, 23882, 149016, 3642, 10, 3525, 79986, 360, 1884, 37842, 45252, 79, 1681, 72095, 5303, 36272 ]
[ 0.0704345703125, 0.06402587890625, 0.17333984375, 0.2252197265625, 0.1331787109375, 0.259033203125, 0.1640625, 0.1712646484375, 0.1466064453125, 0.175048828125, 0.1173095703125, 0.177734375, 0.1517333984375, 0.018646240234375, 0.034912109375, 0.007843017578125, 0.1070556640625, 0.2...
embed
40560658_c0
40560658
prolog
0
Title: List finding in a list of lists in Prolog Problem title: List finding in a list of lists in Prolog Tags: list, prolog, search, sorting, find Problem: List finding in a list of lists in Prolog I want to find a specific list inside a list of lists in prolog, let's say the list is: L[L1,L2,L3......] every list insi...
List finding in a list of lists in Prolog List finding in a list of lists in Prolog list prolog search sorting find List Prolog List finding in a list of lists in Prolog I want to find a specific list inside a list of lists in prolog, let's say the list is: every list inside L is in the format: I want to find a Ln with...
[ 0.00014972686767578125, 0.00604248046875, -0.00145721435546875, 0.00531005859375, -0.015625, 0.01348876953125, 0.0098876953125, -0.024169921875, 0.0030975341796875, -0.0135498046875, -0.00148773193359375, -0.006011962890625, -0.0179443359375, 0.004364013671875, -0.0002918243408203125, ...
[ 32036, 90791, 23, 5303, 7, 1250, 4867, 502, 33938, 12096, 7413, 3444, 47, 29458, 46132, 11907, 339, 9384, 19, 678, 70, 19336, 525, 62, 54 ]
[ 0.213134765625, 0.1634521484375, 0.042327880859375, 0.22900390625, 0.041259765625, 0.1685791015625, 0.25048828125, 0.1458740234375, 0.108154296875, 0.1292724609375, 0.1710205078125, 0.05859375, 0.0249786376953125, 0.1224365234375, 0.1495361328125, 0.08172607421875, 0.1240234375, 0....
embed
44336322_c0
44336322
prolog
0
Title: how to take n number of input from user in prolog Problem title: how to take n number of input from user in prolog Tags: recursion, prolog Problem: how to take n number of input from user in prolog Is the below code correct for taking n number of input from user. take_input(0):- !. take_input(Num):- writeln('ent...
how to take n number of input from user in prolog how to take n number of input from user in prolog recursion prolog user take_input Num Crs how to take n number of input from user in prolog Is the below code correct for taking n number of input from user.
[ -0.01422119140625, 0.00323486328125, -0.006317138671875, 0.0096435546875, -0.0010986328125, 0.006439208984375, -0.0011444091796875, 0.0230712890625, -0.00469970703125, -0.04736328125, 0.0091552734375, -0.038330078125, -0.01422119140625, 0.025390625, 0.0068359375, -0.0030975341796875, ...
[ 3642, 47, 5646, 653, 14012, 111, 107730, 1295, 38937, 23, 502, 4867, 195625, 1830, 73, 7077, 52782, 41802, 35064, 18151, 26785, 35971 ]
[ 0.05792236328125, 0.048431396484375, 0.181884765625, 0.1729736328125, 0.1888427734375, 0.0309600830078125, 0.2467041015625, 0.1358642578125, 0.2000732421875, 0.054962158203125, 0.1663818359375, 0.2254638671875, 0.1729736328125, 0.005767822265625, 0.1173095703125, 0.0623779296875, 0.1...
embed
6417712_c0
6417712
prolog
0
Title: Prolog returns a list instead of several possible strings Problem title: Prolog returns a list instead of several possible strings Tags: logic, prolog, list, string Problem: Prolog returns a list instead of several possible strings answer("Yes"). answer("No"). answer("Variable = value"). receive(A) :- answer(A)....
Prolog returns a list instead of several possible strings Prolog returns a list instead of several possible strings logic prolog list string Prolog Yes Variable Prolog returns a list instead of several possible strings I want A = "Yes" etc. What am I doing wrong?
[ 0.0216064453125, 0.0023651123046875, -0.00946044921875, 0.03369140625, -0.003173828125, 0.0279541015625, 0.004608154296875, 0.0115966796875, 0.02099609375, 0.01019287109375, -0.00958251953125, -0.00762939453125, -0.005889892578125, 0.012451171875, 0.01495361328125, -0.005096435546875, ...
[ 1250, 4867, 30646, 5303, 64457, 111, 40368, 7722, 79315, 10, 62775, 502, 32635, 84572, 2886, 7, 3444, 62, 2203, 91480, 444, 20594, 44691 ]
[ 0.19287109375, 0.26318359375, 0.1925048828125, 0.2041015625, 0.1473388671875, 0.004856109619140625, 0.0791015625, 0.14892578125, 0.19482421875, 0.02587890625, 0.14306640625, 0.1549072265625, 0.150634765625, 0.178955078125, 0.07305908203125, 0.0190887451171875, 0.139404296875, 0.086...
embed
65545352_c1
65545352
prolog
1
i-prolog/boot/dcg.pl:368 ERROR: [9] <user> ERROR: ERROR: Note: some frames are missing due to last-call optimization. ERROR: Re-run your program in debug mode (:- debug.) to get more detail. ?- Code signals: Possible, Welcome, SWI-Prolog, ABSOLUTELY, WARRANTY, Please, www.swi-prolog.org, Topic, Word, test_grammar, ERRO...
i-prolog/boot/dcg.pl:368 ERROR: [9] <user> ERROR: ERROR: Note: some frames are missing due to last-call optimization. ERROR: Re-run your program in debug mode (:- debug.) to get more detail. ?- Code signals: Possible, Welcome, SWI-Prolog, ABSOLUTELY, WARRANTY, Please, www.swi-prolog.org, Topic, Word, test_grammar, ERRO...
[ 0.03076171875, 0.000286102294921875, 0.004852294921875, 0.0223388671875, -0.00131988525390625, 0.015869140625, 0.000293731689453125, 0.007659912109375, 0.0107421875, -0.03125, -0.01708984375, -0.0267333984375, -0.0125732421875, 0.0032501220703125, 0.026611328125, 0.00445556640625, -0...
[ 17, 3454, 4867, 80765, 71, 238, 177, 2424, 126701, 151206, 24638, 55737, 65918, 12, 18622, 3060, 2674, 621, 132283, 4743, 4568, 85763, 87235, 1363, 853, 16428, 1528, 8, 85779, 13736, 9, 22443, 28864, 26073, 115861, 2661, 91334, 159, 38969, ...
[ 0.12548828125, 0.1722412109375, 0.245361328125, 0.2352294921875, 0.041473388671875, 0.0631103515625, 0.1640625, 0.1510009765625, 0.2373046875, 0.1793212890625, 0.150390625, 0.148681640625, 0.1329345703125, 0.010284423828125, 0.186279296875, 0.118408203125, 0.267578125, 0.0941162109...
embed
27338918_c1
27338918
prolog
1
5),(4,6),(4,7),(4,8), (5,1),(5,2),(5,3),(5,4),(5,5),(5,6),(5,7),(5,8), (6,1),(6,2),(6,3),(6,4),(6,5),(6,6),(6,7),(6,8), (7,1),(7,2),(7,3),(7,4),(7,5),(7,6),(7,7),(7,8), (8,1),(8,2),(8,3),(8,4),(8,5),(8,6),(8,7),(8,8)] This seems like it would be a simple program but I cannot seem to grasp the concepts or at least put t...
5),(4,6),(4,7),(4,8), (5,1),(5,2),(5,3),(5,4),(5,5),(5,6),(5,7),(5,8), (6,1),(6,2),(6,3),(6,4),(6,5),(6,6),(6,7),(6,8), (7,1),(7,2),(7,3),(7,4),(7,5),(7,6),(7,7),(7,8), (8,1),(8,2),(8,3),(8,4),(8,5),(8,6),(8,7),(8,8)] This seems like it would be a simple program but I cannot seem to grasp the concepts or at least put t...
[ 0.0206298828125, 0.0223388671875, 0.0010833740234375, 0.0107421875, -0.0206298828125, 0.03466796875, -0.027587890625, 0.00445556640625, -0.0118408203125, 0.00701904296875, -0.00897216796875, -0.0216064453125, -0.013427734375, 0.00897216796875, -0.0208740234375, -0.006439208984375, -0...
[ 21162, 4, 132, 128191, 247, 108368, 116574, 11516, 17727, 104116, 10461, 21320, 29557, 125592, 104629, 135461, 141670, 16156, 139303, 150643, 129678, 140447, 136555, 151664, 19107, 966, 173664, 109631, 168628, 176129, 136005, 15, 206029, 1019, 1510...
[ 0.25390625, 0.10302734375, 0.029571533203125, 0.28857421875, 0.118896484375, 0.256103515625, 0.255859375, 0.114990234375, 0.142578125, 0.1241455078125, 0.120849609375, 0.130615234375, 0.152587890625, 0.2376708984375, 0.2227783203125, 0.2196044921875, 0.229248046875, 0.0750732421875...
embed
5315486_c0
5315486
prolog
0
Title: prolog question find maximum using negation operator \+ Problem title: prolog question find maximum using negation operator \+ Tags: prolog, negation, max Problem: prolog question find maximum using negation operator \+ I have got some values H, and I would like to find the maximum one using \+, how can i do it?...
prolog question find maximum using negation operator \+ prolog question find maximum using negation operator \+ prolog negation max negation Get prolog question find maximum using negation operator \+ I have got some values H, and I would like to find the maximum one using \+, how can i do it? don't have a clue....plea...
[ -0.0079345703125, 0.00634765625, 0.0198974609375, 0.01116943359375, -0.0091552734375, 0.012451171875, 0.0206298828125, 0.002349853515625, 0.0155029296875, -0.025634765625, 0.0096435546875, 0.0064697265625, -0.005157470703125, -0.0390625, 0.0201416015625, 0.00021648406982421875, -0.00...
[ 502, 4867, 9655, 7413, 38132, 17368, 108, 125682, 39933, 1328, 18389, 20779, 142424, 572, 1884, 1632, 41872, 831, 29786, 4358 ]
[ 0.131591796875, 0.1907958984375, 0.137451171875, 0.09576416015625, 0.2257080078125, 0.03564453125, 0.1744384765625, 0.1634521484375, 0.1839599609375, 0.177978515625, 0.16796875, 0.0268707275390625, 0.1348876953125, 0.1156005859375, 0.0225372314453125, 0.052459716796875, 0.09161376953...
embed
15778952_c0
15778952
prolog
0
Title: How to pattern match an element in a list in prolog? Problem title: How to pattern match an element in a list in prolog? Tags: pattern-matching, prolog, list Problem: How to pattern match an element in a list in prolog? In prolog how can you pattern match an element in a list? For example, if the list was like [...
How to pattern match an element in a list in prolog? How to pattern match an element in a list in prolog? pattern-matching prolog list How How to pattern match an element in a list in prolog? In prolog how can you pattern match an element in a list? For example, if the list was like then you can do something like Thank...
[ -0.00118255615234375, 0.0213623046875, 0.0135498046875, -0.0034332275390625, -0.00836181640625, -0.000827789306640625, -0.01092529296875, 0.02587890625, 0.0174560546875, -0.02685546875, 0.01519775390625, -0.00145721435546875, -0.010986328125, -0.01416015625, 0.00152587890625, -0.005767...
[ 11249, 47, 103510, 14858, 12830, 5303, 502, 4867, 23, 98753, 214, 360, 3642, 831, 1884, 54, 22362 ]
[ 0.069580078125, 0.036834716796875, 0.2490234375, 0.2509765625, 0.159423828125, 0.17041015625, 0.132568359375, 0.2052001953125, 0.055999755859375, 0.2178955078125, 0.0294036865234375, 0.0168304443359375, 0.050140380859375, 0.017791748046875, 0.10687255859375, 0.050384521484375, 0.1843...
embed
66214524_c0
66214524
prolog
0
Title: insert(X, [], [X]). inserting into a last position Problem title: insert(X, [], [X]). inserting into a last position Tags: prolog Problem: insert(X, [], [X]). inserting into a last position this predicate is for inserting a value into a last position in a list: insert(X, [], [X]). insert(X, [H|T], [H|T]):-insert...
insert(X, [], [X]). inserting into a last position insert(X, [], [X]). inserting into a last position prolog insert(X, [], [X]). inserting into a last position this predicate is for inserting a value into a last position in a list: i get 'false', when this query be executed: why, and how to fix this problem.
[ -0.01019287109375, 0.0008087158203125, 0.0162353515625, 0.000194549560546875, -0.0186767578125, 0.0126953125, -0.017578125, -0.0137939453125, 0.005645751953125, -0.006072998046875, 0.035400390625, -0.0228271484375, -0.01263427734375, -0.0111083984375, 0.003509521484375, 0.0125122070312...
[ 183540, 132, 1542, 4, 378, 194, 214, 3934, 4568, 19069, 502, 4867, 10, 903, 1653, 2063, 67, 83, 100, 34292, 23, 5303, 17, 2046, 8710, 184, 3229, 41, 1294, 186, 71924, 15400, 30022, 2967 ]
[ 0.291259765625, 0.02069091796875, 0.127685546875, 0.0111083984375, 0.006195068359375, 0.0157623291015625, 0.041107177734375, 0.166015625, 0.237548828125, 0.2049560546875, 0.12744140625, 0.169921875, 0.019287109375, 0.0780029296875, 0.1844482421875, 0.1873779296875, 0.0841064453125, ...
embed
1720895_c0
1720895
prolog
0
Title: Prolog mystery(c,[a,b,c,d],Z) Problem title: Prolog mystery(c,[a,b,c,d],Z) Tags: prolog Problem: Prolog mystery(c,[a,b,c,d],Z) I think the answer is 3 but I am not sure, can anyone provide some help? Suppose the following two statements are entered into Prolog: mystery(X,[X|L],L). mystery(X,[Y|L],[Y|M]) :- myste...
Prolog mystery(c,[a,b,c,d],Z) Prolog mystery(c,[a,b,c,d],Z) prolog Prolog Prolog mystery(c,[a,b,c,d],Z) I think the answer is 3 but I am not sure, can anyone provide some help? Suppose the following two statements are entered into Prolog: What would Prolog return if one then gives it the following goal?
[ 0.00738525390625, 0.00531005859375, 0.001190185546875, 0.00567626953125, 0.00677490234375, 0.02099609375, -0.01123046875, 0.0120849609375, 0.013916015625, -0.0162353515625, -0.010986328125, -0.00994873046875, 0.00738525390625, -0.0068359375, 0.016845703125, 0.0201416015625, -0.013366...
[ 1250, 4867, 236209, 238, 11, 275, 71, 1511, 16, 132, 502, 5351, 70, 35166, 83, 138, 4358, 121691, 8364, 25632, 6626, 63805, 30957, 3934, 4865, 2806, 30646, 2174, 1632, 76199, 442, 69236 ]
[ 0.2059326171875, 0.2802734375, 0.277099609375, 0.09783935546875, 0.0291748046875, 0.0216827392578125, 0.0662841796875, 0.118408203125, 0.042022705078125, 0.007080078125, 0.09912109375, 0.045654296875, 0.024932861328125, 0.1651611328125, 0.046478271484375, 0.1431884765625, 0.045898437...
embed
23982377_c0
23982377
prolog
0
Title: Define an operator in prolog Problem title: Define an operator in prolog Tags: operators, prolog, iso-prolog Problem: Define an operator in prolog I need to define a new operator that associates in the following way (1 newop 2) / (2 newop) / a The parenthesis were just used to give an understanding of the associ...
Define an operator in prolog Define an operator in prolog operators prolog iso-prolog Define Define an operator in prolog I need to define a new operator that associates in the following way The parenthesis were just used to give an understanding of the associativity of the new op So. Which would be the values for A an...
[ 0.0186767578125, -0.014404296875, 0.001983642578125, 0.01904296875, -0.003265380859375, 0.004669189453125, 0.00872802734375, 0.0189208984375, 0.0177001953125, -0.0167236328125, 0.000537872314453125, -0.01025390625, 0.01019287109375, -0.01385498046875, 0.005279541015625, 0.005126953125,...
[ 262, 64552, 142, 39933, 23, 502, 4867, 13882, 3454, 3871, 61924, 3525, 30699, 1636, 25632, 3917, 49129, 160291, 7, 11814, 100094, 166027, 3760, 233, 1061, 142424, 62, 136, 335, 129745 ]
[ 0.068603515625, 0.196533203125, 0.049224853515625, 0.30859375, 0.0465087890625, 0.1495361328125, 0.2353515625, 0.09326171875, 0.11328125, 0.0253753662109375, 0.1671142578125, 0.0821533203125, 0.1607666015625, 0.0916748046875, 0.07464599609375, 0.0697021484375, 0.0880126953125, 0.12...
embed
35479109_c0
35479109
prolog
0
Title: xUnit export support in PLUnit Problem title: xUnit export support in PLUnit Tags: prolog, xunit, unit-testing, swi-prolog Problem: xUnit export support in PLUnit I'm using plunit package for my prolog unit tests ( SWI-Prolog 7.2 ). run_tests/0 prints the results on console but I would like to export plunit test...
xUnit export support in PLUnit xUnit export support in PLUnit prolog xunit unit-testing swi-prolog PLUnit run_tests xUnit export support in PLUnit I'm using plunit package for my prolog unit tests ( SWI-Prolog 7.2 ). run_tests/0 prints the results on console but I would like to export plunit test results in the xUnit X...
[ 0.030517578125, 0.0201416015625, -0.000370025634765625, -0.004180908203125, -0.0223388671875, 0.0037994384765625, 0.00738525390625, -0.016845703125, 0.0081787109375, 0.02294921875, 0.00007200241088867188, 0.01336669921875, -0.0024871826171875, 0.00148773193359375, 0.0002803802490234375, ...
[ 1022, 85600, 18, 31255, 8060, 23, 33106, 502, 4867, 10438, 6773, 25072, 6954, 2452, 3454, 11675, 17368, 12266, 98169, 109921, 159, 38969, 10752, 134776, 107838, 28412, 50339, 130250, 1884, 47, 3034, 92537, 9384, 2684, 26550, 10723, 28219, 391...
[ 0.10614013671875, 0.2352294921875, 0.0986328125, 0.2471923828125, 0.17431640625, 0.012939453125, 0.1231689453125, 0.0814208984375, 0.1534423828125, 0.0450439453125, 0.208984375, 0.1748046875, 0.1905517578125, 0.10546875, 0.07568359375, 0.1217041015625, 0.06536865234375, 0.136474609...
embed
41747914_c0
41747914
prolog
0
Title: Creating a web based expert system using Prolog Problem title: Creating a web based expert system using Prolog Tags: prolog, expert-system Problem: Creating a web based expert system using Prolog I'm trying to create a web based expert system using prolog for a school project. i know how to use prolog but have n...
Creating a web based expert system using Prolog Creating a web based expert system using Prolog prolog expert-system Prolog Creating Creating a web based expert system using Prolog I'm trying to create a web based expert system using prolog for a school project. i know how to use prolog but have no idea how it can be u...
[ 0.052978515625, 0.017333984375, -0.00897216796875, 0.0089111328125, -0.01031494140625, 0.03271484375, -0.007232666015625, 0.00958251953125, 0.0006256103515625, -0.053466796875, 0.0146484375, -0.0016632080078125, 0.004425048828125, -0.00408935546875, -0.0025482177734375, 0.0009765625, ...
[ 56781, 1916, 1467, 35509, 26808, 5426, 17368, 1250, 4867, 502, 16751, 31577, 28282, 100, 10696, 13452, 3714, 3642, 4527, 1284, 110, 6528, 442, 831, 70622, 35672, 163846, 450 ]
[ 0.1409912109375, 0.05792236328125, 0.144775390625, 0.14697265625, 0.227783203125, 0.2144775390625, 0.08154296875, 0.1717529296875, 0.26318359375, 0.1483154296875, 0.18994140625, 0.07598876953125, 0.148193359375, 0.0482177734375, 0.140380859375, 0.1126708984375, 0.0823974609375, 0.0...
embed
22731856_c0
22731856
prolog
0
Title: How to get current system year in Prolog as a number Problem title: How to get current system year in Prolog as a number Tags: prolog, swi-prolog Problem: How to get current system year in Prolog as a number How to get current system year as a number in prolog. I found this. But it gives the year as a string. to...
How to get current system year in Prolog as a number How to get current system year in Prolog as a number prolog swi-prolog How Prolog Today get_time format_time How to get current system year in Prolog as a number How to get current system year as a number in prolog. I found this. But it gives the year as a string. Th...
[ 0.00555419921875, 0.0002384185791015625, 0.0299072265625, 0.0177001953125, -0.00469970703125, 0.01239013671875, -0.003021240234375, 0.01470947265625, -0.0128173828125, -0.045654296875, -0.00799560546875, 0.028564453125, -0.036865234375, -0.00421142578125, 0.01177978515625, 0.0046081542...
[ 11249, 47, 2046, 43581, 5426, 6602, 23, 1250, 4867, 237, 14012, 502, 2452, 3454, 38396, 6032, 9384, 14037, 76199, 79315 ]
[ 0.04351806640625, 0.04229736328125, 0.103271484375, 0.195068359375, 0.19677734375, 0.2337646484375, 0.0625, 0.1494140625, 0.2254638671875, 0.06591796875, 0.163818359375, 0.1334228515625, 0.1148681640625, 0.105224609375, 0.1885986328125, 0.130859375, 0.1199951171875, 0.0237426757812...
embed
15719988_c0
15719988
prolog
0
Title: Get command line arguments in prolog Problem title: Get command line arguments in prolog Tags: swi-prolog, command-line-arguments, prolog Problem: Get command line arguments in prolog Is there a standard function in prolog to get the arguments the compiled prolog executable was called with? get_arguments/0 or so...
Get command line arguments in prolog Get command line arguments in prolog swi-prolog command-line-arguments prolog Get get_arguments Get command line arguments in prolog Is there a standard function in prolog to get the arguments the compiled prolog executable was called with? get_arguments/0 or something like that? If...
[ 0.01043701171875, 0.0040283203125, -0.00131988525390625, 0.0111083984375, -0.0125732421875, 0.0205078125, 0.01434326171875, 0.0022430419921875, 0.011962890625, -0.05419921875, 0.00958251953125, 0.0033111572265625, -0.034423828125, 0.00311279296875, 0.020263671875, -0.000226974487304687...
[ 20779, 75101, 13315, 10750, 7, 23, 502, 4867, 2452, 3454, 2256, 155937, 2046, 5570, 32354, 375, 5974, 71924, 2886, 35839, 678, 107838 ]
[ 0.08441162109375, 0.1668701171875, 0.10577392578125, 0.2437744140625, 0.0751953125, 0.036407470703125, 0.1220703125, 0.1968994140625, 0.1282958984375, 0.095947265625, 0.0494384765625, 0.25732421875, 0.0943603515625, 0.1517333984375, 0.13623046875, 0.013946533203125, 0.13671875, 0.0...
embed
5850937_c0
5850937
prolog
0
Title: Prolog element in lists replacement Problem title: Prolog element in lists replacement Tags: list, prolog, replace Problem: Prolog element in lists replacement Hi i was wondering if you could help me out with this From programming in Prolog: write Prolog script for replacement any given element in lists by an an...
Prolog element in lists replacement Prolog element in lists replacement list prolog replace Prolog Prolog element in lists replacement Hi i was wondering if you could help me out with this From programming in Prolog: write Prolog script for replacement any given element in lists by an another given element. For example...
[ -0.0072021484375, 0.019775390625, 0.00408935546875, 0.0052490234375, -0.01519775390625, 0.0133056640625, -0.0101318359375, 0.0078125, 0.00021839141845703125, 0.005218505859375, 0.0113525390625, -0.00885009765625, -0.0189208984375, -0.0191650390625, 0.0023651123046875, -0.00860595703125...
[ 1250, 4867, 12830, 23, 5303, 7, 91995, 674, 502, 149016, 4358, 56037, 33022, 26499, 2499, 34475, 390, 15700, 27781, 129745 ]
[ 0.170654296875, 0.2471923828125, 0.1796875, 0.049957275390625, 0.1915283203125, 0.05780029296875, 0.1552734375, 0.08416748046875, 0.13525390625, 0.0301971435546875, 0.03228759765625, 0.05426025390625, 0.052337646484375, 0.146240234375, 0.00920867919921875, 0.0250091552734375, 0.04241...
embed
13435137_c0
13435137
prolog
0
Title: Prolog - add to each lists element Problem title: Prolog - add to each lists element Tags: prolog, list, recursion Problem: Prolog - add to each lists element I'm learning swi Prolog and I wanted to create predicate that adds +2 for each element. So I wrote something like this: addUp([],_). addUp([H|T],R):-addUp...
Prolog - add to each lists element Prolog - add to each lists element prolog list recursion Prolog is_list Prolog - add to each lists element I'm learning swi Prolog and I wanted to create predicate that adds +2 for each element. So I wrote something like this: But it always returns false. Why?
[ -0.0005035400390625, 0.0191650390625, 0.01165771484375, 0.002532958984375, -0.0189208984375, 0.03662109375, 0.00494384765625, 0.01019287109375, 0.04638671875, -0.039306640625, 0.0205078125, -0.0263671875, 0.005035400390625, 0.015869140625, 0.02294921875, -0.00933837890625, 0.02185058...
[ 1250, 4867, 15190, 47, 12638, 5303, 7, 12830, 502, 195625, 83, 6562, 52080, 2452, 36663, 28282, 1653, 2063, 67, 94369, 54397, 11343, 30646, 98320 ]
[ 0.163330078125, 0.263427734375, 0.15673828125, 0.0701904296875, 0.1387939453125, 0.1856689453125, 0.041717529296875, 0.1768798828125, 0.11822509765625, 0.157958984375, 0.10247802734375, 0.221923828125, 0.0243072509765625, 0.1280517578125, 0.02392578125, 0.06256103515625, 0.1317138671...
embed
27111317_c0
27111317
prolog
0
Title: Find length of a list of lists Problem title: Find length of a list of lists Tags: prolog, nested-lists Problem: Find length of a list of lists I wrote a predicate which should calculate the length of a list: my_length([],0). my_length([_|L],N) :- my_length(L,N1), N is N1 + 1. Can anyone help in adjusting this s...
Find length of a list of lists Find length of a list of lists prolog nested-lists Find my_length Find length of a list of lists I wrote a predicate which should calculate the length of a list: Can anyone help in adjusting this so that it will take a list of lists and output the total number of elements in the list of l...
[ 0.002899169921875, 0.03173828125, 0.004425048828125, 0.007354736328125, -0.003570556640625, 0.01611328125, 0.01055908203125, 0.01080322265625, 0.03173828125, -0.060791015625, 0.0130615234375, -0.0189208984375, 0.0162353515625, 0.028564453125, 0.0213623046875, 0.001739501953125, 0.023...
[ 26040, 140909, 111, 5303, 502, 4867, 8512, 71, 6562, 759, 23986, 927, 10, 7, 54397, 1653, 2063, 67, 5608, 74481, 4171, 35672, 4358, 126596, 5646, 140992, 3622, 14012, 80854, 23 ]
[ 0.1270751953125, 0.211181640625, 0.09197998046875, 0.2203369140625, 0.10821533203125, 0.1522216796875, 0.162841796875, 0.042144775390625, 0.180419921875, 0.113525390625, 0.1751708984375, 0.059234619140625, 0.0077056884765625, 0.08099365234375, 0.016021728515625, 0.09228515625, 0.0932...
embed
71154574_c0
71154574
prolog
0
Title: How can I define Prolog rule to achieve bidirectional query? Problem title: How can I define Prolog rule to achieve bidirectional query? Tags: prolog Problem: How can I define Prolog rule to achieve bidirectional query? I have defined double(X,Y) :- Y is X*2. and when I query double(3,Y) , I get Y=6 . But when I...
How can I define Prolog rule to achieve bidirectional query? How can I define Prolog rule to achieve bidirectional query? prolog How Prolog How can I define Prolog rule to achieve bidirectional query? I have defined and when I query double(3,Y) , I get Y=6 . But when I query double(X,6), I cannot get X=3 . Is it possib...
[ 0.029052734375, 0.0194091796875, 0.006988525390625, 0.0115966796875, 0.01263427734375, 0.0257568359375, -0.0035247802734375, -0.00005650520324707031, 0.001434326171875, -0.0172119140625, 0.011962890625, -0.01708984375, -0.015380859375, -0.0230712890625, 0.0106201171875, 0.014892578125,...
[ 11249, 831, 87, 61924, 1250, 4867, 79986, 69307, 333, 80581, 110117, 41, 1294, 47, 502, 765, 3229, 41929, 86827, 4, 1723, 16, 2046, 990, 1369, 910, 4966, 1542, 59690, 53418, 1193, 76067, 6, 7722, 43240, 23, 15044, 48225 ]
[ 0.07293701171875, 0.06793212890625, 0.061279296875, 0.208740234375, 0.1842041015625, 0.279052734375, 0.22119140625, 0.1376953125, 0.20263671875, 0.1790771484375, 0.1524658203125, 0.183837890625, 0.10693359375, 0.03546142578125, 0.12646484375, 0.0087890625, 0.0301513671875, 0.152221...
embed
34288962_c1
34288962
prolog
1
),ziekte(_,heartburn)],[0900,1100]), sublist([ziekte(Billy,shingles),ziekte(Fernando,shingles)],Appointments). ziekte(_,back-pain,Y) :- ziekte(Zachary,_,X), X > Y. ziekte(_,hip-pain,0900) :- ziekte(_,heartburn,1100). ziekte(_,hip-pain,1000) :- ziekte(_,heartburn,1200). I find myself having a hard time getting my head a...
),ziekte(_,heartburn)],[0900,1100]), sublist([ziekte(Billy,shingles),ziekte(Fernando,shingles)],Appointments). ziekte(_,back-pain,Y) :- ziekte(Zachary,_,X), X > Y. ziekte(_,hip-pain,0900) :- ziekte(_,heartburn,1100). ziekte(_,hip-pain,1000) :- ziekte(_,heartburn,1200). I find myself having a hard time getting my head a...
[ 0.037353515625, 0.00738525390625, 0.01409912109375, 0.009521484375, -0.0213623046875, 0.016845703125, -0.0272216796875, 0.01104736328125, 0.01409912109375, -0.0240478515625, 0.01116943359375, 0.015625, -0.0024261474609375, -0.006134033203125, -0.004791259765625, 0.008544921875, 0.034...
[ 247, 5556, 17419, 106013, 105236, 6463, 7049, 3559, 1614, 6562, 192948, 53, 54700, 1577, 4688, 557, 47677, 38496, 138496, 454, 12620, 74908, 1723, 15772, 16737, 9254, 1542, 1193, 990, 75577, 9, 143842, 77495, 14105, 96740, 7413, 19441, 7941, ...
[ 0.052978515625, 0.0902099609375, 0.1163330078125, 0.07110595703125, 0.1724853515625, 0.10107421875, 0.12646484375, 0.1209716796875, 0.1317138671875, 0.197021484375, 0.09521484375, 0.1806640625, 0.1187744140625, 0.14111328125, 0.0224456787109375, 0.07366943359375, 0.016021728515625, ...
embed
26089077_c0
26089077
prolog
0
Title: how to assign one list to a variable in prolog? Problem title: how to assign one list to a variable in prolog? Tags: prolog Problem: how to assign one list to a variable in prolog? I want to append([],C,C) where C is a list containing some elements . Is it possible? I will append some list in C containing elemen...
how to assign one list to a variable in prolog? how to assign one list to a variable in prolog? prolog how to assign one list to a variable in prolog? I want to append([],C,C) where C is a list containing some elements . Is it possible? I will append some list in C containing elements append (Found,C,C) if other condit...
[ 0.0167236328125, 0.005767822265625, 0.0203857421875, 0.021728515625, -0.0035400390625, -0.01275634765625, -0.005279541015625, 0.0194091796875, 0.0205078125, -0.004608154296875, 0.0115966796875, -0.018798828125, -0.003143310546875, 0.00830078125, 0.012451171875, -0.0128173828125, 0.00...
[ 3642, 47, 95486, 1632, 5303, 77336, 23, 502, 4867, 10, 3444, 114689, 71, 441, 313, 70541, 80854, 7722, 7030, 35431, 29568, 4343, 2704, 34292, 391 ]
[ 0.075927734375, 0.102294921875, 0.2376708984375, 0.1341552734375, 0.2379150390625, 0.269775390625, 0.048980712890625, 0.145263671875, 0.2139892578125, 0.022308349609375, 0.04638671875, 0.0860595703125, 0.0672607421875, 0.044036865234375, 0.048858642578125, 0.048431396484375, 0.104431...
embed
26764133_c0
26764133
prolog
0
Title: Prolog: sort sublist in list Problem title: Prolog: sort sublist in list Tags: sublist, prolog, list Problem: Prolog: sort sublist in list How to make it? I need something like this: ?- elsort([d,s,a,[r,t,h]],X). X = [a, d, s, [h, r, t]]. But i get : ?- elsort([d,s,a,[r,t,h]],X). X = [a, d, s, [r, t, h]]. My cod...
Prolog: sort sublist in list Prolog: sort sublist in list sublist prolog list Prolog Prolog: sort sublist in list How to make it? I need something like this: But i get : My code: thanks for helping.
[ 0.019775390625, 0.00096893310546875, 0.0201416015625, -0.009765625, -0.007232666015625, 0.0137939453125, -0.0128173828125, -0.00179290771484375, 0.0030059814453125, 0.0106201171875, 0.0017242431640625, 0.0184326171875, -0.01141357421875, 0.00115203857421875, 0.003448486328125, -0.00671...
[ 1250, 4867, 12096, 1614, 6562, 23, 5303, 502, 47, 3249, 442, 3871, 1884, 903, 4966, 2046, 2646, 18151, 45458, 120592 ]
[ 0.15869140625, 0.231201171875, 0.22802734375, 0.2174072265625, 0.2445068359375, 0.08685302734375, 0.185546875, 0.09552001953125, 0.0140838623046875, 0.0897216796875, 0.0209503173828125, 0.0760498046875, 0.056884765625, 0.033905029296875, 0.0052490234375, 0.03717041015625, 0.020446777...
embed
33626839_c0
33626839
prolog
0
Title: Can&#x27;t run a simple Prolog program Problem title: Can&#x27;t run a simple Prolog program Tags: logic, prolog Problem: Can't run a simple Prolog program I'm trying to find out what will be the output of this program: p(X):-p(Y). p(a). p(b). p(c). and goal ?-p(Z) So I've tried to put into online interpreter: p...
Can&#x27;t run a simple Prolog program Can&#x27;t run a simple Prolog program logic prolog Can Prolog Can't run a simple Prolog program I'm trying to find out what will be the output of this program: So I've tried to put into online interpreter: But nothing happend. Where is the problem? I'm very new to Prolog.
[ 0.0208740234375, 0.0150146484375, 0.0081787109375, 0.0247802734375, -0.0220947265625, 0.018310546875, 0.0098876953125, -0.0089111328125, 0.0030364990234375, -0.03369140625, -0.00151824951171875, -0.0003376007080078125, -0.013671875, -0.005157470703125, 0.0155029296875, 0.0072021484375,...
[ 4171, 3768, 18, 11675, 8781, 1250, 4867, 1528, 62775, 502, 140992, 37842, 1118, 29481, 56, 33720, 53383, 2967, 4552, 3525 ]
[ 0.089599609375, 0.044677734375, 0.07696533203125, 0.1634521484375, 0.1806640625, 0.192626953125, 0.276123046875, 0.1651611328125, 0.143798828125, 0.1273193359375, 0.0927734375, 0.0589599609375, 0.109375, 0.127197265625, 0.0875244140625, 0.06591796875, 0.013916015625, 0.061981201171...
embed
29196523_c0
29196523
prolog
0
Title: Is there a prolog that can be run in JavaScript in the browser Problem title: Is there a prolog that can be run in JavaScript in the browser Tags: javascript, prolog Problem: Is there a prolog that can be run in JavaScript in the browser I am looking for a version of prolog that can be run in JavaScript in a bro...
Is there a prolog that can be run in JavaScript in the browser Is there a prolog that can be run in JavaScript in the browser javascript prolog JavaScript Is there a prolog that can be run in JavaScript in the browser I am looking for a version of prolog that can be run in JavaScript in a browser. That is I want to be ...
[ 0.02294921875, 0.0224609375, 0.005462646484375, -0.004364013671875, -0.004241943359375, 0.01507568359375, 0.00130462646484375, 0.00921630859375, -0.01031494140625, -0.053466796875, 0.01556396484375, 0.000827789306640625, -0.02587890625, -0.00738525390625, 0.03466796875, 0.0048217773437...
[ 2071, 2685, 10, 502, 4867, 450, 831, 186, 11675, 23, 17925, 31842, 136951, 16487, 11389, 3444, 19048, 4527, 352, 13482, 62775, 41018, 38415 ]
[ 0.025543212890625, 0.059814453125, 0.04949951171875, 0.1839599609375, 0.2646484375, 0.024444580078125, 0.09429931640625, 0.035888671875, 0.152099609375, 0.0843505859375, 0.214111328125, 0.1978759765625, 0.1602783203125, 0.0155181884765625, 0.0570068359375, 0.0072021484375, 0.00784301...
embed
56691103_c0
56691103
prolog
0
Title: How to remove solutions from a Prolog program Problem title: How to remove solutions from a Prolog program Tags: prolog Problem: How to remove solutions from a Prolog program Given this program: a(1). a(2). a(3). b(1). b(2). b(3). ab(A, B) :- a(A), b(B). This query returns 9 items: ab(A, B). How do I remove some...
How to remove solutions from a Prolog program How to remove solutions from a Prolog program prolog a How Prolog How to remove solutions from a Prolog program Given this program: This query returns 9 items: How do I remove some specific rows, for example the rows (1,2) and (3,1) and get this result?
[ 0.00052642822265625, 0.0167236328125, 0.00933837890625, 0.03515625, -0.0281982421875, -0.005401611328125, -0.0150146484375, 0.0076904296875, -0.00140380859375, 0.00180816650390625, -0.00909423828125, 0.00099945068359375, -0.015380859375, -0.00830078125, 0.00732421875, -0.0037841796875,...
[ 11249, 87388, 51347, 1295, 1250, 4867, 1528, 502, 10, 41, 1294, 30646, 483, 55769, 29458, 15555, 10461, 16750 ]
[ 0.08544921875, 0.19580078125, 0.2347412109375, 0.1031494140625, 0.1844482421875, 0.24267578125, 0.1800537109375, 0.137939453125, 0.02801513671875, 0.057159423828125, 0.035797119140625, 0.06768798828125, 0.09869384765625, 0.1046142578125, 0.061920166015625, 0.1824951171875, 0.02548217...
embed
9759264_c0
9759264
prolog
0
Title: How to read an array &quot;list&quot; &amp; print it in prolog? Problem title: How to read an array &quot;list&quot; &amp; print it in prolog? Tags: prolog Problem: How to read an array "list" & print it in prolog? How to read an array "list" & print it in prolog ? I need to :- Prompt user to insert an array The...
How to read an array &quot;list&quot; &amp; print it in prolog? How to read an array &quot;list&quot; &amp; print it in prolog? prolog How How to read an array "list" & print it in prolog? How to read an array "list" & print it in prolog ? I need to :- Prompt user to insert an array The user some how tells me that He's...
[ 0.00015544891357421875, -0.01519775390625, -0.00970458984375, 0.00799560546875, -0.025634765625, 0.025390625, -0.00122833251953125, 0.006500244140625, 0.0027008056640625, -0.0341796875, 0.003875732421875, -0.00634765625, -0.021728515625, -0.02197265625, 0.005462646484375, -0.0073852539...
[ 11249, 47, 12301, 10298, 53, 6562, 25133, 28412, 442, 23, 502, 4867, 142, 619, 3871, 1250, 2676, 18, 38937, 183540, 3642, 14192, 163, 450, 1529, 7, 122799, 5351, 1653, 2063 ]
[ 0.0802001953125, 0.035858154296875, 0.23486328125, 0.204833984375, 0.1513671875, 0.257080078125, 0.0411376953125, 0.2291259765625, 0.055938720703125, 0.0693359375, 0.18115234375, 0.2430419921875, 0.019683837890625, 0.0859375, 0.0142364501953125, 0.010162353515625, 0.09576416015625, ...
embed
40940791_c0
40940791
prolog
0
Title: Prolog multiply elements of a list Problem title: Prolog multiply elements of a list Tags: prolog Problem: Prolog multiply elements of a list How can I get my Prolog program to output 1*a*b*c If I input simplify([1,a,b,c],S). ? At the moment the result would be 1*(a*(b*c)). simplify(S,S1):- s(S,S1). s([H|T],C) :...
Prolog multiply elements of a list Prolog multiply elements of a list prolog Prolog Prolog multiply elements of a list How can I get my Prolog program to output If I input simplify([1,a,b,c],S). ? At the moment the result would be Thanks for your help.
[ 0.01220703125, 0.0186767578125, 0.004791259765625, 0.027587890625, -0.006744384765625, 0.00921630859375, -0.01470947265625, 0.003692626953125, 0.00848388671875, -0.016845703125, 0.01483154296875, -0.01361083984375, -0.01611328125, -0.00946044921875, -0.0067138671875, 0.0032501220703125...
[ 1250, 4867, 6024, 62479, 80854, 111, 5303, 502, 831, 2046, 1528, 47, 140992, 107730, 112892, 18929, 11, 275, 238, 294, 3095, 16750, 4358 ]
[ 0.1773681640625, 0.2489013671875, 0.137451171875, 0.15185546875, 0.2066650390625, 0.025299072265625, 0.1864013671875, 0.14208984375, 0.0208282470703125, 0.040863037109375, 0.1505126953125, 0.01103973388671875, 0.1541748046875, 0.149658203125, 0.180908203125, 0.1876220703125, 0.009132...
embed
74593234_c0
74593234
prolog
0
Title: Prolog assignment fails Problem title: Prolog assignment fails Tags: swi-prolog, prolog Problem: Prolog assignment fails I am trying to build a simple greatest common divisor (cmmdc) in prolog and, for the following code, I get a fail on newY = X mod Y. Can anyone help me out? % cmmdc(X: intreg, Y: intreg, Ret: ...
Prolog assignment fails Prolog assignment fails swi-prolog prolog Prolog Ret Prolog assignment fails I am trying to build a simple greatest common divisor (cmmdc) in prolog and, for the following code, I get a fail on newY = X mod Y. Can anyone help me out?
[ -0.01263427734375, 0.005157470703125, 0.033935546875, 0.020751953125, 0.019775390625, 0.0228271484375, 0.00176239013671875, -0.0242919921875, 0.00872802734375, -0.0037384033203125, -0.0024261474609375, -0.0306396484375, 0.0048828125, -0.01470947265625, 0.01007080078125, -0.018188476562...
[ 1250, 4867, 95486, 674, 35782, 2452, 3454, 502, 47131, 31577, 45367, 8781, 158036, 39210, 45, 51858, 3931, 54686, 238, 25632, 18151, 98, 3525, 1723, 2203, 1193, 2811, 990 ]
[ 0.1600341796875, 0.25634765625, 0.1849365234375, 0.0262603759765625, 0.197509765625, 0.13427734375, 0.11395263671875, 0.1170654296875, 0.1778564453125, 0.0101318359375, 0.064697265625, 0.0789794921875, 0.1160888671875, 0.119384765625, 0.112060546875, 0.189697265625, 0.071044921875, ...
embed
3284002_c0
3284002
prolog
0
Title: generation of positive numbers in a special case Problem title: generation of positive numbers in a special case Tags: prolog Problem: generation of positive numbers in a special case i am searching for a possibility to transform this code zero(0). positive(X) :- \+ zero(X). so that calls like ?- positive(X). wi...
generation of positive numbers in a special case generation of positive numbers in a special case prolog generation of positive numbers in a special case i am searching for a possibility to transform this code so that calls like will generate values for X. Actually only calls with specific values for X are tested corre...
[ -0.006591796875, -0.00185394287109375, 0.02197265625, -0.0274658203125, -0.01043701171875, -0.00396728515625, 0.019287109375, 0.0004825592041015625, -0.006866455078125, -0.023681640625, -0.004058837890625, 0.020263671875, -0.02978515625, 0.00482177734375, 0.035400390625, 0.010314941406...
[ 58093, 24491, 101935, 23, 5361, 7225, 111, 502, 4867, 157318, 207116, 27198, 18151, 11782, 1884, 1221, 139392, 142424, 100, 1193, 192728, 7, 29458, 3034, 26785, 1284, 110, 831 ]
[ 0.2078857421875, 0.2178955078125, 0.17236328125, 0.0711669921875, 0.1873779296875, 0.2049560546875, 0.0243988037109375, 0.1256103515625, 0.1751708984375, 0.059906005859375, 0.075439453125, 0.1524658203125, 0.1448974609375, 0.14013671875, 0.0765380859375, 0.0165863037109375, 0.1824951...
embed
37110655_c0
37110655
prolog
0
Title: unexpected error &quot;! segmentation violation&quot; Problem title: unexpected error &quot;! segmentation violation&quot; Tags: prolog, sicstus-prolog Problem: unexpected error "! segmentation violation" Recently , when I try to compile my project , sometimes an unexpected error has appeared , error : % Executi...
unexpected error &quot;! segmentation violation&quot; unexpected error &quot;! segmentation violation&quot; prolog sicstus-prolog Execution source_info unexpected error "! segmentation violation" Recently , when I try to compile my project , sometimes an unexpected error has appeared , error : Is there an explanation f...
[ 0.01171875, 0.007537841796875, -0.0086669921875, 0.010009765625, -0.003173828125, 0.013916015625, -0.0205078125, 0.02294921875, -0.0050048828125, -0.029052734375, 0.00830078125, 0.00421142578125, -0.002777099609375, 0.00836181640625, 0.0240478515625, -0.00823974609375, -0.00242614746...
[ 241957, 18499, 41502, 38, 33180, 2320, 200265, 502, 4867, 26536, 18253, 3454, 211603, 31344, 7319, 169549, 538, 6, 3229, 9790, 9969, 1340, 759, 13452, 68018, 1556, 118775, 152, 2071, 2685, 142, 187136, 100, 2367, 96276 ]
[ 0.256591796875, 0.2188720703125, 0.00609588623046875, 0.12164306640625, 0.2646484375, 0.11395263671875, 0.23974609375, 0.14013671875, 0.2120361328125, 0.101806640625, 0.2276611328125, 0.12939453125, 0.1617431640625, 0.1990966796875, 0.137939453125, 0.01541900634765625, 0.010627746582...
embed
69910185_c0
69910185
prolog
0
Title: return first two element and last two element from the list Problem title: return first two element and last two element from the list Tags: prolog Problem: return first two element and last two element from the list can someone help me with this, Prolog language find the first two-element and the last two eleme...
return first two element and last two element from the list return first two element and last two element from the list prolog the my_list return first two element and last two element from the list can someone help me with this, Prolog language find the first two-element and the last two elements from the list the ans...
[ 0.010498046875, -0.00250244140625, 0.004791259765625, 0.006866455078125, -0.0076904296875, 0.017333984375, -0.0107421875, 0.01507568359375, 0.0303955078125, -0.03564453125, 0.0299072265625, -0.0096435546875, 0.0012664794921875, 0.004974365234375, -0.000278472900390625, -0.0011444091796...
[ 30646, 5117, 6626, 12830, 136, 4568, 1295, 5303, 502, 4867, 70, 759, 6562, 4358, 1250, 46876, 7413, 62766, 80854, 35166 ]
[ 0.2042236328125, 0.14599609375, 0.2220458984375, 0.213134765625, 0.1136474609375, 0.1978759765625, 0.11370849609375, 0.1748046875, 0.1461181640625, 0.22314453125, 0.0357666015625, 0.141357421875, 0.22216796875, 0.07049560546875, 0.1448974609375, 0.1375732421875, 0.1346435546875, 0....
embed
43819830_c0
43819830
prolog
0
Title: Relation chain in prolog Problem title: Relation chain in prolog Tags: prolog Problem: Relation chain in prolog father(Father,Child). mother(Mother,Child). { father(Raja,Raj), mother(Rani, Roop) } In relation database how to answer questions like- “How is X related to Y?” , Eg - how to write rule for "How Raj is...
Relation chain in prolog Relation chain in prolog prolog Relation Father Child Mother Raja Raj Rani Roop Relation chain in prolog In relation database how to answer questions like- “How is X related to Y?” , Eg - how to write rule for "How Raj is related to Raja" , so that answer would be Raja is Raj's father.
[ 0.003631591796875, 0.0142822265625, -0.00946044921875, 0.0281982421875, 0.002197265625, 0.00185394287109375, -0.011962890625, 0.003265380859375, 0.01165771484375, -0.042236328125, -0.0002593994140625, -0.00098419189453125, -0.022705078125, 0.004150390625, 0.0118408203125, 0.00433349609...
[ 116822, 121293, 23, 502, 4867, 160960, 123829, 115217, 19270, 16930, 144102, 2777, 2146, 41911, 63399, 3642, 47, 35166, 17582, 81826, 83, 1193, 62548, 990, 33022, 79986, 6, 186, 7, 67373 ]
[ 0.232177734375, 0.23193359375, 0.059539794921875, 0.153564453125, 0.2078857421875, 0.160888671875, 0.1290283203125, 0.139892578125, 0.2318115234375, 0.2271728515625, 0.2132568359375, 0.1365966796875, 0.185546875, 0.223876953125, 0.1617431640625, 0.0250701904296875, 0.1036376953125, ...
embed
23009073_c0
23009073
prolog
0
Title: Big ontology based on rules Problem title: Big ontology based on rules Tags: rules, prolog, ontology Problem: Big ontology based on rules Could someone tell me where I can find an ontology based on rules, not an OWL one. It can be a Prolog one, or similar. The ontology should have between 10.000 and 100.000 rule...
Big ontology based on rules Big ontology based on rules rules prolog ontology Big Big ontology based on rules Could someone tell me where I can find an ontology based on rules, not an OWL one. It can be a Prolog one, or similar. The ontology should have between 10.000 and 100.000 rules in size, or even more. The maximu...
[ 0.004058837890625, 0.02392578125, 0.00994873046875, -0.0027313232421875, 0.01312255859375, -0.00421142578125, 0.0098876953125, 0.00055694580078125, 0.01153564453125, -0.03759765625, 0.0159912109375, -0.0283203125, 0.0035247802734375, -0.00518798828125, 0.018310546875, 0.02197265625, ...
[ 14195, 3283, 25443, 35509, 98, 91736, 502, 4867, 191147, 22008, 14192, 163, 7440, 87, 831, 7413, 142, 959, 180, 181280, 1632, 10, 1250, 21373, 5608, 765, 17721, 38300, 136, 50396, 13267, 1286, 38132, 17475, 83, 4552, 5526, 15440 ]
[ 0.2020263671875, 0.21728515625, 0.2333984375, 0.154541015625, 0.113037109375, 0.2626953125, 0.1224365234375, 0.216064453125, 0.02032470703125, 0.0283203125, 0.0833740234375, 0.051544189453125, 0.0948486328125, 0.01409912109375, 0.09527587890625, 0.1580810546875, 0.08087158203125, 0...
embed
48632970_c0
48632970
prolog
0
Title: Prolog : C-style constant OR alias? Problem title: Prolog : C-style constant OR alias? Tags: alias, prolog, constants Problem: Prolog : C-style constant OR alias? Is there a way to define/declare constants/alias in Prolog. I have a atom that i use often. I want to declare it once and later if I decide to change ...
Prolog : C-style constant OR alias? Prolog : C-style constant OR alias? alias prolog constants Prolog C-style BLAH Prolog : C-style constant OR alias? Is there a way to define/declare constants/alias in Prolog. I have a atom that i use often. I want to declare it once and later if I decide to change it to do it in one ...
[ 0.038818359375, 0.024658203125, 0.0164794921875, -0.004241943359375, 0.00836181640625, 0.01495361328125, 0.000060558319091796875, 0.0245361328125, 0.0020599365234375, -0.0189208984375, -0.0167236328125, 0.0172119140625, -0.01025390625, -0.00982666015625, 0.0174560546875, 0.022094726562...
[ 1250, 4867, 313, 9, 40946, 53697, 33172, 55109, 32, 152, 502, 335, 47082, 2071, 2685, 10, 3917, 47, 61924, 50718, 38103, 64, 41763, 7, 23, 765, 34627, 17, 4527, 27983, 3444, 159978, 442, 24145, 14432, 28288, 15549, 1632, 11001, 3687 ]
[ 0.1956787109375, 0.278564453125, 0.156005859375, 0.03009033203125, 0.25390625, 0.25048828125, 0.1182861328125, 0.291259765625, 0.00225830078125, 0.006683349609375, 0.1436767578125, 0.048980712890625, 0.21435546875, 0.005859375, 0.006195068359375, 0.0106201171875, 0.0948486328125, 0...
embed
19892082_c0
19892082
prolog
0
Title: How count in Datalog? Problem title: How count in Datalog? Tags: prolog, datalog Problem: How count in Datalog? I have this DB: LABORATORY(LabNumber, SeatsNumber) RESERVATION(LabNumber, ProfName, Date) PROF(ProfName, Subject ,#Reservation) How can I do this query in PROLOG(DATALOG) ? Find PROFessor's name who ma...
How count in Datalog? How count in Datalog? prolog datalog How Datalog LABORATORY LabNumber SeatsNumber RESERVATION ProfName Date PROF Subject PROLOG How count in Datalog? I have this DB: How can I do this query in PROLOG(DATALOG) ? Find PROFessor's name who made more reservations
[ 0.0233154296875, 0.01251220703125, 0.000766754150390625, 0.0234375, -0.005950927734375, 0.002685546875, -0.0133056640625, -0.006591796875, 0.0164794921875, -0.052734375, -0.0146484375, -0.03369140625, 0.004730224609375, -0.0086669921875, 0.000293731689453125, 0.005584716796875, -0.00...
[ 11249, 54529, 23, 11809, 4867, 32, 502, 2053, 190770, 208230, 21488, 18444, 26278, 503, 9069, 116808, 11739, 163612, 25512, 10514, 919, 94341, 47510, 57976, 903, 41, 1294, 17758, 26040, 90, 4970, 9351, 7228, 1286, 18433, 5256 ]
[ 0.1375732421875, 0.24658203125, 0.12347412109375, 0.12188720703125, 0.226318359375, 0.003116607666015625, 0.1043701171875, 0.052886962890625, 0.10308837890625, 0.072265625, 0.0623779296875, 0.028533935546875, 0.04681396484375, 0.1258544921875, 0.023223876953125, 0.1231689453125, 0.09...
embed
9182451_c0
9182451
prolog
0
Title: What&#x27;s the difference between Prolog rules and queries? Problem title: What&#x27;s the difference between Prolog rules and queries? Tags: rules, prolog Problem: What's the difference between Prolog rules and queries? I'm new to logical programming and find it difficult to understand the difference between r...
What&#x27;s the difference between Prolog rules and queries? What&#x27;s the difference between Prolog rules and queries? rules prolog What Prolog What's the difference between Prolog rules and queries? I'm new to logical programming and find it difficult to understand the difference between rules and queries, I feel t...
[ 0.0286865234375, 0.01708984375, 0.0011749267578125, 0.016357421875, 0.00115966796875, 0.030029296875, -0.0018157958984375, -0.006927490234375, -0.00090789794921875, -0.014404296875, -0.0037384033203125, -0.041259765625, -0.0025634765625, 0.0086669921875, -0.00054931640625, 0.0125732421...
[ 4865, 3768, 70, 60212, 17721, 1250, 4867, 91736, 136, 41, 10484, 32, 502, 3525, 62775, 56037, 449, 7413, 34844, 28219, 12319, 1836, 621, 198343, 5701, 4358, 17306, 40383, 77947 ]
[ 0.028076171875, 0.045562744140625, 0.05279541015625, 0.1844482421875, 0.0972900390625, 0.17822265625, 0.262939453125, 0.206787109375, 0.08795166015625, 0.1712646484375, 0.2138671875, 0.01043701171875, 0.1507568359375, 0.00494384765625, 0.09478759765625, 0.087890625, 0.0220947265625, ...
embed
71785719_c0
71785719
prolog
0
Title: How to unify a term&#x27;s operator in Prolog? Problem title: How to unify a term&#x27;s operator in Prolog? Tags: prolog Problem: How to unify a term's operator in Prolog? I can unify operands in SWI-Prolog, for example: ?- +(X,Y) = 1 + 2. X = 1, Y = 2. but how to unify an operator? ?- Op(X,Y) = 1 + 2. ERROR: S...
How to unify a term&#x27;s operator in Prolog? How to unify a term&#x27;s operator in Prolog? prolog How Prolog ERROR Syntax Operator How to unify a term's operator in Prolog? I can unify operands in SWI-Prolog, for example: but how to unify an operator? I hope Prolog to return Thanks.
[ 0.027587890625, 0.0186767578125, 0.0235595703125, 0.01068115234375, 0.0021514892578125, -0.017822265625, 0.01007080078125, 0.016845703125, -0.00482177734375, -0.0296630859375, 0.000530242919921875, 0.002655029296875, 0.0157470703125, -0.01611328125, -0.0091552734375, -0.003829956054687...
[ 11249, 47, 51, 40383, 13579, 3768, 7, 39933, 23, 1250, 4867, 502, 151206, 24638, 19010, 86531, 150922, 10, 831, 6264, 2208, 159, 38969, 10752, 3642, 142, 30646 ]
[ 0.0948486328125, 0.044952392578125, 0.1627197265625, 0.1943359375, 0.2259521484375, 0.08929443359375, 0.023101806640625, 0.2734375, 0.06646728515625, 0.1480712890625, 0.244873046875, 0.08990478515625, 0.111572265625, 0.12451171875, 0.037017822265625, 0.126953125, 0.2156982421875, 0...
embed
28081613_c0
28081613
prolog
0
Title: prolog relation and comparison Problem title: prolog relation and comparison Tags: prolog Problem: prolog relation and comparison Let said I have these relations drive(adam, van). drive(betty, tank). drive(adam, truck). drive(adam, convertible). how do I write a condition to find out adam drives three different ...
prolog relation and comparison prolog relation and comparison prolog prolog relation and comparison Let said I have these relations how do I write a condition to find out adam drives three different vehicles? I tried this, but this didn't work.
[ -0.0076904296875, -0.01226806640625, -0.0034332275390625, 0.000598907470703125, 0.0024566650390625, -0.00970458984375, 0.005096435546875, -0.0107421875, 0.0283203125, -0.0040283203125, -0.006378173828125, 0.0218505859375, 0.0220947265625, -0.004302978515625, 0.0002918243408203125, 0.00...
[ 502, 4867, 41911, 136, 225490, 2804, 765, 6097, 91582, 3642, 54, 33022, 10, 35431, 7413, 1810, 31786, 22648, 7, 17262, 12921, 117001, 37842, 18, 4488 ]
[ 0.1416015625, 0.2235107421875, 0.2091064453125, 0.07366943359375, 0.1956787109375, 0.02197265625, 0.04559326171875, 0.052886962890625, 0.2130126953125, 0.044921875, 0.00007784366607666016, 0.136474609375, 0.0234832763671875, 0.22216796875, 0.0902099609375, 0.02496337890625, 0.2344970...
embed
22600209_c0
22600209
prolog
0
Title: Have any commercial video games ever used Prolog? Problem title: Have any commercial video games ever used Prolog? Tags: game-engine, prolog Problem: Have any commercial video games ever used Prolog? Have any commercial video games ever used Prolog? With is rules-based logic based model it seems like it have som...
Have any commercial video games ever used Prolog? Have any commercial video games ever used Prolog? game-engine prolog Have Prolog Have any commercial video games ever used Prolog? Have any commercial video games ever used Prolog? With is rules-based logic based model it seems like it have some place in the industry. P...
[ 0.017578125, 0.00274658203125, 0.01171875, 0.005645751953125, 0.010009765625, 0.032958984375, 0.0011138916015625, 0.0037841796875, 0.00811767578125, -0.034912109375, -0.01336669921875, 0.0001773834228515625, 0.002410888671875, -0.0078125, 0.0062255859375, 0.0242919921875, 0.001083374...
[ 31901, 2499, 60091, 1202, 27528, 17669, 11814, 1250, 4867, 32, 6712, 128897, 502, 17106, 83, 91736, 77007, 62775, 35509, 3299, 37202, 1884, 442, 765, 3060, 3687, 53099, 70270, 7464, 23356, 756, 55738, 9655, 98, 15969 ]
[ 0.0992431640625, 0.088134765625, 0.244140625, 0.137939453125, 0.1405029296875, 0.1187744140625, 0.147216796875, 0.2080078125, 0.302978515625, 0.013275146484375, 0.1104736328125, 0.193603515625, 0.1685791015625, 0.0158538818359375, 0.009033203125, 0.125244140625, 0.0655517578125, 0....
embed
43768604_c0
43768604
prolog
0
Title: Logical OR in Prolog Problem title: Logical OR in Prolog Tags: prolog Problem: Logical OR in Prolog I´m new in Prolog learning and tried out a logical OR-operator for that context: %a. b. foo:- a ; b. I have commented a. to try out the logical OR-Operator but it does not work. If you query with ?-foo. you get an...
Logical OR in Prolog Logical OR in Prolog prolog Logical Prolog Logical OR in Prolog I´m new in Prolog learning and tried out a logical OR-operator for that context: I have commented a. to try out the logical OR-Operator but it does not work. If you query with ?-foo. you get an exception. Prolog only checks the first t...
[ 0.02734375, 0.019775390625, 0.01361083984375, 0.029296875, -0.015869140625, 0.0213623046875, -0.0228271484375, 0.0147705078125, -0.0113525390625, -0.0308837890625, 0.002532958984375, -0.0019073486328125, -0.0062255859375, -0.006439208984375, -0.0003070831298828125, -0.0068359375, 0.0...
[ 13146, 21533, 33172, 23, 1250, 4867, 502, 3525, 52080, 37842, 62775, 289, 206469, 43701, 6868, 297, 10, 9790, 1810, 156823, 1290, 14602, 959, 4488, 41, 678, 705, 9, 3584, 31, 5, 131527, 4734, 12765, 7, 5117, 13579, 17932, 4358, 28601 ]
[ 0.213623046875, 0.1776123046875, 0.310546875, 0.05047607421875, 0.198486328125, 0.266357421875, 0.146728515625, 0.01690673828125, 0.08587646484375, 0.059356689453125, 0.2012939453125, 0.1142578125, 0.22021484375, 0.0816650390625, 0.162109375, 0.008331298828125, 0.0145416259765625, ...
embed
16728740_c0
16728740
prolog
0
Title: Prolog recursion with different types Problem title: Prolog recursion with different types Tags: recursion, prolog Problem: Prolog recursion with different types If I have predicates in the following format: edge(a,b,50). edge(b,c,70). speed(am,70). speed(pm,100). How can I write a prolog program where I can say...
Prolog recursion with different types Prolog recursion with different types recursion prolog Prolog Time Duration Prolog recursion with different types If I have predicates in the following format: How can I write a prolog program where I can say total(From,To,Time,Duration) , where time is AM or PM time, duration is t...
[ 0.02294921875, 0.0179443359375, 0.01312255859375, 0.00128173828125, -0.00151824951171875, -0.01513671875, -0.0172119140625, 0.0126953125, -0.0003108978271484375, -0.0498046875, 0.0035858154296875, -0.0234375, -0.01318359375, 0.00112152099609375, 0.0238037109375, 0.00274658203125, 0.0...
[ 1250, 4867, 195625, 1830, 678, 12921, 52895, 502, 19055, 79843, 1653, 2063, 1636, 25632, 9384, 11249, 33022, 1528, 831, 5154, 3622, 168407, 7763, 70059, 17726, 30494, 1733, 9677, 7198, 115, 62488, 70, 24745 ]
[ 0.168701171875, 0.2587890625, 0.2093505859375, 0.05230712890625, 0.09423828125, 0.1461181640625, 0.2294921875, 0.1494140625, 0.1502685546875, 0.1988525390625, 0.1214599609375, 0.14208984375, 0.04974365234375, 0.0192718505859375, 0.1258544921875, 0.008819580078125, 0.11376953125, 0....
embed
49217847_c0
49217847
prolog
0
Title: Prolog reversing a list - fast method Problem title: Prolog reversing a list - fast method Tags: list, prolog Problem: Prolog reversing a list - fast method I'm trying to write a code in order to reverse a list in Prolog. The result of my work is : reverse(X,X). reverse([X|Y],[H|X]):- reverse(Y,H). I ran this co...
Prolog reversing a list - fast method Prolog reversing a list - fast method list prolog Prolog Prolog reversing a list - fast method I'm trying to write a code in order to reverse a list in Prolog. The result of my work is : I ran this code on prolog but it doesn't work. The fact that is seems correct to me and i cant ...
[ -0.002044677734375, 0.0262451171875, 0.01513671875, 0.005523681640625, -0.00909423828125, 0.005340576171875, -0.007110595703125, 0.0186767578125, 0.00101470947265625, -0.0262451171875, 0.00775146484375, 0.001953125, -0.00897216796875, -0.0106201171875, 0.009765625, 0.0108642578125, 0...
[ 1250, 4867, 39531, 6953, 5303, 4271, 55300, 10, 502, 31577, 33022, 18151, 184, 23, 16750, 13028, 903, 98, 1284, 22027, 18, 4488, 15824, 37202, 26785, 45767, 7413, 18499, 4358 ]
[ 0.1796875, 0.227294921875, 0.238525390625, 0.1011962890625, 0.2030029296875, 0.179443359375, 0.1663818359375, 0.02880859375, 0.1351318359375, 0.04742431640625, 0.03778076171875, 0.1571044921875, 0.149169921875, 0.001129150390625, 0.025848388671875, 0.114013671875, 0.061767578125, 0...
embed
50078509_c0
50078509
prolog
0
Title: Product in Prolog Problem title: Product in Prolog Tags: prolog Problem: Product in Prolog Give recursive definition in Prolog : Define a predicate prod(L, N) which takes a list L of numbers and calculates the product N of the numbers in the list. I have found a way that works for the sum : sum([],0). sum([X|L],...
Product in Prolog Product in Prolog prolog Product Prolog Product in Prolog Give recursive definition in Prolog : Define a predicate prod(L, N) which takes a list L of numbers and calculates the product N of the numbers in the list. I have found a way that works for the sum : Please help me. I have been trying for a lo...
[ -0.0235595703125, 0.0242919921875, 0.01202392578125, 0.00885009765625, -0.0181884765625, 0.019287109375, -0.007476806640625, 0.004119873046875, -0.00543212890625, -0.0286865234375, 0.0196533203125, 0.00012874603271484375, -0.027587890625, -0.0128173828125, 0.01141357421875, 0.018676757...
[ 73111, 23, 1250, 4867, 502, 77878, 195625, 5844, 80934, 64552, 1653, 2063, 67, 71, 866, 4, 541, 3129, 51776, 5303, 339, 111, 101935, 74481, 1636, 12996, 14037, 3917, 43240, 10554, 30607, 4358, 163, 31577, 4989, 1733, 7464, 20697 ]
[ 0.283447265625, 0.08154296875, 0.1787109375, 0.25048828125, 0.216064453125, 0.029144287109375, 0.2274169921875, 0.1619873046875, 0.188232421875, 0.10723876953125, 0.1387939453125, 0.1937255859375, 0.07373046875, 0.2052001953125, 0.126220703125, 0.04364013671875, 0.1356201171875, 0....
embed
57549354_c1
57549354
prolog
1
,N2=0,N is N1,(L=T1,R=nil;R=T2,L=T1;L=T1,R=T2)). When I use the query max_sub_tree(t(t(t(nil,2,nil),1,t(t(nil,40,nil),-30,nil)),-100,t(nil,50,t(nil,60,nil))) ,T,N). I get N = 110, T = t(nil, 50, t(nil, 60, nil)) But I want the output to look like this: N = 10, T =.. [t, -100, 50, 60] What Am I missing? how do I include...
,N2=0,N is N1,(L=T1,R=nil;R=T2,L=T1;L=T1,R=T2)). When I use the query max_sub_tree(t(t(t(nil,2,nil),1,t(t(nil,40,nil),-30,nil)),-100,t(nil,50,t(nil,60,nil))) ,T,N). I get N = 110, T = t(nil, 50, t(nil, 60, nil)) But I want the output to look like this: N = 10, T =.. [t, -100, 50, 60] What Am I missing? how do I include...
[ 0.0152587890625, 0.02685546875, 0.004058837890625, 0.011474609375, -0.00153350830078125, 0.017822265625, -0.018310546875, 0.01007080078125, 0.00738525390625, -0.03857421875, -0.00543212890625, -0.0036773681640625, 0.01220703125, 0.0096435546875, 0.0162353515625, -0.020263671875, 0.01...
[ 839, 304, 145407, 83, 541, 418, 866, 618, 1052, 17324, 10461, 4527, 41, 1294, 18389, 22144, 62600, 18, 2839, 27000, 45881, 2525, 4598, 2203, 12062, 384, 808, 836, 1496, 4966, 3444, 140992, 6713, 1884, 903, 209, 132283, 26698, 74855, 4034,...
[ 0.1319580078125, 0.158447265625, 0.1259765625, 0.050689697265625, 0.14111328125, 0.06866455078125, 0.050506591796875, 0.043792724609375, 0.02728271484375, 0.137939453125, 0.09173583984375, 0.06536865234375, 0.140380859375, 0.0753173828125, 0.2294921875, 0.2364501953125, 0.2578125, ...
embed
67575794_c0
67575794
prolog
0
Title: How do i write a rule in prolog called countIt? Problem title: How do i write a rule in prolog called countIt? Tags: prolog Problem: How do i write a rule in prolog called countIt? Write a function in Scheme or rules in Prolog called countlt that takes a list of numbers, L, and another number, N, and returns the...
How do i write a rule in prolog called countIt? How do i write a rule in prolog called countIt? prolog How How do i write a rule in prolog called countIt? Write a function in Scheme or rules in Prolog called countlt that takes a list of numbers, L, and another number, N, and returns the count of numbers less than N in ...
[ 0.00946044921875, 0.00982666015625, -0.00579833984375, -0.006622314453125, -0.0002269744873046875, -0.00311279296875, -0.0037384033203125, -0.0157470703125, 0.01336669921875, -0.044921875, -0.01556396484375, -0.0184326171875, 0.00787353515625, 0.0213623046875, 0.01470947265625, -0.0157...
[ 11249, 54, 17, 33022, 10, 79986, 23, 502, 4867, 35839, 54529, 23389, 601, 18781, 32354, 34702, 282, 91736, 1250, 1277, 51776, 5303, 101935, 339, 136, 15700, 14012, 541, 30646, 40715, 3501 ]
[ 0.08935546875, 0.04327392578125, 0.0733642578125, 0.23193359375, 0.0830078125, 0.244873046875, 0.0694580078125, 0.15234375, 0.2177734375, 0.0587158203125, 0.237548828125, 0.300537109375, 0.09600830078125, 0.079345703125, 0.1724853515625, 0.117431640625, 0.1243896484375, 0.1484375, ...
embed
50447579_c0
50447579
prolog
0
Title: The largest gap of elements in a list,Prolog Problem title: The largest gap of elements in a list,Prolog Tags: prolog Problem: The largest gap of elements in a list,Prolog How to determine a predicate, like gap(+List,+A,-Output). A is an element in List and we need to find another element B in List and abs(B-A) ...
The largest gap of elements in a list,Prolog The largest gap of elements in a list,Prolog prolog Prolog The largest gap of elements in a list,Prolog How to determine a predicate, like gap(+List,+A,-Output). A is an element in List and we need to find another element B in List and abs(B-A) is larger than any other eleme...
[ 0.01519775390625, 0.01300048828125, 0.0191650390625, 0.011962890625, -0.01287841796875, 0.044921875, 0.0166015625, 0.0208740234375, 0.01513671875, 0.01434326171875, 0.00095367431640625, -0.008056640625, -0.0252685546875, 0.002166748046875, 0.0159912109375, 0.00958251953125, 0.0023956...
[ 581, 142105, 43599, 111, 80854, 23, 5303, 10752, 4867, 502, 1250, 11249, 47, 83324, 1653, 2063, 67, 1884, 1328, 154663, 284, 79858, 7077, 62, 12830, 32036, 3871, 7413, 15700, 335, 43719, 571, 9, 150679, 3501, 3789, 313, 441, 140992, 6528,...
[ 0.054046630859375, 0.206787109375, 0.31982421875, 0.0809326171875, 0.234130859375, 0.0538330078125, 0.2203369140625, 0.129150390625, 0.2313232421875, 0.1121826171875, 0.1617431640625, 0.037384033203125, 0.0147247314453125, 0.1885986328125, 0.197509765625, 0.2445068359375, 0.165039062...
embed
38820848_c1
38820848
prolog
1
1*_G2009+_G2015+10*_G2024#=90*_G2012+_G2042, _G2012 in 5..8, _G2015 in 2..8, _G2024 in 2..8, _G2042 in 2..8. It looks like that is giving me a range of possible values for each letter. But how can I get a single solution where each letter is assigned to one of the possible values? Seems like a very basic question, but ...
1*_G2009+_G2015+10*_G2024#=90*_G2012+_G2042, _G2012 in 5..8, _G2015 in 2..8, _G2024 in 2..8, _G2042 in 2..8. It looks like that is giving me a range of possible values for each letter. But how can I get a single solution where each letter is assigned to one of the possible values? Seems like a very basic question, but ...
[ -0.004974365234375, -0.0096435546875, -0.0206298828125, 0.02978515625, -0.00933837890625, 0.0306396484375, -0.02294921875, -0.003936767578125, 0.0089111328125, 0.02197265625, 0.0228271484375, -0.015869140625, 0.02197265625, 0.01434326171875, -0.01031494140625, 0.0233154296875, 0.0052...
[ 1639, 724, 15841, 1328, 5357, 963, 1549, 2357, 4904, 5039, 10693, 13023, 23, 1892, 1019, 787, 52196, 33342, 163, 37457, 7722, 142424, 12638, 31330, 3642, 2046, 11001, 29806, 7440, 95486, 47, 1632, 111, 62822, 831, 26366, 1810, 28864, 26073,...
[ 0.08807373046875, 0.1029052734375, 0.241943359375, 0.1063232421875, 0.21923828125, 0.11572265625, 0.077392578125, 0.197265625, 0.059783935546875, 0.1661376953125, 0.180908203125, 0.181884765625, 0.0200958251953125, 0.1202392578125, 0.1429443359375, 0.0526123046875, 0.1470947265625, ...
embed
2097236_c0
2097236
prolog
0
Title: Implementation of DPLL algorithm in Prolog Problem title: Implementation of DPLL algorithm in Prolog Tags: prolog, implementation, algorithm Problem: Implementation of DPLL algorithm in Prolog I'm trying to apply the simplified algorithm in Prolog, but I'm not a Prolog master. I need it without any mistakes, so ...
Implementation of DPLL algorithm in Prolog Implementation of DPLL algorithm in Prolog prolog implementation algorithm Implementation DPLL Prolog Implementation of DPLL algorithm in Prolog I'm trying to apply the simplified algorithm in Prolog, but I'm not a Prolog master. I need it without any mistakes, so I thought yo...
[ 0.0186767578125, 0.00714111328125, 0.007781982421875, 0.03271484375, -0.0145263671875, 0.035400390625, -0.00927734375, -0.0157470703125, -0.017333984375, -0.0263671875, 0.007232666015625, -0.0201416015625, -0.022705078125, -0.008056640625, 0.0052490234375, 0.0230712890625, 0.00015830...
[ 153941, 2320, 72445, 23708, 234873, 23, 1250, 4867, 502, 208124, 59911, 112892, 1029, 959, 31347, 3871, 121742, 17569, 4358 ]
[ 0.1754150390625, 0.0162506103515625, 0.1776123046875, 0.267822265625, 0.226318359375, 0.07586669921875, 0.1558837890625, 0.2293701171875, 0.10577392578125, 0.1708984375, 0.0792236328125, 0.116455078125, 0.04461669921875, 0.001068115234375, 0.05230712890625, 0.01348876953125, 0.009185...
embed
59348225_c2
59348225
prolog
2
this, I can turn this output ?- fuel(1). ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:total_ore(21). into ?- fuel(1). ore:total_ore(31). If I manually add ,ore:a(2) to the fuel query, I get the correct total ore. To sum up, How can I express the constraint that I cannot partially...
this, I can turn this output ?- fuel(1). ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:a(1), ore:total_ore(21). into ?- fuel(1). ore:total_ore(31). If I manually add ,ore:a(2) to the fuel query, I get the correct total ore. To sum up, How can I express the constraint that I cannot partially...
[ -0.00531005859375, -0.0084228515625, 0.01348876953125, 0.006500244140625, -0.003936767578125, -0.00970458984375, 0.007781982421875, -0.020263671875, 0.019287109375, -0.02490234375, -0.014892578125, 0.00872802734375, 0.0081787109375, 0.0208740234375, 0.01806640625, -0.03564453125, 0.0...
[ 903, 87, 831, 15504, 140992, 160692, 27750, 6517, 11, 188, 1803, 4524, 69072, 3934, 705, 9, 95787, 23009, 15190, 40970, 41, 1294, 2046, 26785, 3622, 10554, 36510, 158, 2816, 4288, 53418, 2878, 25958, 11675, 28864, 26073, 7, 6096, 34, 2189...
[ 0.068359375, 0.039459228515625, 0.06341552734375, 0.139892578125, 0.1968994140625, 0.24560546875, 0.038604736328125, 0.2415771484375, 0.049560546875, 0.0853271484375, 0.13037109375, 0.2147216796875, 0.104248046875, 0.061309814453125, 0.044403076171875, 0.0285797119140625, 0.164184570...
embed
21923917_c0
21923917
prolog
0
Title: Calc/2 predicate Problem title: Calc/2 predicate Tags: prolog Problem: Calc/2 predicate I need to define a predicate calculator/2 that takes a list of English arithmetic expressions and yields a numerical result. The system should be able to handle numbers 1-20. Example executions: ?- calculator([three,times,two...
Calc/2 predicate Calc/2 predicate prolog Calc Total divided_by Calc/2 predicate I need to define a predicate calculator/2 that takes a list of English arithmetic expressions and yields a numerical result. The system should be able to handle numbers 1-20. Example executions:
[ 0.0022125244140625, -0.00634765625, -0.00634765625, -0.00579833984375, 0.004852294921875, 0.0098876953125, 0.01495361328125, -0.00032806396484375, 0.0152587890625, -0.022705078125, -0.00225830078125, 0.00738525390625, 0.007659912109375, -0.0186767578125, 0.0086669921875, 0.010437011718...
[ 9113, 238, 12477, 1653, 2063, 67, 502, 4867, 33867, 101637, 71, 1272, 3871, 61924, 10, 154993, 51776, 5303, 14941, 8962, 282, 125195, 11180, 19388, 54744, 6827, 16750, 5426, 5608, 19048, 47, 34831, 101935, 106, 11033, 89536, 8705, 71924 ]
[ 0.193603515625, 0.143310546875, 0.285888671875, 0.169677734375, 0.201171875, 0.11279296875, 0.1209716796875, 0.183837890625, 0.1722412109375, 0.1566162109375, 0.03802490234375, 0.074462890625, 0.07110595703125, 0.1217041015625, 0.0014677047729492188, 0.28076171875, 0.0689697265625, ...
embed
14249501_c0
14249501
prolog
0
Title: why does gprolog need so much RAM? Problem title: why does gprolog need so much RAM? Tags: swi-prolog, prolog, memory-management, gnu-prolog Problem: why does gprolog need so much RAM? The following is from top command: size res 1127 *** 1 20 0 117M 2196K ttyin 0 0:00 0.00% gprolog 1149 *** 1 23 0 10700K 3728K t...
why does gprolog need so much RAM? why does gprolog need so much RAM? swi-prolog prolog memory-management gnu-prolog RAM why does gprolog need so much RAM? The following is from top command: Its RES is reasonable but its size is too big compared with swipl . The OS is freebsd 9.0. Sincerely!
[ 0.0030670166015625, 0.01519775390625, 0.01611328125, 0.00823974609375, -0.004913330078125, -0.01055908203125, -0.006011962890625, 0.024658203125, 0.00083160400390625, -0.0157470703125, 0.038330078125, -0.011474609375, -0.0186767578125, 0.0198974609375, 0.018310546875, -0.00848388671875...
[ 15400, 14602, 706, 3454, 4867, 3871, 221, 5045, 26959, 91, 2452, 502, 98323, 87140, 104155, 25632, 1295, 2663, 75101, 1650, 61661, 83, 169022, 1284, 6863, 13267, 5792, 6957, 154186, 678, 2424, 11787, 4092, 16145, 71, 3569, 2389, 66016 ]
[ 0.107666015625, 0.0302276611328125, 0.1025390625, 0.1978759765625, 0.26708984375, 0.1282958984375, 0.09423828125, 0.10595703125, 0.2174072265625, 0.037841796875, 0.17138671875, 0.1197509765625, 0.089599609375, 0.1395263671875, 0.16015625, 0.038604736328125, 0.004425048828125, 0.069...
embed
5112400_c0
5112400
prolog
0
Title: Defining a rule that the user cannot query Problem title: Defining a rule that the user cannot query Tags: logtalk, prolog Problem: Defining a rule that the user cannot query How do I define a rule that the user cannot query? I only want the program itself to call this rule through another rule. Ex: rule1():- ru...
Defining a rule that the user cannot query Defining a rule that the user cannot query logtalk prolog Defining Defining a rule that the user cannot query How do I define a rule that the user cannot query? I only want the program itself to call this rule through another rule. Ex: rule1():- rule2(). rule2():- 1<5. ?-rule1...
[ 0.01513671875, 0.0279541015625, -0.017333984375, 0.00457763671875, 0.00665283203125, 0.007415771484375, 0.0033111572265625, 0.00180816650390625, 0.00077056884765625, -0.0196533203125, -0.007110595703125, -0.007171630859375, -0.00180816650390625, 0.0264892578125, 0.013427734375, 0.00248...
[ 88606, 449, 79986, 450, 38937, 53418, 41, 1294, 10, 70, 12684, 139109, 502, 4867, 61924, 3444, 1528, 68034, 11782, 903, 8305, 304, 194, 16093, 758, 882, 132, 29568, 568, 35782 ]
[ 0.1866455078125, 0.069091796875, 0.2449951171875, 0.09027099609375, 0.1893310546875, 0.2127685546875, 0.1534423828125, 0.189208984375, 0.04156494140625, 0.0045166015625, 0.138916015625, 0.2437744140625, 0.1068115234375, 0.1715087890625, 0.19580078125, 0.0908203125, 0.138427734375, ...
embed
62376526_c0
62376526
prolog
0
Title: Forward and Backward Chaining Problem title: Forward and Backward Chaining Tags: artificial-intelligence, prolog, inference-engine Problem: Forward and Backward Chaining I am attempting to understand the best uses of backward and forward chaining in AI programming for a program I am writing. Would anyone be able...
Forward and Backward Chaining Forward and Backward Chaining artificial-intelligence prolog inference-engine Forward Backward Chaining Forward and Backward Chaining I am attempting to understand the best uses of backward and forward chaining in AI programming for a program I am writing. Would anyone be able to explain t...
[ 0.03759765625, 0.023681640625, -0.0028839111328125, 0.0206298828125, -0.01904296875, 0.019775390625, 0.006500244140625, 0.004852294921875, 0.007110595703125, -0.0225830078125, 0.005889892578125, -0.0135498046875, 0.0128173828125, 0.02685546875, 0.005096435546875, -0.00775146484375, -...
[ 1326, 19364, 136, 26828, 4841, 14653, 66733, 130687, 502, 4867, 53498, 6620, 128897, 81887, 28219, 2965, 4527, 111, 4420, 40225, 1608, 23, 38730, 56037, 449, 100, 1528, 32562, 35672, 19048, 73342, 2684, 6397, 7, 5809, 27781 ]
[ 0.1209716796875, 0.2457275390625, 0.153076171875, 0.191162109375, 0.227783203125, 0.208251953125, 0.1260986328125, 0.103759765625, 0.126220703125, 0.1754150390625, 0.1533203125, 0.054534912109375, 0.1451416015625, 0.014068603515625, 0.04620361328125, 0.07550048828125, 0.18017578125, ...
embed
20239641_c0
20239641
prolog
0
Title: Find the coefficients of a polynomial given its roots (zeros) in Prolog Problem title: Find the coefficients of a polynomial given its roots (zeros) in Prolog Tags: math, prolog, polynomial-math, logic Problem: Find the coefficients of a polynomial given its roots (zeros) in Prolog How I can implement in Prolog ...
Find the coefficients of a polynomial given its roots (zeros) in Prolog Find the coefficients of a polynomial given its roots (zeros) in Prolog math prolog polynomial-math logic Find Prolog Find the coefficients of a polynomial given its roots (zeros) in Prolog How I can implement in Prolog program that find coefficien...
[ -0.00107574462890625, 0.022216796875, -0.003265380859375, 0.012451171875, -0.009033203125, 0.0169677734375, 0.008544921875, 0.018310546875, -0.010498046875, -0.0162353515625, 0.01275634765625, -0.0198974609375, 0.006988525390625, -0.010009765625, 0.0033416748046875, 0.00714111328125, ...
[ 26040, 552, 4240, 11044, 35066, 35874, 1687, 15403, 34475, 74855, 7, 80510, 23, 1250, 4867, 70, 111, 6863, 48909, 502, 125458, 62775, 87, 831, 29479, 1528, 7413, 2174, 3714 ]
[ 0.111572265625, 0.1573486328125, 0.0946044921875, 0.109375, 0.0965576171875, 0.202392578125, 0.15771484375, 0.124755859375, 0.0927734375, 0.227294921875, 0.1234130859375, 0.19140625, 0.0771484375, 0.152099609375, 0.2467041015625, 0.00091552734375, 0.0084228515625, 0.06256103515625,...
embed