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
43395771_c4
43395771
prolog
4
1783, _G1786, _G1789, _G1792, _G1795, _G1798, _G1801, _G1804, _G1807, _G1810, _G1813, _G1816, _G1819, _G1822, _G1825, _G1828, _G1831, _G1834, _G1837, _G1840, _G1843, _G1846, _G1849, _G1852, _G1855, _G1861
1783, _G1786, _G1789, _G1792, _G1795, _G1798, _G1801, _G1804, _G1807, _G1810, _G1813, _G1816, _G1819, _G1822, _G1825, _G1828, _G1831, _G1834, _G1837, _G1840, _G1843, _G1846, _G1849, _G1852, _G1855, _G1861
[ -0.0079345703125, -0.000782012939453125, -0.027587890625, -0.040771484375, 0.00372314453125, 0.021240234375, -0.014404296875, 0.00148773193359375, 0.01458740234375, 0.0458984375, -0.0028839111328125, -0.003082275390625, -0.015625, -0.014892578125, 0.004425048828125, 0.0142822265625, ...
[ 729, 17168, 4, 101, 724, 2489, 15276, 18949, 12231, 8821, 16665, 1819, 6746, 7709, 8368, 963, 2681, 2485, 2947, 4015, 2588, 3882, 5016, 10289, 10945, 2839, 11548, 9271, 12977, 12744, 11663, 11540 ]
[ 0.153564453125, 0.299560546875, 0.0867919921875, 0.03466796875, 0.126953125, 0.117431640625, 0.25439453125, 0.2364501953125, 0.23193359375, 0.2451171875, 0.2403564453125, 0.14404296875, 0.209228515625, 0.2135009765625, 0.1798095703125, 0.1451416015625, 0.129638671875, 0.146484375, ...
embed
48213714_c0
48213714
prolog
0
Title: partition a set into n subsets using prolog Problem title: partition a set into n subsets using prolog Tags: set, prolog Problem: partition a set into n subsets using prolog Code signals: prolog, Res
partition a set into n subsets using prolog partition a set into n subsets using prolog set prolog prolog Res partition a set into n subsets using prolog I'm struggling with the following problem, partition a set into n subsets using prolog. So for example, I give as input to program: X = [1,2,3,4], N=3 and I get or I ...
[ 0.01416015625, -0.00909423828125, 0.01373291015625, 0.01324462890625, -0.0001850128173828125, -0.0172119140625, -0.00421142578125, -0.003997802734375, -0.0078125, -0.010009765625, 0.007354736328125, 0.003387451171875, -0.004608154296875, -0.004638671875, 0.009521484375, 0.0037841796875...
[ 2878, 1363, 5423, 3934, 653, 1614, 3509, 7, 17368, 502, 4867, 10, 9624, 237875, 25632, 2967, 27781, 8337, 237, 107730, 1528, 1193, 133063, 82449, 541, 76067, 2046, 707, 4, 55257 ]
[ 0.2322998046875, 0.122314453125, 0.2064208984375, 0.1820068359375, 0.164306640625, 0.201171875, 0.2410888671875, 0.091796875, 0.057586669921875, 0.1607666015625, 0.2418212890625, 0.0333251953125, 0.1395263671875, 0.0850830078125, 0.013153076171875, 0.0687255859375, 0.0152740478515625...
embed
1943886_c0
1943886
prolog
0
Title: prolog syntax problem Problem title: prolog syntax problem Tags: operators, prolog Problem: prolog syntax problem I can't distinguish these symbols: = and =:= \= and =\= [X,Y] and [X|Y] What’s the difference ?
prolog syntax problem prolog syntax problem operators prolog prolog syntax problem I can't distinguish these symbols: = and =:= \= and =\= [X,Y] and [X|Y] What’s the difference ?
[ 0.021484375, -0.00726318359375, 0.01416015625, -0.00421142578125, -0.006561279296875, -0.002227783203125, -0.01416015625, 0.00677490234375, 0.007568359375, 0.0089111328125, 0.013427734375, -0.007476806640625, 0.0010833740234375, -0.01031494140625, 0.01116943359375, -0.01202392578125, ...
[ 502, 4867, 6002, 86531, 2967, 39933, 87, 831, 18, 157167, 1495, 6097, 26582, 2203, 136, 41872, 1542, 4, 1723, 58745, 70, 60212 ]
[ 0.157958984375, 0.2344970703125, 0.1494140625, 0.1304931640625, 0.168212890625, 0.2060546875, 0.01190185546875, 0.0966796875, 0.09808349609375, 0.1754150390625, 0.11517333984375, 0.074951171875, 0.253662109375, 0.191162109375, 0.236083984375, 0.08575439453125, 0.1470947265625, 0.03...
embed
4775623_c0
4775623
prolog
0
Title: Test prolog knowledge Problem title: Test prolog knowledge Tags: prolog Problem: Test prolog knowledge I'd like to solve some online test's to see how good do i know prolog, maybe you could recommend any? Code signals: Test
Test prolog knowledge Test prolog knowledge prolog Test Test prolog knowledge I'd like to solve some online test's to see how good do i know prolog, maybe you could recommend any?
[ 0.02880859375, 0.004180908203125, -0.00433349609375, -0.002655029296875, -0.0118408203125, -0.004852294921875, -0.005523681640625, 0.00738525390625, -0.00469970703125, -0.0341796875, 0.006683349609375, 0.00640869140625, -0.0201416015625, 0.0277099609375, 0.03076171875, 0.01220703125, ...
[ 8647, 502, 4867, 51359, 87, 1884, 47, 86869, 3060, 1118, 3034, 7, 1957, 3642, 4127, 54, 17, 3714, 51139, 67330, 2499 ]
[ 0.1978759765625, 0.16796875, 0.232666015625, 0.1973876953125, 0.01047515869140625, 0.06536865234375, 0.0291748046875, 0.1185302734375, 0.01190948486328125, 0.1300048828125, 0.19970703125, 0.041595458984375, 0.07440185546875, 0.048828125, 0.07904052734375, 0.042877197265625, 0.0689086...
embed
15436464_c0
15436464
prolog
0
Title: Split string in items Problem title: Split string in items Tags: prolog, string, swi-prolog Problem: Split string in items I have a string 'a, b, c' What is the easiest way to split this into items? [a,b,c] Code signals: Split
Split string in items Split string in items prolog string swi-prolog Split Split string in items I have a string What is the easiest way to split this into items?
[ -0.002685546875, -0.01519775390625, -0.003936767578125, 0.015380859375, -0.0166015625, 0.021728515625, -0.006011962890625, -0.00799560546875, 0.000881195068359375, -0.010986328125, -0.0031585693359375, -0.0155029296875, -0.0296630859375, 0.0107421875, -0.0035858154296875, 0.00933837890...
[ 46474, 79315, 23, 55769, 502, 4867, 91, 2452, 3454, 87, 765, 70, 28, 1544, 525, 3917, 47, 65450, 903, 3934 ]
[ 0.237548828125, 0.280517578125, 0.1351318359375, 0.261962890625, 0.1260986328125, 0.203369140625, 0.0278167724609375, 0.1719970703125, 0.1236572265625, 0.0188446044921875, 0.0899658203125, 0.0107269287109375, 0.027099609375, 0.12042236328125, 0.09661865234375, 0.06268310546875, 0.060...
embed
55248433_c0
55248433
prolog
0
Title: to read file and then to convert it to lists in prolog Problem title: to read file and then to convert it to lists in prolog Tags: prolog Problem: to read file and then to convert it to lists in prolog Code signals: List1, List2, List3, Cost
to read file and then to convert it to lists in prolog to read file and then to convert it to lists in prolog prolog List1 List2 List3 Cost to read file and then to convert it to lists in prolog Looking for codes in prolog to convert a file.txt to lists as following:
[ 0.03466796875, -0.00604248046875, -0.01104736328125, 0.021484375, -0.01544189453125, 0.0174560546875, -0.006683349609375, 0.00537109375, 0.002197265625, -0.0191650390625, 0.00075531005859375, -0.0086669921875, -0.0194091796875, -0.01092529296875, 0.00457763671875, -0.00136566162109375,...
[ 47, 12301, 11435, 96760, 5303, 7, 502, 4867, 32036, 363, 63099, 23, 157268, 100, 18151, 124326, 25632 ]
[ 0.07464599609375, 0.1627197265625, 0.154052734375, 0.102783203125, 0.2137451171875, 0.09356689453125, 0.1463623046875, 0.2032470703125, 0.127197265625, 0.0262603759765625, 0.153076171875, 0.018157958984375, 0.01230621337890625, 0.0113067626953125, 0.179443359375, 0.252197265625, 0.01...
embed
8109611_c0
8109611
prolog
0
Title: prolog list error Problem title: prolog list error Tags: prolog Problem: prolog list error last(X,[X]). last(X, [_|L]) :- last(X,L). The problem is to find last element in a list.But am getting above error. Code signals: ERROR, Syntax, Operator
prolog list error prolog list error prolog ERROR Syntax Operator prolog list error The problem is to find last element in a list.But am getting above error.
[ 0.017578125, 0.012451171875, 0.0027313232421875, 0.00439453125, -0.0120849609375, 0.01251220703125, -0.01348876953125, 0.0054931640625, -0.007598876953125, -0.00726318359375, 0.013427734375, -0.0238037109375, 0.00970458984375, -0.00653076171875, -0.0036163330078125, -0.003875732421875,...
[ 502, 4867, 5303, 18499, 151206, 24638, 19010, 86531, 150922, 2967, 7413, 4568, 12830, 23, 82212, 444, 20949, 36917 ]
[ 0.1741943359375, 0.261962890625, 0.221435546875, 0.1910400390625, 0.090087890625, 0.02947998046875, 0.030029296875, 0.08209228515625, 0.189697265625, 0.09796142578125, 0.1163330078125, 0.2147216796875, 0.1585693359375, 0.0069122314453125, 0.01061248779296875, 0.025177001953125, 0.006...
embed
42952996_c1
42952996
prolog
1
1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] I fail to see my mistake. Can anyone point it out to me? Code signals: Sublist, Prolog
1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] I fail to see my mistake. Can anyone point it out to me? Code signals: Sublist, Prolog
[ 0.010986328125, 0.01611328125, 0.01300048828125, -0.005035400390625, -0.0224609375, 0.01031494140625, -0.0264892578125, 0.01251220703125, -0.00142669677734375, -0.0224609375, -0.0022430419921875, -0.005340576171875, 0.00872802734375, 0.0228271484375, -0.005523681640625, 0.0026245117187...
[ 106, 4, 268, 2819, 339, 2203, 68252, 75606, 87, 35782, 47, 1957, 759, 121742, 4171, 35672, 6275, 442, 1810, 163, 28864, 26073, 7, 8273, 6562, 1250, 4867 ]
[ 0.1453857421875, 0.052825927734375, 0.0186614990234375, 0.018218994140625, 0.1624755859375, 0.1441650390625, 0.06689453125, 0.040191650390625, 0.040435791015625, 0.173583984375, 0.0521240234375, 0.1649169921875, 0.10986328125, 0.2462158203125, 0.00994873046875, 0.0251617431640625, 0....
embed
4001148_c0
4001148
prolog
0
Title: lists inside a list Problem title: lists inside a list Tags: prolog Problem: lists inside a list i am writing a predicate in prolog to delete an atom in a list, but i stuck on how to check if the atom is whether a list inside a list. any suggestions.
lists inside a list lists inside a list prolog lists inside a list i am writing a predicate in prolog to delete an atom in a list, but i stuck on how to check if the atom is whether a list inside a list. any suggestions.
[ 0.007171630859375, 0.01025390625, -0.003692626953125, 0.0167236328125, -0.01513671875, 0.016845703125, 0.026611328125, -0.006103515625, 0.00341796875, -0.02099609375, 0.01324462890625, 0.0096435546875, 0.01202392578125, -0.007171630859375, 0.0181884765625, 0.01123046875, 0.0134887695...
[ 5303, 46132, 10, 7, 502, 4867, 32562, 1653, 2063, 67, 154109, 34627, 23, 179933, 47, 12765, 2174, 83, 36766, 157666 ]
[ 0.2337646484375, 0.2144775390625, 0.06103515625, 0.0264892578125, 0.1390380859375, 0.1737060546875, 0.0225677490234375, 0.061737060546875, 0.0712890625, 0.0093841552734375, 0.170654296875, 0.2427978515625, 0.05804443359375, 0.041900634765625, 0.01522064208984375, 0.16943359375, 0.048...
embed
66713396_c2
66713396
prolog
2
, _230034490, toplevel_call, garbage_collected, stop_backtrace, wfs_call, execute_goal2, length:2, _230034576, Use, stack_limit, KMG, set_prolog_flag, Exception, _10, _230034404, _230034398, _230034392, _230034386, _230034380, _230034374, _230034368, _230034362
, _230034490, toplevel_call, garbage_collected, stop_backtrace, wfs_call, execute_goal2, length:2, _230034576, Use, stack_limit, KMG, set_prolog_flag, Exception, _10, _230034404, _230034398, _230034392, _230034386, _230034380, _230034374, _230034368, _230034362
[ 0.0263671875, 0.0296630859375, -0.01165771484375, -0.0106201171875, -0.0164794921875, 0.00186920166015625, 0.00360107421875, 0.00701904296875, 0.0247802734375, -0.025634765625, 0.0181884765625, 0.0194091796875, 0.0031280517578125, -0.009033203125, 0.0262451171875, -0.01239013671875, ...
[ 6, 4, 101, 304, 7739, 132993, 5039, 2663, 67919, 85763, 3671, 402, 429, 196352, 297, 7279, 12620, 39989, 13, 148, 17447, 71924, 519, 289, 140909, 96060, 11835, 36836, 177261, 93343, 341, 34926, 5423, 3454, 4867, 190872, 5443, 63928, 963, ...
[ 0.035888671875, 0.06561279296875, 0.056793212890625, 0.12353515625, 0.1380615234375, 0.154296875, 0.18994140625, 0.08319091796875, 0.20458984375, 0.224609375, 0.06170654296875, 0.1915283203125, 0.0887451171875, 0.212158203125, 0.0943603515625, 0.1727294921875, 0.0704345703125, 0.18...
embed
3964420_c0
3964420
prolog
0
Title: Prolog loops and conditional statements? Problem title: Prolog loops and conditional statements? Tags: prolog Problem: Prolog loops and conditional statements? Is there anything in Prolog that works like a for loop and if then condition? Code signals: Prolog
Prolog loops and conditional statements? Prolog loops and conditional statements? prolog Prolog Prolog loops and conditional statements? Is there anything in Prolog that works like a for loop and if then condition?
[ 0.035888671875, 0.00787353515625, 0.00183868408203125, 0.00830078125, 0.01068115234375, 0.014892578125, 0.0194091796875, 0.003692626953125, -0.000537872314453125, 0.00238037109375, 0.004730224609375, -0.01446533203125, -0.0224609375, 0.003692626953125, 0.01080322265625, 0.0039367675781...
[ 1250, 4867, 40956, 7, 136, 35431, 289, 63805, 502, 23937, 23, 43240, 1884, 100, 2174, 7068 ]
[ 0.1663818359375, 0.268798828125, 0.251953125, 0.07415771484375, 0.055450439453125, 0.2117919921875, 0.1558837890625, 0.2093505859375, 0.120361328125, 0.050140380859375, 0.0103759765625, 0.0784912109375, 0.0604248046875, 0.09710693359375, 0.12109375, 0.0172882080078125 ]
embed
29709501_c0
29709501
prolog
0
Title: What does Prolog do if you X = f(X)? Problem title: What does Prolog do if you X = f(X)? Tags: prolog, occurs-check Problem: What does Prolog do if you X = f(X)? What does it mean in Prolog comparing a predicate to an unbound variable? Code signals: What, Prolog
What does Prolog do if you X = f(X)? What does Prolog do if you X = f(X)? prolog occurs-check What Prolog What does Prolog do if you X = f(X)? What does it mean in Prolog comparing a predicate to an unbound variable?
[ -0.0003719329833984375, 0.0084228515625, 0.0186767578125, 0.0003147125244140625, -0.0031280517578125, -0.0037841796875, 0.028076171875, 0.0004634857177734375, -0.00823974609375, -0.005645751953125, 0.0108642578125, 0.01275634765625, -0.00396728515625, 0.005157470703125, 0.0196533203125, ...
[ 4865, 14602, 1250, 4867, 54, 2174, 1193, 2203, 1238, 132, 1542, 502, 74918, 7, 78292, 398, 442, 29459, 37397, 1653, 2063, 51, 99091, 77336 ]
[ 0.046661376953125, 0.048004150390625, 0.2041015625, 0.289794921875, 0.08917236328125, 0.123291015625, 0.1363525390625, 0.12176513671875, 0.1357421875, 0.040435791015625, 0.13330078125, 0.1656494140625, 0.19384765625, 0.02288818359375, 0.1859130859375, 0.01556396484375, 0.034454345703...
embed
23697228_c2
23697228
prolog
2
, Done, NextRow, ElemIndex, nth0, NewRows, ColumnIndex, NewColumns, NextElem, Row, Element, Tail, Value, Head, Index, NextIndex, ERROR, Exception, _G907, _G910, _G913, _G916, _G925, _G928, _G937, _G958, _G964, _G979, _G1006, _G1009, _G1012, _G1033, _G1036, _G1060, _G828, _G901
, Done, NextRow, ElemIndex, nth0, NewRows, ColumnIndex, NewColumns, NextElem, Row, Element, Tail, Value, Head, Index, NextIndex, ERROR, Exception, _G907, _G910, _G913, _G916, _G925, _G928, _G937, _G958, _G964, _G979, _G1006, _G1009, _G1012, _G1033, _G1036, _G1060, _G828, _G901
[ 0.0157470703125, 0.007293701171875, -0.007080078125, 0.00506591796875, 0.002838134765625, 0.0203857421875, -0.005645751953125, -0.032958984375, 0.0260009765625, 0.0517578125, 0.0186767578125, 0.00909423828125, -0.01171875, -0.02001953125, -0.007568359375, -0.01397705078125, 0.0311279...
[ 6, 4, 984, 86, 4997, 12724, 434, 540, 195, 4153, 39659, 653, 927, 2389, 2356, 19725, 233987, 78457, 316, 1779, 7623, 96190, 48325, 1218, 379, 190060, 44816, 31471, 151206, 24638, 5443, 63928, 101, 724, 5039, 966, 1126, 963, 2681, 2485, ...
[ 0.027587890625, 0.1092529296875, 0.1617431640625, 0.20068359375, 0.2156982421875, 0.18798828125, 0.1561279296875, 0.084228515625, 0.1568603515625, 0.1351318359375, 0.242431640625, 0.046356201171875, 0.168701171875, 0.1602783203125, 0.1346435546875, 0.14501953125, 0.215087890625, 0....
embed
34661752_c0
34661752
prolog
0
Title: Element manipulation in Prolog Problem title: Element manipulation in Prolog Tags: list, prolog Problem: Element manipulation in Prolog I have a list L = [-n,-b,-s] How do i get a list with L = [n,b,s] Is there a built in predicate to do this?. Code signals: Element, Prolog
Element manipulation in Prolog Element manipulation in Prolog list prolog Element Prolog Element manipulation in Prolog I have a list How do i get a list with Is there a built in predicate to do this?.
[ 0.0047607421875, 0.00616455078125, -0.00055694580078125, 0.00396728515625, -0.01953125, 0.0208740234375, 0.001556396484375, 0.01458740234375, -0.013427734375, -0.00238037109375, 0.0084228515625, -0.0005950927734375, -0.016845703125, -0.005645751953125, -0.01385498046875, -0.00182342529...
[ 48325, 45258, 1363, 1250, 4867, 23, 5303, 502, 87, 765, 10, 17, 2046, 678, 88303, 1653, 2063, 67, 54, 903 ]
[ 0.2041015625, 0.212890625, 0.0433349609375, 0.1507568359375, 0.2401123046875, 0.07666015625, 0.2197265625, 0.08807373046875, 0.0168609619140625, 0.071044921875, 0.061004638671875, 0.0216827392578125, 0.12139892578125, 0.1016845703125, 0.102783203125, 0.12890625, 0.1761474609375, 0....
embed
15053121_c0
15053121
prolog
0
Title: Return statements in a list Problem title: Return statements in a list Tags: prolog Problem: Return statements in a list If I have the following relation: ? friend(tom, X). X = jim ; X = tom ; X = joe ; X = bob ; false. How can I turn the output into: X = [jim, tom, joe, bob].
Return statements in a list Return statements in a list prolog Return statements in a list If I have the following relation: How can I turn the output into:
[ 0.0252685546875, -0.0223388671875, -0.00628662109375, 0.010009765625, -0.01141357421875, 0.00543212890625, -0.00064849853515625, 0.00003528594970703125, 0.0115966796875, -0.0306396484375, -0.0135498046875, -0.0164794921875, -0.0169677734375, 0.006317138671875, 0.021728515625, 0.0073547...
[ 173340, 63805, 23, 5303, 7, 502, 4867, 10, 25632, 41911, 831, 15504, 140992, 3934 ]
[ 0.2408447265625, 0.248046875, 0.058746337890625, 0.2000732421875, 0.05413818359375, 0.1280517578125, 0.1954345703125, 0.00637054443359375, 0.059600830078125, 0.183837890625, 0.00861358642578125, 0.1187744140625, 0.2103271484375, 0.08538818359375 ]
embed
23438418_c1
23438418
prolog
1
,0). f(5,1). f(6,2). f(7,3). f(8,2). g(0,0). g(1,2). g(2,3). g(3,4). g(4,3). g(5,2). g(6,2). g(7,0). g(8,1). h(0,0). h(1,3). h(2,3). h(3,3). h(4,2). h(5,1). h(6,0). h(7,1). h(8,2). i(0,0). i(1,4). i(2,3). i(3,2). i(4,1). i(5,0). i(6,1). i(7,2). i(8,3). in this code? Code signals: Manhattan
,0). f(5,1). f(6,2). f(7,3). f(8,2). g(0,0). g(1,2). g(2,3). g(3,4). g(4,3). g(5,2). g(6,2). g(7,0). g(8,1). h(0,0). h(1,3). h(2,3). h(3,3). h(4,2). h(5,1). h(6,0). h(7,1). h(8,2). i(0,0). i(1,4). i(2,3). i(3,2). i(4,1). i(5,0). i(6,1). i(7,2). i(8,3). in this code? Code signals: Manhattan
[ -0.0028228759765625, 0.02587890625, -0.01324462890625, -0.00244140625, -0.006591796875, 0.005401611328125, 0.01300048828125, 0.0306396484375, -0.016845703125, 0.0238037109375, -0.01080322265625, -0.037841796875, 0.000675201416015625, 0.0213623046875, -0.0260009765625, -0.01470947265625...
[ 6, 4, 77495, 5, 1238, 104116, 17727, 139303, 10461, 966, 21320, 1019, 706, 132, 63527, 133063, 155761, 194, 82449, 105801, 206029, 1096, 86827, 188636, 17, 163324, 23, 903, 18151, 32, 28864, 26073, 7, 12, 147037 ]
[ 0.0254364013671875, 0.05401611328125, 0.1807861328125, 0.061767578125, 0.1864013671875, 0.1470947265625, 0.10498046875, 0.1053466796875, 0.07305908203125, 0.06134033203125, 0.142578125, 0.10693359375, 0.1328125, 0.05133056640625, 0.18212890625, 0.0758056640625, 0.082275390625, 0.07...
embed
2360358_c0
2360358
prolog
0
Title: Program and Data are the Same in Prolog? Problem title: Program and Data are the Same in Prolog? Tags: prolog Problem: Program and Data are the Same in Prolog? I have heard that in Prolog, program and data are the same thing. What does that mean? Code signals: Program, Data, Same, Prolog
Program and Data are the Same in Prolog? Program and Data are the Same in Prolog? prolog Program Data Same Prolog Program and Data are the Same in Prolog? I have heard that in Prolog, program and data are the same thing. What does that mean?
[ 0.0184326171875, 0.0196533203125, 0.0030364990234375, 0.017333984375, -0.01025390625, 0.0203857421875, 0.006591796875, 0.01031494140625, 0.007080078125, -0.0225830078125, 0.00032806396484375, 0.00171661376953125, -0.017578125, -0.0005035400390625, 0.0023956298828125, 0.0036468505859375...
[ 7663, 136, 11809, 621, 70, 99908, 23, 1250, 4867, 502, 49782, 1528, 2053, 5701, 13580, 29459 ]
[ 0.2349853515625, 0.106689453125, 0.219482421875, 0.05084228515625, 0.0565185546875, 0.1502685546875, 0.0743408203125, 0.189208984375, 0.250244140625, 0.1260986328125, 0.015228271484375, 0.23779296875, 0.2020263671875, 0.11865234375, 0.04351806640625, 0.044464111328125 ]
embed
4478615_c0
4478615
prolog
0
Title: Alternatives to the WAM Problem title: Alternatives to the WAM Tags: warren-abstract-machine, prolog Problem: Alternatives to the WAM I remember once reading that there were at least two other alternatives invented roughly at the same time as the WAM. Any pointers? Code signals: Alternatives, WAM
Alternatives to the WAM Alternatives to the WAM warren-abstract-machine prolog Alternatives WAM Alternatives to the WAM I remember once reading that there were at least two other alternatives invented roughly at the same time as the WAM. Any pointers?
[ 0.022216796875, 0.00921630859375, 0.01324462890625, 0.033203125, 0.00262451171875, -0.004638671875, -0.01513671875, 0.0008392333984375, 0.01025390625, -0.020263671875, -0.004364013671875, 0.020751953125, -0.00811767578125, 0.00107574462890625, 0.006927490234375, 0.00811767578125, 0.0...
[ 103905, 47, 70, 4336, 594, 1631, 982, 2816, 103149, 502, 4867, 37629, 19713, 6626, 3789, 30700, 26868, 297, 166904, 5701, 1733, 237, 6275 ]
[ 0.2017822265625, 0.060302734375, 0.0648193359375, 0.2000732421875, 0.20654296875, 0.04833984375, 0.12109375, 0.1082763671875, 0.1248779296875, 0.090087890625, 0.13232421875, 0.043731689453125, 0.0253448486328125, 0.0750732421875, 0.053924560546875, 0.1812744140625, 0.14990234375, 0...
embed
16875708_c2
16875708
prolog
2
o C33 = o C13 = o C22 = o C31 = o (4 ms) yes Version information: GNU Prolog 1.3.0 By Daniel Diaz Copyright (C) 1999-2007 Daniel Diaz | ?- Code signals: Why, Attempting, Literally, NOT, Define, win_line, Winner, C11, C12, C13, C21, C22, C23, C31, C32, C34, Test, C33, GNU, Prolog, Daniel, Diaz, Copyright
o C33 = o C13 = o C22 = o C31 = o (4 ms) yes Version information: GNU Prolog 1.3.0 By Daniel Diaz Copyright (C) 1999-2007 Daniel Diaz | ?- Code signals: Why, Attempting, Literally, NOT, Define, win_line, Winner, C11, C12, C13, C21, C22, C23, C31, C32, C34, Test, C33, GNU, Prolog, Daniel, Diaz, Copyright
[ -0.010498046875, 0.0019989013671875, 0.0157470703125, 0.0162353515625, 0.0081787109375, -0.0172119140625, 0.00099945068359375, -0.00689697265625, -0.00994873046875, 0.003662109375, -0.01043701171875, -0.002471923828125, -0.003570556640625, -0.019287109375, -0.01422119140625, 0.00340270...
[ 36, 313, 9185, 2203, 2681, 4015, 5016, 9451, 68163, 16, 72272, 40647, 4677, 165132, 1250, 4867, 615, 132265, 3311, 11555, 4512, 169, 4189, 8272, 126610, 6, 58745, 705, 28864, 26073, 7, 44084, 1913, 34224, 1916, 135940, 12097, 86725, 262, ...
[ 0.1895751953125, 0.16552734375, 0.363037109375, 0.154052734375, 0.29052734375, 0.25244140625, 0.296142578125, 0.162109375, 0.254638671875, 0.067138671875, 0.15869140625, 0.1783447265625, 0.114501953125, 0.249755859375, 0.2034912109375, 0.30224609375, 0.097900390625, 0.2314453125, ...
embed
20189465_c0
20189465
prolog
0
Title: SWI Prolog Database Problem title: SWI Prolog Database Tags: prolog Problem: SWI Prolog Database is there a way I can query a SWI Prolog database to check if it doesn't contain an element? I have tried using "not" but doesn't seem to work with this version of Prolog. Code signals: SWI, Prolog, Database
SWI Prolog Database SWI Prolog Database prolog SWI Prolog Database SWI Prolog Database is there a way I can query a SWI Prolog database to check if it doesn't contain an element? I have tried using "not" but doesn't seem to work with this version of Prolog.
[ 0.012451171875, 0.0242919921875, 0.00244140625, 0.00848388671875, -0.03173828125, 0.0257568359375, 0.01348876953125, -0.006988525390625, 0.00225830078125, -0.0218505859375, -0.00848388671875, 0.002899169921875, -0.01214599609375, -0.0036773681640625, -0.01300048828125, -0.0006790161132...
[ 159, 38969, 1250, 4867, 187781, 502, 3917, 41, 1294, 63399, 12765, 2174, 22027, 18, 70541, 12830, 37842, 10869, 4488, 903, 11389 ]
[ 0.068359375, 0.231689453125, 0.1302490234375, 0.2137451171875, 0.1668701171875, 0.0689697265625, 0.038726806640625, 0.07537841796875, 0.1243896484375, 0.2059326171875, 0.1492919921875, 0.0721435546875, 0.1185302734375, 0.1455078125, 0.1605224609375, 0.2022705078125, 0.02398681640625,...
embed
13484407_c1
13484407
prolog
1
,[red,_50,_52]) ? 5 5 Exit: iright(red,blue,[red,blue,_52]) ? 4 4 Exit: iright(red,blue,[_46,red,blue,_52]) ? 3 3 Exit: nextto(red,blue,[_46,red,blue,_52]) ? 2 2 Fail: \+nextto(red,blue,[_46,red,_50,_52]) ? 1 1 Fail: myprogram(_16) ? (2 ms) no Code signals: Rest, List, Data, Call, _16, _46, _50, _52, Exit, Fail
,[red,_50,_52]) ? 5 5 Exit: iright(red,blue,[red,blue,_52]) ? 4 4 Exit: iright(red,blue,[_46,red,blue,_52]) ? 3 3 Exit: nextto(red,blue,[_46,red,blue,_52]) ? 2 2 Fail: \+nextto(red,blue,[_46,red,_50,_52]) ? 1 1 Fail: myprogram(_16) ? (2 ms) no Code signals: Rest, List, Data, Call, _16, _46, _50, _52, Exit, Fail
[ 0.00025177001953125, 0.01043701171875, 0.023193359375, 0.03955078125, -0.003570556640625, 0.035400390625, -0.01202392578125, 0.00592041015625, 0.01190185546875, -0.017578125, 0.0174560546875, -0.01043701171875, -0.023193359375, 0.0034637451171875, -0.005401611328125, -0.0157470703125, ...
[ 6, 4, 2822, 454, 2525, 12744, 16, 705, 190, 5443, 217, 12, 17, 54969, 143802, 201, 9271, 138, 11737, 188, 190355, 1328, 86, 425, 10628, 759, 18749, 60978, 4700, 68163, 110, 28864, 26073, 7, 49756, 32036, 11809, 26265, 2485 ]
[ 0.03125, 0.0208740234375, 0.171142578125, 0.011810302734375, 0.2130126953125, 0.22021484375, 0.007781982421875, 0.052581787109375, 0.1314697265625, 0.161865234375, 0.133056640625, 0.024200439453125, 0.110595703125, 0.1268310546875, 0.15478515625, 0.05877685546875, 0.207763671875, 0...
embed
65990154_c0
65990154
prolog
0
Title: Prolog take a part of a list Problem title: Prolog take a part of a list Tags: prolog Problem: Prolog take a part of a list How can I take a part of a list? example : ?- part([1,2,3,4,5,6,7,8,9],3,6,Χ). X = [3,4,5,6] The first element should be the start and the second should be the end. Code signals: Prolog
Prolog take a part of a list Prolog take a part of a list prolog Prolog Prolog take a part of a list How can I take a part of a list? example : The first element should be the start and the second should be the end.
[ -0.0029296875, 0.0029754638671875, 0.0230712890625, -0.001861572265625, -0.0244140625, 0.021728515625, -0.0216064453125, 0.016845703125, 0.004974365234375, -0.00121307373046875, 0.01068115234375, 0.0072021484375, -0.0194091796875, 0.017333984375, 0.00970458984375, -0.022705078125, 0....
[ 1250, 4867, 5646, 10, 2831, 111, 5303, 502, 11249, 831, 87, 27781, 5117, 12830, 5608, 186, 70, 4034, 136, 17932, 3564 ]
[ 0.174072265625, 0.2286376953125, 0.212646484375, 0.06256103515625, 0.2423095703125, 0.158447265625, 0.25537109375, 0.12152099609375, 0.030120849609375, 0.092529296875, 0.07073974609375, 0.11029052734375, 0.077880859375, 0.1915283203125, 0.0784912109375, 0.0772705078125, 0.04922485351...
embed
23417454_c0
23417454
prolog
0
Title: List unification in Prolog Problem title: List unification in Prolog Tags: prolog Problem: List unification in Prolog I am a Prolog newbie with very simple question regarding list unification. If [a,b,c] unifies with [a|T] resulting in T=[b,c] why doesn't [a,b,c] unify with [b|T] ? Code signals: List, Prolog
List unification in Prolog List unification in Prolog prolog List Prolog List unification in Prolog I am a Prolog newbie with very simple question regarding list unification. If [a,b,c] unifies with [a|T] resulting in T=[b,c] why doesn't [a,b,c] unify with [b|T] ?
[ 0.0179443359375, 0.0262451171875, 0.0203857421875, 0.006927490234375, -0.0218505859375, -0.0140380859375, -0.0240478515625, 0.006988525390625, 0.002471923828125, 0.0068359375, -0.01043701171875, 0.003875732421875, 0.0091552734375, 0.005645751953125, 0.0037841796875, -0.007293701171875,...
[ 32036, 51, 41274, 23, 1250, 4867, 502, 9014, 8781, 9655, 5303, 275, 238, 27430, 678, 11, 58745, 618, 16750, 384, 1369, 15400, 22027, 18, 40383 ]
[ 0.221923828125, 0.1851806640625, 0.1497802734375, 0.0352783203125, 0.1461181640625, 0.2364501953125, 0.1009521484375, 0.044708251953125, 0.042388916015625, 0.003173828125, 0.2005615234375, 0.0780029296875, 0.0968017578125, 0.13671875, 0.0718994140625, 0.02203369140625, 0.086181640625...
embed
40441970_c0
40441970
prolog
0
Title: Prolog- family tree of children Problem title: Prolog- family tree of children Tags: prolog, traversal, recursion Problem: Prolog- family tree of children If I wanted to recursively go down a family tree in prolog and return only the children of every branch, how would I start that? Thanks Code signals: Prolog
Prolog- family tree of children Prolog- family tree of children prolog traversal recursion Prolog Prolog- family tree of children If I wanted to recursively go down a family tree in prolog and return only the children of every branch, how would I start that? Thanks
[ 0.043212890625, -0.00171661376953125, -0.0019683837890625, -0.003387451171875, 0.00299072265625, 0.0208740234375, -0.01263427734375, -0.0174560546875, 0.01220703125, -0.0546875, -0.0030364990234375, -0.02880859375, -0.029541015625, 0.0179443359375, 0.02197265625, 0.00848388671875, -0...
[ 1250, 4867, 14449, 53201, 20020, 502, 37317, 289, 195625, 1830, 36663, 47, 5844, 538, 738, 7565, 10, 23, 136, 30646, 4734, 11907, 32845, 206, 3642, 4034 ]
[ 0.161376953125, 0.28271484375, 0.1336669921875, 0.256103515625, 0.18798828125, 0.14111328125, 0.1904296875, 0.12225341796875, 0.2264404296875, 0.0784912109375, 0.08843994140625, 0.006160736083984375, 0.1533203125, 0.0858154296875, 0.08502197265625, 0.169677734375, 0.0162506103515625,...
embed
10620756_c0
10620756
prolog
0
Title: List search in Prolog Problem title: List search in Prolog Tags: prolog, list, recursion, search Problem: List search in Prolog I'm trying to make a search in a list in Prolog, but I would like to start right at a certain position. Will I have to do that boring recursive search? Thank you. Code signals: List, Pr...
List search in Prolog List search in Prolog prolog list recursion search List Prolog List search in Prolog I'm trying to make a search in a list in Prolog, but I would like to start right at a certain position. Will I have to do that boring recursive search? Thank you.
[ -0.002471923828125, 0.02197265625, 0.00933837890625, 0.0107421875, -0.01190185546875, 0.0125732421875, -0.00445556640625, 0.01373291015625, 0.004608154296875, -0.0272216796875, 0.00579833984375, -0.005157470703125, -0.0172119140625, 0.0235595703125, 0.005889892578125, -0.00534057617187...
[ 32036, 33938, 23, 1250, 4867, 502, 5303, 195625, 1830, 31577, 10, 1284, 2806, 1884, 4034, 7108, 99, 24233, 19069, 20255, 765, 3017, 214, 5844, 5 ]
[ 0.1854248046875, 0.2291259765625, 0.0765380859375, 0.18359375, 0.2493896484375, 0.1365966796875, 0.1654052734375, 0.201171875, 0.102783203125, 0.0687255859375, 0.0137481689453125, 0.0025157928466796875, 0.03204345703125, 0.06988525390625, 0.10205078125, 0.08514404296875, 0.0454101562...
embed
2849045_c0
2849045
prolog
0
Title: 'if' in prolog? Problem title: 'if' in prolog? Tags: iso-prolog, prolog, logical-purity Problem: 'if' in prolog? Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some actions (write text to the terminal). An else isn't even needed, but I can't find any documentation o...
'if' in prolog? 'if' in prolog? iso-prolog prolog logical-purity 'if' in prolog? Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some actions (write text to the terminal). An else isn't even needed, but I can't find any documentation of if.
[ 0.007415771484375, 0.0013885498046875, 0.01080322265625, 0.007049560546875, -0.0025482177734375, 0.00750732421875, 0.00836181640625, 0.0031280517578125, -0.005523681640625, -0.0096435546875, 0.005279541015625, 0.008544921875, -0.035888671875, -0.00970458984375, 0.0224609375, 0.01892089...
[ 3768, 3190, 23, 502, 4867, 32, 13882, 3454, 62775, 289, 4717, 2481, 10, 3917, 54, 142, 2174, 77336, 83, 757, 61972, 18781, 7986, 47, 33949, 37076, 44841, 209806 ]
[ 0.10595703125, 0.2469482421875, 0.1038818359375, 0.1829833984375, 0.2474365234375, 0.009490966796875, 0.07666015625, 0.1424560546875, 0.1126708984375, 0.05059814453125, 0.1319580078125, 0.08544921875, 0.0140380859375, 0.06756591796875, 0.05975341796875, 0.078369140625, 0.258056640625...
embed
73987851_c0
73987851
prolog
0
Title: Prolog functor , swi-prolog Problem title: Prolog functor , swi-prolog Tags: prolog, swi-prolog Problem: Prolog functor , swi-prolog Check if the predicate functor(Term, F, A) succeeds if Term has functor F and arity A by defining a functor The code I've tried is likes(Mary,pizza) Is this correct? Code signals: ...
Prolog functor , swi-prolog Prolog functor , swi-prolog prolog swi-prolog Prolog Prolog functor , swi-prolog Check if the predicate functor(Term, F, A) succeeds if Term has functor F and arity A by defining a functor The code I've tried is likes(Mary,pizza) Is this correct?
[ 0.026123046875, 0.010986328125, 0.0137939453125, 0.0025787353515625, -0.01611328125, 0.01300048828125, 0.00518798828125, 0.007232666015625, -0.01275634765625, -0.01397705078125, 0.0159912109375, -0.0106201171875, -0.0157470703125, 0.00102996826171875, 0.00640869140625, 0.00335693359375...
[ 1250, 4867, 7477, 18770, 91, 2452, 3454, 502, 38679, 2174, 70, 1653, 2063, 67, 35484, 563, 62, 214493, 7, 2994, 39, 1556, 136, 187, 2481, 13204, 18151, 37842, 1884, 16305, 53, 4, 1434, 7070, 16, 903, 26785 ]
[ 0.1497802734375, 0.2291259765625, 0.1861572265625, 0.212646484375, 0.0212249755859375, 0.1619873046875, 0.12548828125, 0.0828857421875, 0.1651611328125, 0.0797119140625, 0.0047607421875, 0.151123046875, 0.197509765625, 0.0343017578125, 0.1513671875, 0.1544189453125, 0.1173095703125, ...
embed
34611519_c2
34611519
prolog
2
robot_H(D,[],D). robot_H([X,Y,D],[H|T],K):-number(H),move([X,Y,D],H,ND),robot_H(ND,T,K). robot_H([X,Y,D],[H|T],K):- \+number(H),rotate(D,H,D1),robot_H([X,Y,D1],T,K). robot(S,P,K):-commands(P,P1),robot_H(S,P1,K). num(X)-->[X],{number(X)}. So, for instance: ?- robot([0,0,n],[go, 10, turn, Code signals: robot_p, X-V, Y-V...
robot_H(D,[],D). robot_H([X,Y,D],[H|T],K):-number(H),move([X,Y,D],H,ND),robot_H(ND,T,K). robot_H([X,Y,D],[H|T],K):- \+number(H),rotate(D,H,D1),robot_H([X,Y,D1],T,K). robot(S,P,K):-commands(P,P1),robot_H(S,P1,K). num(X)-->[X],{number(X)}. So, for instance: ?- robot([0,0,n],[go, 10, turn, Code signals: robot_p, X-V, Y-V...
[ 0.0108642578125, 0.0067138671875, 0.0240478515625, 0.0185546875, -0.0118408203125, 0.015625, -0.0084228515625, -0.01275634765625, 0.035400390625, -0.0194091796875, -0.00921630859375, -0.01202392578125, -0.0040283203125, -0.002838134765625, -0.0264892578125, -0.0103759765625, 0.024902...
[ 11329, 454, 841, 132, 397, 4, 1065, 194, 1542, 1723, 58745, 618, 605, 2077, 9, 2606, 1297, 247, 432, 272, 25013, 112662, 1328, 109645, 67, 17727, 76172, 294, 683, 277, 12018, 418, 13269, 152745, 1061, 110527, 705, 63527, 19, 519, 209, ...
[ 0.317138671875, 0.093994140625, 0.2239990234375, 0.03448486328125, 0.1260986328125, 0.013275146484375, 0.0184478759765625, 0.08154296875, 0.09295654296875, 0.09521484375, 0.0101318359375, 0.05267333984375, 0.06988525390625, 0.0638427734375, 0.0787353515625, 0.150146484375, 0.16137695...
embed
32579266_c0
32579266
prolog
0
Title: What does the operator `-->` in Prolog do? Problem title: What does the operator `-->` in Prolog do? Tags: prolog, operators, dcg Problem: What does the operator `-->` in Prolog do? What does the --> operator do in Prolog and what is the difference between it and :- ? I'm using SWI Prolog. Code signals: Wh...
What does the operator `-->` in Prolog do? What does the operator `-->` in Prolog do? prolog operators dcg What Prolog What does the operator `-->` in Prolog do? What does the --> operator do in Prolog and what is the difference between it and :- ? I'm using SWI Prolog.
[ 0.052978515625, 0.004852294921875, 0.0302734375, 0.0174560546875, -0.005035400390625, 0.0250244140625, 0.00274658203125, 0.004730224609375, 0.0037841796875, -0.0208740234375, -0.007354736328125, -0.0191650390625, -0.007598876953125, 0.001800537109375, 0.00909423828125, 0.00267028808593...
[ 4865, 14602, 39933, 9, 1230, 5386, 23, 1250, 4867, 54, 502, 7, 104, 238, 177, 70, 152745, 1135, 129908, 2367, 60212, 17721, 442, 136, 15772, 17368, 159, 38969 ]
[ 0.043670654296875, 0.059844970703125, 0.23779296875, 0.0726318359375, 0.07122802734375, 0.149169921875, 0.06805419921875, 0.1727294921875, 0.2469482421875, 0.10888671875, 0.11767578125, 0.0009188652038574219, 0.033966064453125, 0.01837158203125, 0.09228515625, 0.03277587890625, 0.193...
embed
67642302_c3
67642302
prolog
3
% moving down only from the middle and top rows from the three % indicies. % move down from the top row move([999,X1,X2, X3,X4,X5, X6,X7,X8], [X3,X1,X2, 999,X4,X5, X6,X7,X8]). %first move([X0,999,X2, X3,X4,X5, X6,X7,X8], [X0,X4,X2, Code signals: bottom, the, Prolog, Blank, Case_1, Case_2, Path, Checked, MoveList, Snex...
% moving down only from the middle and top rows from the three % indicies. % move down from the top row move([999,X1,X2, X3,X4,X5, X6,X7,X8], [X3,X1,X2, 999,X4,X5, X6,X7,X8]). %first move([X0,999,X2, X3,X4,X5, X6,X7,X8], [X0,X4,X2, Code signals: bottom, the, Prolog, Blank, Case_1, Case_2, Path, Checked, MoveList, Snex...
[ 0.00946044921875, 0.0106201171875, 0.0233154296875, 0.0018310546875, 0.001953125, 0.00994873046875, 0.017333984375, 0.026123046875, 0.01348876953125, 0.018798828125, -0.01025390625, -0.0264892578125, -0.0086669921875, 0.01287841796875, -0.0279541015625, -0.0087890625, 0.0060424804687...
[ 1745, 98567, 7565, 4734, 1295, 86991, 136, 2663, 15555, 7, 17262, 141496, 90, 5, 25813, 65040, 1542, 418, 304, 4, 1193, 363, 617, 758, 910, 966, 1019, 105546, 194, 13448, 271, 2389, 28864, 26073, 103136, 70, 1250, 4867, 132862, 43731, 1...
[ 0.1907958984375, 0.16357421875, 0.2120361328125, 0.0911865234375, 0.09326171875, 0.11962890625, 0.008026123046875, 0.1116943359375, 0.2012939453125, 0.037384033203125, 0.11376953125, 0.228271484375, 0.0723876953125, 0.037841796875, 0.21240234375, 0.1790771484375, 0.067626953125, 0....
embed
16002546_c0
16002546
prolog
0
Title: input/output parameters in prolog definition Problem title: input/output parameters in prolog definition Tags: prolog Problem: input/output parameters in prolog definition Is there any difference between the input/output parameters in prolog definitions? How does this this compare with other languages such as sc...
input/output parameters in prolog definition input/output parameters in prolog definition prolog input/output parameters in prolog definition Is there any difference between the input/output parameters in prolog definitions? How does this this compare with other languages such as scheme and C ?
[ 0.01611328125, 0.0194091796875, 0, -0.0032958984375, -0.013916015625, 0.006622314453125, -0.015869140625, -0.01165771484375, 0.0024261474609375, 0.020751953125, 0.018310546875, -0.02490234375, -0.01904296875, -0.0037078857421875, 0.0196533203125, -0.005950927734375, 0.01007080078125,...
[ 107730, 64, 6056, 7077, 171859, 7, 502, 4867, 80934, 2499, 60212, 17721, 69101, 46876, 150370, 313 ]
[ 0.222900390625, 0.086669921875, 0.196044921875, 0.1280517578125, 0.2509765625, 0.00952911376953125, 0.1556396484375, 0.2403564453125, 0.189208984375, 0.0104522705078125, 0.1644287109375, 0.08331298828125, 0.07183837890625, 0.14697265625, 0.1373291015625, 0.051605224609375 ]
embed
3333404_c0
3333404
prolog
0
Title: prolog IDE in Ubuntu 9.10 Problem title: prolog IDE in Ubuntu 9.10 Tags: ide, prolog Problem: prolog IDE in Ubuntu 9.10 I am starting off learning Prolog. I am on Ubuntu 9.10, can someone suggest an IDE to me ? Unfortunately SCITE doesn't support Prolog and I am trying to avoid Eclipse and NetBean. Code signals:...
prolog IDE in Ubuntu 9.10 prolog IDE in Ubuntu 9.10 ide prolog IDE Ubuntu prolog IDE in Ubuntu 9.10 I am starting off learning Prolog. I am on Ubuntu 9.10, can someone suggest an IDE to me ? Unfortunately SCITE doesn't support Prolog and I am trying to avoid Eclipse and NetBean.
[ 0.039794921875, 0.0115966796875, 0.00567626953125, 0.0164794921875, -0.00958251953125, 0.0089111328125, 0.014404296875, -0.0004520416259765625, -0.00077056884765625, -0.0191650390625, 0.013671875, 0.0014495849609375, -0.0126953125, -0.0023651123046875, 0.00946044921875, -0.015625, 0....
[ 502, 4867, 36497, 23, 116890, 3569, 963, 5415, 6, 72134, 5773, 52080, 1250, 98, 42459, 142, 17715, 25216, 22027, 18, 8060, 71864, 234962, 10086, 6766, 66 ]
[ 0.1837158203125, 0.26416015625, 0.267333984375, 0.10894775390625, 0.177490234375, 0.2286376953125, 0.2412109375, 0.1939697265625, 0.01552581787109375, 0.00922393798828125, 0.028533935546875, 0.05072021484375, 0.174072265625, 0.03228759765625, 0.06439208984375, 0.003116607666015625, 0...
embed
1053425_c0
1053425
prolog
0
Title: Prolog Compiler for .Net Problem title: Prolog Compiler for .Net Tags: .net, prolog Problem: Prolog Compiler for .Net Can anyone recommend a Prolog compiler for .Net. The ones that I have been able to find searching the net, do not appear to have been updated for several years. Thanks Shiraz Code signals: Prolog...
Prolog Compiler for .Net Prolog Compiler for .Net .net prolog Prolog Compiler Net Prolog Compiler for .Net Can anyone recommend a Prolog compiler for .Net. The ones that I have been able to find searching the net, do not appear to have been updated for several years. Thanks Shiraz
[ 0.020751953125, 0.0206298828125, 0.015869140625, 0.0013580322265625, -0.017333984375, 0.017578125, -0.01348876953125, -0.0038909912109375, -0.00860595703125, -0.04638671875, -0.0172119140625, 0.0269775390625, 0.000919342041015625, -0.005950927734375, 0.022705078125, -0.0030059814453125...
[ 1250, 4867, 15612, 34759, 100, 5, 24447, 1179, 502, 10086, 4171, 35672, 67330, 10, 9969, 64333, 157318, 959, 108975, 150011, 40368, 5369, 5272 ]
[ 0.189208984375, 0.25634765625, 0.1864013671875, 0.224365234375, 0.0928955078125, 0.0723876953125, 0.2169189453125, 0.172119140625, 0.1492919921875, 0.159423828125, 0.045318603515625, 0.037872314453125, 0.10955810546875, 0.0782470703125, 0.177490234375, 0.03173828125, 0.02410888671875...
embed
23173786_c0
23173786
prolog
0
Title: Resolving constraints in Prolog Problem title: Resolving constraints in Prolog Tags: constraint-programming, clpfd, prolog Problem: Resolving constraints in Prolog I am looking resources for learning resolving of constraints in Prolog. For example, List=[X, Y, Z], List ins 1..4, X - Y #= Z. Code signals: Resolvi...
Resolving constraints in Prolog Resolving constraints in Prolog constraint-programming clpfd prolog Resolving Prolog List Resolving constraints in Prolog I am looking resources for learning resolving of constraints in Prolog. For example,
[ 0.006072998046875, -0.00823974609375, 0.01373291015625, 0.0142822265625, 0.00146484375, -0.0037841796875, -0.01043701171875, 0.01092529296875, 0.0048828125, -0.02294921875, -0.018310546875, -0.029296875, 0.0036163330078125, 0.01806640625, 0.00439453125, 0.002838134765625, 0.020751953...
[ 853, 132944, 214, 158, 2816, 4288, 23, 1250, 4867, 28966, 39557, 71, 502, 32036, 65514, 52080, 166996, 449 ]
[ 0.0243988037109375, 0.1708984375, 0.0293121337890625, 0.0887451171875, 0.1690673828125, 0.1279296875, 0.050872802734375, 0.1478271484375, 0.2392578125, 0.07452392578125, 0.0120849609375, 0.04681396484375, 0.0941162109375, 0.0931396484375, 0.07763671875, 0.056915283203125, 0.153442382...
embed
45025388_c1
45025388
prolog
1
is Cs+C. boat(A,B,C):- member([A,B,C],[[0,1],[1,0],[1,1],[2,0],[0,2]]). my_write([]). my_write([H|T]):- write(H), nl, my_write(T). I hope you all can help me to fix this code so it can run well when I consult in GNU Prolog. Code signals: Three, Path, my_write, State, Sol, As1, Bs1, Cs1, Ad1, Bd1, Cd1, As-A, Bs-B, Cs-C...
is Cs+C. boat(A,B,C):- member([A,B,C],[[0,1],[1,0],[1,1],[2,0],[0,2]]). my_write([]). my_write([H|T]):- write(H), nl, my_write(T). I hope you all can help me to fix this code so it can run well when I consult in GNU Prolog. Code signals: Three, Path, my_write, State, Sol, As1, Bs1, Cs1, Ad1, Bd1, Cd1, As-A, Bs-B, Cs-C...
[ -0.006683349609375, -0.0031280517578125, -0.002960205078125, 0.006439208984375, -0.01055908203125, 0.0107421875, -0.01239013671875, -0.01251220703125, 0.0126953125, -0.00009870529174804688, -0.00518798828125, 0.000438690185546875, 0.005401611328125, 0.0206298828125, -0.019775390625, 0....
[ 83, 313, 7, 1328, 441, 5, 139098, 284, 4, 571, 2077, 9, 32786, 2389, 76172, 206808, 216969, 90173, 759, 434, 18781, 841, 58745, 618, 33022, 13169, 15673, 756, 831, 4358, 30022, 903, 18151, 11675, 75463, 165132, 1250, 4867, 28864, 26073, ...
[ 0.130615234375, 0.1519775390625, 0.1712646484375, 0.25048828125, 0.1873779296875, 0.0716552734375, 0.29248046875, 0.060638427734375, 0.0276641845703125, 0.0946044921875, 0.00762939453125, 0.0285491943359375, 0.239501953125, 0.032684326171875, 0.033111572265625, 0.1138916015625, 0.145...
embed
49926507_c0
49926507
prolog
0
Title: Prolog Comparing List Problem title: Prolog Comparing List Tags: prolog Problem: Prolog Comparing List Write a predicate that shows whether or not list 1 ends with the same elements as list 2. So something like endsWith([a,b,c,d,e], [c,d,e]) is true while endsWith([a,b,c,d,e], [c,e,d]) is false Code signals: Pro...
Prolog Comparing List Prolog Comparing List prolog Prolog Comparing List Prolog Comparing List Write a predicate that shows whether or not list 1 ends with the same elements as list 2. So something like endsWith([a,b,c,d,e], [c,d,e]) is true while endsWith([a,b,c,d,e], [c,e,d]) is false
[ 0.0157470703125, 0.023681640625, -0.0108642578125, 0.01434326171875, -0.0048828125, 0.01031494140625, -0.004119873046875, 0.01531982421875, 0.01031494140625, 0.009765625, 0.01043701171875, 0.00970458984375, 0.009521484375, 0.00848388671875, -0.0030517578125, -0.000263214111328125, 0....
[ 1250, 4867, 113307, 32036, 214, 502, 601, 18781, 1653, 2063, 67, 45831, 36766, 707, 959, 5303, 106, 3564, 7, 678, 5701, 80854, 237, 787, 1884, 194583, 11, 275, 238, 71, 13, 83, 29568, 12960, 98320 ]
[ 0.1546630859375, 0.228271484375, 0.201904296875, 0.1990966796875, 0.030731201171875, 0.09771728515625, 0.0386962890625, 0.062744140625, 0.1898193359375, 0.2239990234375, 0.129150390625, 0.1258544921875, 0.05743408203125, 0.0237274169921875, 0.06280517578125, 0.2196044921875, 0.098022...
embed
56208074_c0
56208074
prolog
0
Title: Two objective functions Problem title: Two objective functions Tags: prolog, eclipse-clp Problem: Two objective functions If we have two objective functions in Eclipse CLP that Cost1 is more important than Cost2 , is the following true? minimize(minimize(labeling(Vars), Cost1), Costs2). Code signals: Two, Cost1,...
Two objective functions Two objective functions prolog eclipse-clp Two Cost1 Cost2 Vars Costs2 Two objective functions If we have two objective functions in Eclipse CLP that Cost1 is more important than Cost2 , is the following true?
[ 0.034912109375, 0.0067138671875, -0.00921630859375, 0.032470703125, 0.00537109375, 0.0101318359375, -0.00518798828125, 0.00189208984375, 0.02294921875, -0.01531982421875, 0.01458740234375, 0.00396728515625, 0.004302978515625, 0.00262451171875, 0.0164794921875, -0.01043701171875, -0.0...
[ 32964, 151814, 32354, 502, 4867, 106371, 184, 26775, 63099, 418, 304, 3323, 6626, 7, 234962, 313, 37352, 1286, 5526, 3501, 83, 25632, 29568 ]
[ 0.1524658203125, 0.256103515625, 0.18115234375, 0.104248046875, 0.163330078125, 0.137451171875, 0.059173583984375, 0.10174560546875, 0.2083740234375, 0.11407470703125, 0.1702880859375, 0.1171875, 0.1324462890625, 0.0733642578125, 0.254150390625, 0.00460052490234375, 0.201904296875, ...
embed
58847706_c0
58847706
prolog
0
Title: prolog : How to check if the first character is uppercase Problem title: prolog : How to check if the first character is uppercase Tags: prolog, swi-prolog Problem: prolog : How to check if the first character is uppercase I would like to know how to check if the first character of string is a uppercase in prolo...
prolog : How to check if the first character is uppercase prolog : How to check if the first character is uppercase prolog swi-prolog How prolog : How to check if the first character is uppercase I would like to know how to check if the first character of string is a uppercase in prolog .
[ 0.01129150390625, -0.01507568359375, 0.0125732421875, 0.019775390625, -0.01202392578125, -0.007354736328125, 0.01416015625, 0.0035247802734375, -0.00762939453125, -0.0172119140625, 0.0076904296875, -0.00921630859375, -0.01080322265625, 0.0026092529296875, -0.0086669921875, 0.0016021728...
[ 502, 4867, 11249, 47, 12765, 2174, 5117, 62816, 83, 1407, 56, 58437, 2452, 3454, 1884, 3714, 3642, 111, 79315, 10, 23, 6 ]
[ 0.1617431640625, 0.228759765625, 0.041534423828125, 0.047515869140625, 0.1890869140625, 0.09637451171875, 0.1483154296875, 0.204833984375, 0.08941650390625, 0.1336669921875, 0.129638671875, 0.2274169921875, 0.1044921875, 0.10968017578125, 0.036376953125, 0.0222320556640625, 0.0223846...
embed
70746559_c1
70746559
prolog
1
8, 10, 15], [12, 13, 3, 6], [7, 2, 16, 9], [14, 11, 5, 4]] 8x8 magic square(doesnt work): ?- magic_square(8, Matrix). 65 130 false. Code signals: Prolog, use_module, diag2_sum, Row1, Row3, nth1, diag_sum, Tail, square_sum_x, Row2, Elem1, Elem2, Elem3, Elem4, square_sum_y, Matrix, magic_square_, Nmax, same_length, all_d...
8, 10, 15], [12, 13, 3, 6], [7, 2, 16, 9], [14, 11, 5, 4]] 8x8 magic square(doesnt work): ?- magic_square(8, Matrix). 65 130 false. Code signals: Prolog, use_module, diag2_sum, Row1, Row3, nth1, diag_sum, Tail, square_sum_x, Row2, Elem1, Elem2, Elem3, Elem4, square_sum_y, Matrix, magic_square_, Nmax, same_length, all_d...
[ -0.00946044921875, 0.0260009765625, 0.032958984375, -0.004547119140625, 0.00830078125, 0.01953125, -0.0322265625, 0.020263671875, 0.0166015625, -0.005157470703125, -0.004119873046875, 0.0137939453125, 0.006439208984375, -0.01202392578125, -0.021240234375, -0.014404296875, -0.01202392...
[ 382, 4, 209, 423, 268, 1530, 17480, 138, 305, 966, 116, 611, 483, 2592, 534, 190, 201, 86245, 425, 1019, 49846, 6, 108047, 246, 90, 660, 4488, 705, 9, 194234, 5684, 11777, 98320, 28864, 26073, 7, 1250, 4867, 4527, 83279, 45, 2703, 3...
[ 0.210693359375, 0.01593017578125, 0.1748046875, 0.2049560546875, 0.02130126953125, 0.1258544921875, 0.1068115234375, 0.0943603515625, 0.1044921875, 0.06060791015625, 0.0288848876953125, 0.1395263671875, 0.127685546875, 0.1275634765625, 0.06768798828125, 0.06451416015625, 0.0968017578...
embed
20297765_c0
20297765
prolog
0
Title: Converting 1st letter of atom in Prolog Problem title: Converting 1st letter of atom in Prolog Tags: prolog Problem: Converting 1st letter of atom in Prolog How to convert 1st letter of an atom in uppercase letter in LPA prolog? the only way I know is using 'lwrupr'. But it capitalizes all the letters. Code sign...
Converting 1st letter of atom in Prolog Converting 1st letter of atom in Prolog prolog Converting Prolog Converting 1st letter of atom in Prolog How to convert 1st letter of an atom in uppercase letter in LPA prolog? the only way I know is using 'lwrupr'. But it capitalizes all the letters.
[ 0.005096435546875, 0.00396728515625, 0.0035858154296875, 0.0179443359375, 0.010009765625, 0.007659912109375, 0.00970458984375, -0.01068115234375, -0.01324462890625, -0.006591796875, -0.012451171875, 0.01544189453125, -0.0002880096435546875, 0.0147705078125, 0.01556396484375, -0.0035705...
[ 1657, 814, 1916, 106, 271, 31330, 111, 34627, 23, 1250, 4867, 502, 11249, 47, 96760, 1407, 56, 58437, 339, 12236, 70, 3917, 3714, 17368, 141, 434, 9167, 42, 10323, 20650, 756, 120820, 5 ]
[ 0.0716552734375, 0.1514892578125, 0.0635986328125, 0.12109375, 0.134033203125, 0.2078857421875, 0.03143310546875, 0.2271728515625, 0.068115234375, 0.16357421875, 0.260986328125, 0.134033203125, 0.005523681640625, 0.05126953125, 0.1953125, 0.097412109375, 0.06390380859375, 0.1571044...
embed
15870175_c0
15870175
prolog
0
Title: How to ignore choicepoints in prolog PL Unit testing? Problem title: How to ignore choicepoints in prolog PL Unit testing? Tags: prolog, unit-testing Problem: How to ignore choicepoints in prolog PL Unit testing? In prolog PL Unit testing, how can you ignore the warning messages that talk of choicepoints? Thanks...
How to ignore choicepoints in prolog PL Unit testing? How to ignore choicepoints in prolog PL Unit testing? prolog unit-testing How Unit How to ignore choicepoints in prolog PL Unit testing? In prolog PL Unit testing, how can you ignore the warning messages that talk of choicepoints? Thanks.
[ -0.005645751953125, 0.00775146484375, 0.01708984375, -0.0089111328125, -0.0274658203125, 0.0001850128173828125, 0.008544921875, -0.00811767578125, 0.0166015625, 0.0118408203125, -0.0137939453125, 0.00628662109375, -0.0208740234375, 0.01123046875, 0.00141143798828125, 0.00787353515625, ...
[ 11249, 47, 124962, 44126, 38496, 7, 23, 502, 4867, 33106, 46640, 134234, 25072, 6954, 3642, 1631, 592, 89914, 22120, 5 ]
[ 0.0682373046875, 0.0645751953125, 0.193115234375, 0.1556396484375, 0.1749267578125, 0.06011962890625, 0.0010881423950195312, 0.095947265625, 0.1837158203125, 0.1536865234375, 0.1312255859375, 0.1700439453125, 0.11346435546875, 0.125732421875, 0.0152435302734375, 0.0623779296875, 0.02...
embed
4649855_c0
4649855
prolog
0
Title: Prolog: Simple DCG a^n b^n Problem title: Prolog: Simple DCG a^n b^n Tags: prolog, grammar, dcg Problem: Prolog: Simple DCG a^n b^n I've been trying to get used to using DCGs in Prolog and failing. How can I define a set of grammar rules to accept the language a^n b^n? E.g. aaaabbbb or ab etc... Thanks :). Code ...
Prolog: Simple DCG a^n b^n Prolog: Simple DCG a^n b^n prolog grammar dcg Prolog Simple DCG Prolog: Simple DCG a^n b^n I've been trying to get used to using DCGs in Prolog and failing. How can I define a set of grammar rules to accept the language a^n b^n? E.g. aaaabbbb or ab etc... Thanks :).
[ 0.02587890625, -0.0026092529296875, -0.0064697265625, 0.037353515625, -0.00592041015625, 0.0302734375, -0.0203857421875, -0.01043701171875, 0.021728515625, -0.031982421875, -0.0017852783203125, -0.0169677734375, -0.00689697265625, 0.0030517578125, 0.00982666015625, -0.00138092041015625...
[ 1250, 4867, 12, 60552, 391, 56367, 10, 8353, 19, 876, 502, 122092, 147, 104, 238, 177, 31577, 2046, 11814, 17368, 7, 23, 35782, 214, 11249, 831, 61924, 5423, 91736, 47, 26946, 46876, 11, 10545, 5125, 707, 1563, 22362 ]
[ 0.1824951171875, 0.26708984375, 0.042388916015625, 0.181884765625, 0.13330078125, 0.26220703125, 0.084228515625, 0.0928955078125, 0.0889892578125, 0.09521484375, 0.159423828125, 0.1539306640625, 0.14013671875, 0.07183837890625, 0.053497314453125, 0.0745849609375, 0.0401611328125, 0...
embed
47890614_c0
47890614
prolog
0
Title: Code a recursive asterisk function in prolog with spaces Problem title: Code a recursive asterisk function in prolog with spaces Tags: prolog Problem: Code a recursive asterisk function in prolog with spaces I am to write a predicate in prolog which takes an integer X and outputs a mirrored asterisk pattern: ***...
Code a recursive asterisk function in prolog with spaces Code a recursive asterisk function in prolog with spaces prolog Code a recursive asterisk function in prolog with spaces I am to write a predicate in prolog which takes an integer X and outputs a mirrored asterisk pattern:
[ 0.00028228759765625, -0.015869140625, -0.00982666015625, -0.006866455078125, -0.006256103515625, 0.04052734375, -0.0035552978515625, -0.010986328125, 0.00762939453125, 0.0220947265625, 0.0228271484375, -0.010498046875, -0.0203857421875, 0.001190185546875, 0.01092529296875, 0.0022735595...
[ 28864, 195625, 5844, 10, 1515, 6581, 32354, 502, 4867, 678, 32628, 23, 7, 1653, 2063, 51776, 892, 1505, 1193, 140992, 191551, 103510 ]
[ 0.148681640625, 0.1953125, 0.1307373046875, 0.0231475830078125, 0.1234130859375, 0.16650390625, 0.167236328125, 0.13427734375, 0.2186279296875, 0.06439208984375, 0.1982421875, 0.007297515869140625, 0.0003268718719482422, 0.0728759765625, 0.11175537109375, 0.006671905517578125, 0.0470...
embed
8638737_c0
8638737
prolog
0
Title: adding elements in prolog Problem title: adding elements in prolog Tags: prolog Problem: adding elements in prolog I am writing a prolog code and in the middle I want to add 2 variables and store it in one of them I want to write some like this N is N+R. but it wont accept this can anyone tell me why and whats i...
adding elements in prolog adding elements in prolog prolog adding elements in prolog I am writing a prolog code and in the middle I want to add 2 variables and store it in one of them I want to write some like this but it wont accept this can anyone tell me why and whats is the correct syntax Thank you
[ -0.00482177734375, 0.00543212890625, -0.00775146484375, 0.0135498046875, 0.0067138671875, 0.0184326171875, -0.0096435546875, -0.000640869140625, -0.006927490234375, -0.05029296875, 0.02880859375, -0.0042724609375, -0.0181884765625, -0.0084228515625, 0.00148773193359375, -0.017456054687...
[ 154107, 80854, 23, 502, 4867, 32562, 18151, 86991, 3444, 15190, 116, 77336, 4343, 1632, 33022, 23742, 18, 26946, 14192, 15400, 26785, 6002, 86531 ]
[ 0.153564453125, 0.206298828125, 0.047943115234375, 0.1436767578125, 0.247314453125, 0.0567626953125, 0.09735107421875, 0.10308837890625, 0.052734375, 0.14404296875, 0.11370849609375, 0.244873046875, 0.13623046875, 0.004364013671875, 0.07611083984375, 0.042449951171875, 0.041564941406...
embed
61347814_c1
61347814
prolog
1
11, P21, P31, P41, P51], [a, P23, P33, P43, P53]]).P11 = d, true. ?- equal([[a, m, e, n, o]],[[P11, P21, P31, P41, P51], [a, P23, P33, P43, P53]]). false. Program: isSubset([],_). isSubset([H|T],Y):- member(H,Y), select(H,Y,Z), isSubset(T,Z). equal(X,Y):- isSubset(X,Y), isSubset(Y,X). Code signals: Checking, P11, P21, ...
11, P21, P31, P41, P51], [a, P23, P33, P43, P53]]).P11 = d, true. ?- equal([[a, m, e, n, o]],[[P11, P21, P31, P41, P51], [a, P23, P33, P43, P53]]). false. Program: isSubset([],_). isSubset([H|T],Y):- member(H,Y), select(H,Y,Z), isSubset(T,Z). equal(X,Y):- isSubset(X,Y), isSubset(Y,X). Code signals: Checking, P11, P21, ...
[ 0.009033203125, 0.006317138671875, 0.0299072265625, 0.02392578125, -0.0203857421875, -0.006500244140625, -0.0067138671875, -0.0172119140625, 0.01336669921875, 0.0281982421875, 0.0057373046875, 0.022705078125, 0.005340576171875, -0.01263427734375, -0.018798828125, -0.005767822265625, ...
[ 534, 4, 436, 3117, 5016, 8894, 11703, 11, 3742, 9185, 11548, 14226, 683, 1662, 2203, 104, 29568, 705, 9, 105950, 347, 28, 653, 36, 98320, 7663, 83, 96472, 3509, 132, 841, 58745, 618, 1723, 32786, 36849, 1511, 1542, 28864, 26073, 38679, ...
[ 0.1868896484375, 0.04144287109375, 0.1539306640625, 0.20458984375, 0.2109375, 0.1802978515625, 0.1866455078125, 0.071533203125, 0.1358642578125, 0.15576171875, 0.150390625, 0.186767578125, 0.130126953125, 0.2320556640625, 0.06427001953125, 0.1343994140625, 0.179931640625, 0.0982666...
embed
30167357_c0
30167357
prolog
0
Title: How can I make Prolog speak? Problem title: How can I make Prolog speak? Tags: text-to-speech, prolog Problem: How can I make Prolog speak? I have a list which holds some string values. A = [John, goes, to, party]. How can I pass this text to speech? Can any one tell me how to do text to speech conversion in pro...
How can I make Prolog speak? How can I make Prolog speak? text-to-speech prolog How Prolog John How can I make Prolog speak? I have a list which holds some string values. How can I pass this text to speech? Can any one tell me how to do text to speech conversion in prolog?
[ 0.0174560546875, -0.006591796875, 0.00567626953125, 0.036865234375, -0.0142822265625, 0.00103759765625, 0.007354736328125, 0.000751495361328125, -0.004669189453125, -0.046875, -0.0115966796875, -0.0030670166015625, -0.0010528564453125, 0.0004138946533203125, 0.0301513671875, -0.0224609...
[ 11249, 831, 87, 3249, 1250, 4867, 70424, 7986, 188, 9217, 7101, 502, 4939, 5303, 16401, 79315, 142424, 27875, 47, 116483, 3642, 142477 ]
[ 0.08026123046875, 0.07208251953125, 0.0560302734375, 0.10919189453125, 0.16748046875, 0.26416015625, 0.229248046875, 0.16845703125, 0.107177734375, 0.141845703125, 0.101806640625, 0.11932373046875, 0.177490234375, 0.111083984375, 0.005558013916015625, 0.12164306640625, 0.089782714843...
embed
70779553_c0
70779553
prolog
0
Title: Can't get all result of query in prolog Problem title: Can't get all result of query in prolog Tags: prolog Problem: Can't get all result of query in prolog When I query remove_row([[r,r],[b,b]],A), it is supposed to get A of value [[e,e],[b,b]] and [[r,r],[e,e]], but I only get the fisrt value and the...
Can't get all result of query in prolog Can't get all result of query in prolog prolog Can Can't get all result of query in prolog When I query remove_row([[r,r],[b,b]],A), it is supposed to get A of value [[e,e],[b,b]] and [[r,r],[e,e]], but I only get the fisrt value and the program get stuck
[ 0.0103759765625, 0.018798828125, 0.01708984375, 0.017333984375, -0.0264892578125, -0.0262451171875, -0.004241943359375, 0.0159912109375, 0.00335693359375, -0.02294921875, 0.0181884765625, -0.003326416015625, -0.00897216796875, 0.0038909912109375, -0.004150390625, 0.011962890625, 0.00...
[ 4171, 3768, 2046, 756, 16750, 111, 41, 1294, 23, 502, 4867, 18, 87388, 15555, 42, 275, 284, 134598, 62, 34292, 13, 4734, 43894, 3198, 1528, 179933 ]
[ 0.033660888671875, 0.05645751953125, 0.0986328125, 0.09912109375, 0.1668701171875, 0.08154296875, 0.1124267578125, 0.1212158203125, 0.039947509765625, 0.1485595703125, 0.240966796875, 0.048583984375, 0.1832275390625, 0.1910400390625, 0.0369873046875, 0.0248565673828125, 0.04064941406...
embed
61295015_c1
61295015
prolog
1
#, append(ACE,[P],NACE), espaco_fila(R,E,ACP,NACE). espaco_fila([P|R],E,ACP,ACE) :- P == #, length(ACE,COMP), COMP >= 3,!, append(ACP,ACE,NACP), espaco_fila([],E,NACP,[]). espaco_fila([P|R],E,ACP,ACE) :- P == #, length(ACE,COMP), COMP < 3,!, espaco_fila(R,E,ACP,[]). Really any help would be appreciated. Code signals: ...
#, append(ACE,[P],NACE), espaco_fila(R,E,ACP,NACE). espaco_fila([P|R],E,ACP,ACE) :- P == #, length(ACE,COMP), COMP >= 3,!, append(ACP,ACE,NACP), espaco_fila([],E,NACP,[]). espaco_fila([P|R],E,ACP,ACE) :- P == #, length(ACE,COMP), COMP < 3,!, espaco_fila(R,E,ACP,[]). Really any help would be appreciated. Code signals: ...
[ -0.00830078125, -0.006988525390625, 0.007598876953125, 0.041259765625, 0.0118408203125, 0.006195068359375, -0.01226806640625, 0.01312255859375, 0.037109375, 0.01239013671875, 0.018798828125, -0.0169677734375, 0.0174560546875, 0.0021209716796875, -0.0223388671875, -0.0167236328125, 0....
[ 468, 114689, 71, 61019, 683, 839, 101404, 587, 119948, 1052, 647, 17854, 454, 58745, 284, 15772, 436, 69112, 140909, 16113, 61898, 977, 138, 38, 6691, 194, 4426, 5120, 2499, 4358, 2806, 77947, 5, 28864, 26073, 7, 12, 62, 541, 3076 ]
[ 0.1275634765625, 0.1729736328125, 0.095947265625, 0.166015625, 0.14013671875, 0.10791015625, 0.19580078125, 0.2147216796875, 0.2734375, 0.06756591796875, 0.088134765625, 0.1845703125, 0.0338134765625, 0.053863525390625, 0.0167388916015625, 0.05401611328125, 0.1099853515625, 0.09533...
embed
24314558_c0
24314558
prolog
0
Title: Prolog representation of list of empty lists Problem title: Prolog representation of list of empty lists Tags: nested-lists, list, prolog Problem: Prolog representation of list of empty lists Is there a way in SWI-Prolog to represent a list of empty lists? like: [[],[]], [[],[],[]], [[],[],[],[]] I want somethin...
Prolog representation of list of empty lists Prolog representation of list of empty lists nested-lists list prolog Prolog Prolog representation of list of empty lists Is there a way in SWI-Prolog to represent a list of empty lists? like: I want something like this
[ 0.0228271484375, -0.0004711151123046875, 0.006988525390625, 0.0034942626953125, -0.0224609375, 0.0294189453125, 0.0012359619140625, -0.01806640625, -0.00144195556640625, -0.00146484375, 0.00146484375, -0.025634765625, -0.01171875, 0.013671875, 0.0069580078125, 0.0031585693359375, 0.0...
[ 1250, 4867, 18811, 5303, 201505, 8512, 71, 6562, 502, 111, 10, 3917, 159, 38969, 10752, 47, 33636, 7, 87, 3444, 9844, 1884, 903 ]
[ 0.1295166015625, 0.2421875, 0.1822509765625, 0.219482421875, 0.2391357421875, 0.14404296875, 0.018707275390625, 0.19091796875, 0.0565185546875, 0.0537109375, 0.000152587890625, 0.08038330078125, 0.048919677734375, 0.1751708984375, 0.1182861328125, 0.0211334228515625, 0.2174072265625,...
embed
41532369_c0
41532369
prolog
0
Title: Between predicate for floating numbers Problem title: Between predicate for floating numbers Tags: prolog Problem: Between predicate for floating numbers is there any built-in predicate like between for floating numbers? It is important that the predicate can also generate numbers. And if not, how can I write it...
Between predicate for floating numbers Between predicate for floating numbers prolog Between Between predicate for floating numbers is there any built-in predicate like between for floating numbers? It is important that the predicate can also generate numbers. And if not, how can I write it for myself? Thanks!
[ -0.005279541015625, -0.0048828125, -0.009765625, -0.01025390625, 0.0052490234375, 0.0277099609375, 0.01263427734375, -0.010986328125, 0.0179443359375, 0.0069580078125, -0.0019683837890625, 0.01324462890625, 0.01165771484375, -0.0036468505859375, 0.0272216796875, -0.004791259765625, 0...
[ 6300, 1177, 33, 1653, 2063, 67, 100, 21917, 26518, 101935, 502, 4867, 83, 2685, 2499, 88303, 73, 1884, 17721, 5526, 831, 2843, 139392, 3642, 33022, 442, 35978 ]
[ 0.1348876953125, 0.226806640625, 0.2005615234375, 0.1627197265625, 0.209228515625, 0.12249755859375, 0.0531005859375, 0.1788330078125, 0.115234375, 0.1607666015625, 0.1336669921875, 0.1866455078125, 0.0191192626953125, 0.034149169921875, 0.042083740234375, 0.12384033203125, 0.0930175...
embed
32932627_c0
32932627
prolog
0
Title: arithmetic variables in prolog Problem title: arithmetic variables in prolog Tags: prolog Problem: arithmetic variables in prolog I want to process arithmetic expressions with variables in it. Variables should be left as it is, and the other parts should be calculated. For example, ?-result(7*x,R). R=7*x. ?-resu...
arithmetic variables in prolog arithmetic variables in prolog prolog arithmetic variables in prolog I want to process arithmetic expressions with variables in it. Variables should be left as it is, and the other parts should be calculated. For example, How should I do this?
[ 0.00897216796875, -0.0108642578125, -0.002899169921875, 0.00970458984375, 0.006011962890625, 0.0146484375, 0.004669189453125, 0.0107421875, 0.01513671875, -0.0302734375, -0.005950927734375, 0.01312255859375, -0.02099609375, -0.0031280517578125, 0.0152587890625, 0.00738525390625, 0.00...
[ 187, 8962, 282, 9523, 77336, 23, 502, 4867, 7, 3444, 9433, 125195, 678, 442, 111477, 13566, 5608, 25737, 237, 83, 63920, 74481, 3674 ]
[ 0.05426025390625, 0.1556396484375, 0.09490966796875, 0.0574951171875, 0.2548828125, 0.05889892578125, 0.167724609375, 0.25927734375, 0.00630950927734375, 0.08721923828125, 0.131103515625, 0.1954345703125, 0.0665283203125, 0.049896240234375, 0.1527099609375, 0.08721923828125, 0.009368...
embed
38150077_c1
38150077
prolog
1
ver, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever] ; L = [fever] ; L = [fever] ; L = []. I want disease with number of common symptoms to be shown. Code signals: Comparing, Prolog, runny_nose, sore_throat, Symptom, List...
ver, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever, cough] ; L = [fever] ; L = [fever] ; L = [fever] ; L = []. I want disease with number of common symptoms to be shown. Code signals: Comparing, Prolog, runny_nose, sore_throat, Symptom, List...
[ 0.01171875, -0.01708984375, 0.00151824951171875, 0.0191650390625, -0.005096435546875, 0.01263427734375, -0.0125732421875, 0.0220947265625, 0.031494140625, -0.031005859375, 0.00069427490234375, 0.0115966796875, 0.000453948974609375, 0.000598907470703125, -0.01531982421875, 0.00527954101...
[ 493, 4, 552, 58968, 2819, 339, 2203, 2242, 814, 3444, 70997, 678, 14012, 39210, 153698, 186, 127887, 28864, 26073, 7, 113307, 214, 1250, 4867, 11675, 299, 157, 184, 127124, 42294, 257, 149450, 32036, 60816, 13538, 6562, 159, 154663 ]
[ 0.24072265625, 0.07220458984375, 0.06744384765625, 0.2252197265625, 0.040130615234375, 0.1822509765625, 0.137451171875, 0.09027099609375, 0.132568359375, 0.114990234375, 0.1790771484375, 0.02215576171875, 0.07861328125, 0.1397705078125, 0.16943359375, 0.001373291015625, 0.13098144531...
embed
45895090_c0
45895090
prolog
0
Title: Converting to Horn Form from CNF Problem title: Converting to Horn Form from CNF Tags: sat-solvers, prolog Problem: Converting to Horn Form from CNF How do you convert a CNF clauses to a Horn form using Prolog? I am trying to create a SAT Solver that has CNF as an input, which will be need to convert to Horn for...
Converting to Horn Form from CNF Converting to Horn Form from CNF sat-solvers prolog CNF Converting Horn Form Converting to Horn Form from CNF How do you convert a CNF clauses to a Horn form using Prolog? I am trying to create a SAT Solver that has CNF as an input, which will be need to convert to Horn form.
[ 0.02294921875, 0.0048828125, -0.011474609375, 0.00148773193359375, -0.0263671875, -0.00341796875, -0.002593994140625, -0.0022735595703125, -0.0125732421875, -0.0390625, -0.01422119140625, -0.0263671875, -0.0196533203125, 0.0164794921875, 0.00087738037109375, -0.0211181640625, 0.00909...
[ 1657, 814, 1916, 47, 78315, 15236, 1295, 313, 73493, 11736, 8748, 7864, 502, 4867, 54, 398, 96760, 70731, 90, 10, 3173, 17368, 1250, 31577, 28282, 75210, 6678, 237, 107730, 3871 ]
[ 0.0640869140625, 0.1336669921875, 0.0699462890625, 0.09893798828125, 0.25439453125, 0.24755859375, 0.0972900390625, 0.0859375, 0.260986328125, 0.08245849609375, 0.0986328125, 0.096923828125, 0.072265625, 0.22265625, 0.0217437744140625, 0.0195465087890625, 0.176513671875, 0.17858886...
embed
50822038_c0
50822038
prolog
0
Title: Print repeated elements from list - prolog Problem title: Print repeated elements from list - prolog Tags: prolog Problem: Print repeated elements from list - prolog I am new at prolog. I need to write a simple program that print all elements that repeat in list more than once ([1,2,f,3,f,2] will return [f,2]). ...
Print repeated elements from list - prolog Print repeated elements from list - prolog prolog list Print Print repeated elements from list - prolog I am new at prolog. I need to write a simple program that print all elements that repeat in list more than once ([1,2,f,3,f,2] will return [f,2]). Thanks for any help!
[ 0.0034027099609375, 0.00007534027099609375, -0.003692626953125, 0.0267333984375, -0.0004444122314453125, 0.0220947265625, 0.005615234375, 0.0042724609375, -0.00634765625, -0.01092529296875, -0.0054931640625, -0.0228271484375, -0.0021209716796875, -0.005950927734375, -0.0103759765625, 0...
[ 39754, 119140, 297, 80854, 1295, 5303, 502, 4867, 3525, 99, 3871, 33022, 8781, 1528, 28412, 756, 450, 23, 1286, 24145, 133063, 420, 363, 90173, 1221, 30646, 4358 ]
[ 0.216796875, 0.28515625, 0.123291015625, 0.2144775390625, 0.11260986328125, 0.18994140625, 0.1446533203125, 0.2178955078125, 0.0697021484375, 0.0234375, 0.059173583984375, 0.07562255859375, 0.09100341796875, 0.1348876953125, 0.1968994140625, 0.0615234375, 0.0096435546875, 0.0119476...
embed
5873775_c0
5873775
prolog
0
Title: Is there a recommendable Prolog IDE for the Mac? Problem title: Is there a recommendable Prolog IDE for the Mac? Tags: ide, macos, prolog Problem: Is there a recommendable Prolog IDE for the Mac? I'd love to do some stuff in Prolog. Just need a good IDE for the Mac to make it not a pain in the butt. Which IDE do...
Is there a recommendable Prolog IDE for the Mac? Is there a recommendable Prolog IDE for the Mac? ide macos prolog Prolog IDE Mac Is there a recommendable Prolog IDE for the Mac? I'd love to do some stuff in Prolog. Just need a good IDE for the Mac to make it not a pain in the butt. Which IDE do you recommend?
[ 0.02685546875, 0.01214599609375, 0.0050048828125, 0.02978515625, 0.0016632080078125, 0.0245361328125, 0.001434326171875, -0.00164031982421875, -0.01446533203125, -0.0174560546875, 0.00433349609375, -0.0004825592041015625, -0.00994873046875, -0.0155029296875, 0.029052734375, -0.01062011...
[ 2071, 2685, 10, 67330, 2886, 1250, 4867, 6, 36497, 100, 4727, 70, 5415, 291, 7840, 502, 5161, 54, 3871, 4127, 24503, 1284 ]
[ 0.005401611328125, 0.045196533203125, 0.060760498046875, 0.1470947265625, 0.1060791015625, 0.1943359375, 0.27392578125, 0.07012939453125, 0.275146484375, 0.1168212890625, 0.1796875, 0.0081787109375, 0.18994140625, 0.045013427734375, 0.1068115234375, 0.153564453125, 0.099853515625, ...
embed
71684234_c0
71684234
prolog
0
Title: Removing duplicates in lists within a list Problem title: Removing duplicates in lists within a list Tags: list, prolog Problem: Removing duplicates in lists within a list How would I go about removing duplicate elements of a list that is itself within a list? For example [[x,x],[x,y],[y,y,z]] should be returned...
Removing duplicates in lists within a list Removing duplicates in lists within a list list prolog Removing Removing duplicates in lists within a list How would I go about removing duplicate elements of a list that is itself within a list? For example [[x,x],[x,y],[y,y,z]] should be returned as [[x],[x,y],[y,z]] .
[ -0.0015411376953125, 0.0169677734375, 0.005157470703125, 0.0027923583984375, -0.0177001953125, 0.0067138671875, 0.01123046875, 0.007293701171875, 0.0024871826171875, -0.0234375, -0.027099609375, 0.0024566650390625, 0.0111083984375, 0.0220947265625, -0.0224609375, 0.01708984375, 0.008...
[ 853, 432, 6496, 171763, 1636, 23, 5303, 7, 28032, 502, 4867, 2806, 1672, 49146, 67, 80854, 111, 83, 68034, 1326, 27781, 425, 53, 4, 169, 5608, 176377, 237 ]
[ 0.0489501953125, 0.147705078125, 0.0943603515625, 0.293701171875, 0.180908203125, 0.1048583984375, 0.2381591796875, 0.0291290283203125, 0.1673583984375, 0.0938720703125, 0.147705078125, 0.0214080810546875, 0.043426513671875, 0.127197265625, 0.152099609375, 0.1265869140625, 0.06781005...
embed
62528211_c0
62528211
prolog
0
Title: Prolog: How to load a prolog program in Qprolog? Problem title: Prolog: How to load a prolog program in Qprolog? Tags: prolog Problem: Prolog: How to load a prolog program in Qprolog? I'm running following command to load consumer.pl in command prompt. But it is not working. | ?- consult('C:\QuProlog\examples\co...
Prolog: How to load a prolog program in Qprolog? Prolog: How to load a prolog program in Qprolog? prolog Prolog How Qprolog Prolog: How to load a prolog program in Qprolog? I'm running following command to load consumer.pl in command prompt. But it is not working. | ?- consult('C:\QuProlog\examples\consumer.ql').
[ 0.0201416015625, 0.003753662109375, 0.0004119873046875, 0.0155029296875, -0.02392578125, 0.0245361328125, -0.00518798828125, 0.01220703125, -0.000614166259765625, -0.05078125, 0.0025787353515625, 0.0196533203125, -0.002288818359375, -0.041259765625, 0.01092529296875, -0.0284423828125, ...
[ 1250, 4867, 11249, 47, 72367, 502, 1528, 23, 2396, 3454, 10, 51042, 25632, 75101, 107222, 5, 2424, 105876, 959, 20697, 75463, 31583, 10752, 3355, 302, 25553, 316, 99247 ]
[ 0.16259765625, 0.259033203125, 0.0623779296875, 0.0266571044921875, 0.216552734375, 0.17333984375, 0.2099609375, 0.10430908203125, 0.1373291015625, 0.19580078125, 0.030548095703125, 0.08685302734375, 0.06036376953125, 0.183837890625, 0.27490234375, 0.037689208984375, 0.2034912109375,...
embed
16380060_c0
16380060
prolog
0
Title: Using subtract predicate in swi prolog Problem title: Using subtract predicate in swi prolog Tags: prolog Problem: Using subtract predicate in swi prolog I need to subtract certain numbers from the given list. I use SWI Prolog. This was what I did. subtract([1,4],[1,2,3,4,5],'L') But it doesnt seem to working in...
Using subtract predicate in swi prolog Using subtract predicate in swi prolog prolog Using Using subtract predicate in swi prolog I need to subtract certain numbers from the given list. I use SWI Prolog. This was what I did. But it doesnt seem to working in SWI prolog..pls help me....
[ -0.00286865234375, 0.008544921875, 0.0101318359375, -0.00726318359375, -0.03271484375, 0.00445556640625, -0.004974365234375, 0.025146484375, 0.011474609375, -0.0263671875, -0.0011444091796875, -0.003662109375, -0.0089111328125, 0.0089111328125, -0.01336669921875, 0.00019550323486328125...
[ 345, 1614, 39989, 18, 1653, 2063, 67, 91, 2452, 502, 4867, 6953, 23, 3871, 24233, 101935, 1295, 34475, 5303, 4527, 159, 38969, 1250, 48903, 20697, 2424, 4358 ]
[ 0.0550537109375, 0.17138671875, 0.20263671875, 0.10498046875, 0.1468505859375, 0.1846923828125, 0.0753173828125, 0.03900146484375, 0.17333984375, 0.129150390625, 0.1719970703125, 0.017242431640625, 0.0155181884765625, 0.0894775390625, 0.00177001953125, 0.1370849609375, 0.019760131835...
embed
65168649_c0
65168649
prolog
0
Title: most general unifier of n(a,b) and f(x,y) Problem title: most general unifier of n(a,b) and f(x,y) Tags: unify, unification, prolog Problem: most general unifier of n(a,b) and f(x,y) I know what means unification and I solved most questions but I could't really understand the mean of this questions. how can I un...
most general unifier of n(a,b) and f(x,y) most general unifier of n(a,b) and f(x,y) unify unification prolog most general unifier of n(a,b) and f(x,y) I know what means unification and I solved most questions but I could't really understand the mean of this questions. how can I unify these two functions. it looks a lit...
[ 0.0003833770751953125, -0.002655029296875, 0.01055908203125, -0.013671875, -0.01055908203125, 0.004364013671875, 0.0001926422119140625, -0.0225830078125, 0.010009765625, -0.01373291015625, -0.01007080078125, -0.033935546875, 0.0140380859375, -0.022216796875, -0.01239013671875, -0.01599...
[ 2684, 4537, 51, 85789, 653, 11, 275, 136, 1238, 425, 53, 40383, 41274, 502, 4867, 3714, 26950, 86869, 28219, 29459, 17582, 3642, 831, 87, 6097, 6626, 32354, 33342, 10176, 179459 ]
[ 0.146728515625, 0.18359375, 0.1929931640625, 0.2220458984375, 0.0872802734375, 0.032867431640625, 0.11181640625, 0.0225830078125, 0.1357421875, 0.04034423828125, 0.0931396484375, 0.21142578125, 0.234619140625, 0.1202392578125, 0.1763916015625, 0.0360107421875, 0.1112060546875, 0.02...
embed
41296280_c0
41296280
prolog
0
Title: How to define predicate in prolog programming? Problem title: How to define predicate in prolog programming? Tags: prolog Problem: How to define predicate in prolog programming? Define the following predicate into a prolog program so that Min is the smaller of two numbers X and Y . min (X, Y, Min) Can you help m...
How to define predicate in prolog programming? How to define predicate in prolog programming? prolog How Min How to define predicate in prolog programming? Can you help me understand the question?
[ 0.0120849609375, 0.0025634765625, 0.0208740234375, 0.0166015625, -0.01019287109375, 0.03466796875, 0.01904296875, -0.004486083984375, -0.002044677734375, 0.001800537109375, 0.00145721435546875, -0.01263427734375, 0.00016021728515625, -0.02783203125, 0.020751953125, 0.01336669921875, ...
[ 11249, 47, 61924, 1653, 2063, 67, 23, 502, 4867, 56037, 4211, 449 ]
[ 0.040496826171875, 0.02862548828125, 0.19384765625, 0.1845703125, 0.24169921875, 0.17138671875, 0.0230865478515625, 0.12420654296875, 0.1717529296875, 0.1331787109375, 0.1495361328125, 0.01082611083984375 ]
embed
16245785_c0
16245785
prolog
0
Title: Prolog: list of lists (size N x N) Problem title: Prolog: list of lists (size N x N) Tags: list, matrix, prolog Problem: Prolog: list of lists (size N x N) I need to make list of the lists witch will be some kind of matrix, in size N x N for same N, and I don't know how to declare that all the elements of list m...
Prolog: list of lists (size N x N) Prolog: list of lists (size N x N) list matrix prolog Prolog Prolog: list of lists (size N x N) I need to make list of the lists witch will be some kind of matrix, in size N x N for same N, and I don't know how to declare that all the elements of list must be lists with N elements?
[ 0.0196533203125, -0.0017852783203125, 0.01007080078125, -0.015869140625, -0.0037841796875, 0.0194091796875, -0.00009250640869140625, -0.0000743865966796875, 0.00689697265625, 0.003082275390625, -0.0009918212890625, -0.029296875, -0.00555419921875, -0.0130615234375, -0.0167236328125, 0....
[ 1250, 4867, 12, 5303, 111, 7, 62539, 541, 1022, 50944, 425, 502, 87, 3871, 3249, 70, 131519, 1221, 186, 8562, 23, 13267, 100, 5701, 18, 3714, 159978, 756, 80854, 8110, 678 ]
[ 0.1634521484375, 0.258056640625, 0.0271759033203125, 0.2454833984375, 0.0859375, 0.12158203125, 0.115234375, 0.1602783203125, 0.11865234375, 0.20849609375, 0.108154296875, 0.1219482421875, 0.027099609375, 0.0828857421875, 0.0595703125, 0.0207977294921875, 0.192138671875, 0.03634643...
embed
22889046_c0
22889046
prolog
0
Title: Appending lists in prolog without repetition Problem title: Appending lists in prolog without repetition Tags: prolog Problem: Appending lists in prolog without repetition I need to know how can i get all of combination of appending two lists with each other without repetition like [1,2] & [3,4] the result will ...
Appending lists in prolog without repetition Appending lists in prolog without repetition prolog Appending Appending lists in prolog without repetition I need to know how can i get all of combination of appending two lists with each other without repetition like [1,2] & [3,4] the result will be [1,3] [1,4] [2,3] [2,4]
[ -0.0045166015625, 0.019775390625, -0.000762939453125, 0.0123291015625, -0.000732421875, -0.00213623046875, -0.00347900390625, 0.016357421875, 0.0264892578125, -0.0123291015625, -0.007659912109375, -0.01385498046875, 0.0023040771484375, 0.02099609375, 0.006011962890625, 0.00405883789062...
[ 5787, 96819, 5303, 23, 502, 4867, 15490, 57346, 1363, 7, 3871, 3714, 3642, 831, 2046, 756, 111, 162515, 1747, 6626, 678, 12638, 3789, 90173, 619, 82449, 16750, 96386, 163324, 155761, 617 ]
[ 0.1251220703125, 0.1871337890625, 0.243408203125, 0.045074462890625, 0.1724853515625, 0.2286376953125, 0.1444091796875, 0.2315673828125, 0.00091552734375, 0.005950927734375, 0.0221710205078125, 0.01617431640625, 0.010772705078125, 0.0254669189453125, 0.076171875, 0.0826416015625, 0.0...
embed
50906973_c0
50906973
prolog
0
Title: Simple derivation in Prolog Problem title: Simple derivation in Prolog Tags: prolog Problem: Simple derivation in Prolog I have a question about Prolog. I want to obtain a result like this in Prolog : What i have not clear is : since CanFly(Superman) must be a term, in this case a function. Is is possible to ach...
Simple derivation in Prolog Simple derivation in Prolog prolog Simple Prolog Simple derivation in Prolog I have a question about Prolog. I want to obtain a result like this in Prolog : What i have not clear is : since CanFly(Superman) must be a term, in this case a function. Is is possible to achieve this derivation ?
[ 0.04052734375, 0.0157470703125, -0.005584716796875, 0.0164794921875, 0.00579833984375, 0.0126953125, -0.004974365234375, -0.0023345947265625, 0.00131988525390625, -0.041748046875, 0.01025390625, -0.015869140625, -0.018310546875, 0.00958251953125, -0.005340576171875, -0.0001907348632812...
[ 60552, 30057, 1363, 23, 1250, 4867, 502, 113054, 16750, 1884, 34735, 16792, 4171, 919, 538, 73903, 669, 8110, 186, 10, 13579, 7225, 32354, 7722, 69307 ]
[ 0.1927490234375, 0.1873779296875, 0.036376953125, 0.023406982421875, 0.155517578125, 0.2266845703125, 0.10760498046875, 0.01259613037109375, 0.08099365234375, 0.032806396484375, 0.059051513671875, 0.0703125, 0.1875, 0.1541748046875, 0.2088623046875, 0.154541015625, 0.168212890625, ...
embed
70699787_c0
70699787
prolog
0
Title: Prolog: Predicate that checks yes \= yes outputs yes Problem title: Prolog: Predicate that checks yes \= yes outputs yes Tags: prolog Problem: Prolog: Predicate that checks yes \= yes outputs yes foo(X) :- bar(X) \= baz(X). ?- bar(2). yes ?- baz(2). yes ?- foo(2). yes Why does foo(2) output yes? If we query yes ...
Prolog: Predicate that checks yes \= yes outputs yes Prolog: Predicate that checks yes \= yes outputs yes prolog Prolog Predicate Prolog: Predicate that checks yes \= yes outputs yes Why does foo(2) output yes? If we query yes \= yes we get a no.
[ 0.007537841796875, 0.00927734375, -0.00933837890625, 0.0015106201171875, -0.0086669921875, 0.0146484375, 0.0069580078125, -0.0028076171875, -0.009521484375, 0.03271484375, -0.00494384765625, 0.0089111328125, -0.01092529296875, 0.0198974609375, 0.009521484375, -0.0089111328125, 0.0038...
[ 1250, 4867, 12, 7145, 2063, 67, 450, 12765, 7, 72272, 41872, 1369, 140992, 502, 44084, 14602, 5775, 31, 40970, 4263, 642, 41, 1294, 6, 2046, 110 ]
[ 0.171142578125, 0.2457275390625, 0.0226287841796875, 0.182373046875, 0.1702880859375, 0.09930419921875, 0.0732421875, 0.2239990234375, 0.036529541015625, 0.2275390625, 0.077392578125, 0.0877685546875, 0.21435546875, 0.1328125, 0.09564208984375, 0.0718994140625, 0.196044921875, 0.21...
embed
34481939_c0
34481939
prolog
0
Title: How to get a few result from object in Prolog Problem title: How to get a few result from object in Prolog Tags: prolog Problem: How to get a few result from object in Prolog Example: specialization(saw, wood). specialization(plane, wood). spec_Q(X):- specialization(S,X), //do something with S . But S return onl...
How to get a few result from object in Prolog How to get a few result from object in Prolog prolog object How Prolog spec_Q How to get a few result from object in Prolog Example: But S return only 1 result
[ 0.028076171875, -0.004364013671875, 0.00799560546875, -0.0213623046875, -0.01092529296875, 0.00469970703125, -0.010498046875, -0.00131988525390625, 0.03173828125, -0.0262451171875, 0.0140380859375, -0.010986328125, -0.006500244140625, -0.01373291015625, -0.00145721435546875, 0.00830078...
[ 11249, 2046, 10846, 16750, 1295, 36746, 1250, 4867, 47, 502, 48502, 2737, 23, 89536, 159, 30646, 4734, 106 ]
[ 0.0010776519775390625, 0.10546875, 0.172119140625, 0.2138671875, 0.06854248046875, 0.2076416015625, 0.1431884765625, 0.2286376953125, 0.007495880126953125, 0.1021728515625, 0.1929931640625, 0.163330078125, 0.00565338134765625, 0.0146942138671875, 0.059478759765625, 0.12255859375, 0.0...
embed
61032742_c2
61032742
prolog
2
defined for the L outside the goal. Although here we read: This features Code signals: Generating, Prolog, side_effect_and_unify, Called, Returning, Cond, Action, _32964, _33490, _33496, _33502, _29916, _30434, _30440, _30446, _31202, _31208, _31214, Out, _28410, _29046, _29052, _29058, Goal, _24336, _24912, _24918, _...
defined for the L outside the goal. Although here we read: This features Code signals: Generating, Prolog, side_effect_and_unify, Called, Returning, Cond, Action, _32964, _33490, _33496, _33502, _29916, _30434, _30440, _30446, _31202, _31208, _31214, Out, _28410, _29046, _29052, _29058, Goal, _24336, _24912, _24918, _...
[ 0.023681640625, 0.017333984375, -0.005767822265625, -0.023681640625, 0.000926971435546875, -0.0169677734375, 0.00069427490234375, -0.0068359375, 0.01556396484375, 0.0081787109375, -0.01068115234375, 0.00262451171875, -0.0111083984375, 0.001312255859375, 0.0250244140625, 0.0073547363281...
[ 61924, 71, 100, 70, 339, 50782, 69236, 5, 106073, 3688, 642, 12301, 3293, 66139, 28864, 26073, 7, 155370, 1916, 1250, 4867, 5609, 171760, 2940, 309, 40383, 26265, 297, 173340, 214, 1657, 57945, 363, 4235, 13307, 124618, 5039, 11648, 45160, ...
[ 0.1904296875, 0.098876953125, 0.04791259765625, 0.0625, 0.2220458984375, 0.2493896484375, 0.26171875, 0.029693603515625, 0.1007080078125, 0.012542724609375, 0.0006103515625, 0.1058349609375, 0.110595703125, 0.186279296875, 0.26416015625, 0.28076171875, 0.0958251953125, 0.1484375, ...
embed
10878127_c0
10878127
prolog
0
Title: how to implement if-then-else in prolog Problem title: how to implement if-then-else in prolog Tags: prolog Problem: how to implement if-then-else in prolog I have tried so many things but I could not found How I can implement following wish in prolog . if list is empty call foo function else do nothing What I d...
how to implement if-then-else in prolog how to implement if-then-else in prolog prolog how to implement if-then-else in prolog I have tried so many things but I could not found How I can implement following wish in prolog . What I did: But, it does not work
[ -0.004791259765625, -0.00823974609375, 0.00848388671875, 0.0079345703125, -0.0022430419921875, 0.007171630859375, 0.001922607421875, 0.017578125, 0.009033203125, -0.00640869140625, 0.0191650390625, -0.010498046875, -0.0194091796875, 0.00518798828125, 0.0247802734375, -0.01458740234375,...
[ 3642, 47, 29479, 2174, 92733, 5557, 23, 502, 4867, 9, 37842, 5941, 11249, 25632, 32599, 959, 4488 ]
[ 0.0799560546875, 0.04888916015625, 0.2423095703125, 0.2279052734375, 0.220458984375, 0.2379150390625, 0.072265625, 0.147705078125, 0.2308349609375, 0.0037689208984375, 0.0025043487548828125, 0.0167999267578125, 0.01837158203125, 0.2342529296875, 0.264892578125, 0.021484375, 0.0318603...
embed
31939658_c0
31939658
prolog
0
Title: Display a list in its &#x27;raw&#x27; ./2 format Problem title: Display a list in its &#x27;raw&#x27; ./2 format Tags: prolog, list Problem: Display a list in its 'raw' ./2 format Is it possible to display a Prolog list in its ./2 format, e.g. for the list: | ?- L=[a,b,c]. L = [a,b,c] ? yes Is there a means to d...
Display a list in its &#x27;raw&#x27; ./2 format Display a list in its &#x27;raw&#x27; ./2 format prolog list Display Display a list in its 'raw' ./2 format Is it possible to display a Prolog list in its ./2 format, e.g. for the list: Is there a means to display:
[ 0.031005859375, 0.0128173828125, 0.01806640625, 0.0162353515625, -0.01318359375, 0.007049560546875, 0.00604248046875, 0.01025390625, 0.01708984375, 0.00057220458984375, 0.0079345703125, -0.00823974609375, -0.024658203125, 0.00836181640625, -0.01141357421875, 0.01495361328125, 0.01226...
[ 90045, 5303, 23, 6863, 3768, 81456, 5, 12477, 9384, 502, 4867, 7722, 47, 44116, 1250, 10, 26950 ]
[ 0.177001953125, 0.23193359375, 0.03643798828125, 0.04229736328125, 0.010528564453125, 0.20361328125, 0.08917236328125, 0.2314453125, 0.2078857421875, 0.149169921875, 0.25146484375, 0.123779296875, 0.000152587890625, 0.1922607421875, 0.179931640625, 0.001129150390625, 0.098388671875 ]
embed
40966039_c0
40966039
prolog
0
Title: Prolog Empty list within lists Problem title: Prolog Empty list within lists Tags: prolog Problem: Prolog Empty list within lists I'm learning Prolog and an exercise in a course says to erase every atomic element in a list, that may be an overlapping list. If I have clean([1,[2,[3],4],5],L). It should become L =...
Prolog Empty list within lists Prolog Empty list within lists prolog Prolog Empty Prolog Empty list within lists I'm learning Prolog and an exercise in a course says to erase every atomic element in a list, that may be an overlapping list. If I have It should become How can it be done?
[ 0.0234375, 0.004730224609375, 0.0030975341796875, 0.0172119140625, -0.00433349609375, 0.018310546875, 0.0031280517578125, -0.01611328125, 0.0115966796875, 0.0098876953125, -0.00909423828125, -0.003753662109375, -0.0140380859375, 0.0036468505859375, 0.003387451171875, 0.0072021484375, ...
[ 1250, 4867, 31678, 939, 5303, 28032, 502, 52080, 81979, 15411, 1615, 184, 11907, 34627, 1771, 12830, 1543, 645, 143, 26783, 765, 1650, 5608, 24209, 442, 16940 ]
[ 0.1373291015625, 0.237548828125, 0.1817626953125, 0.123779296875, 0.2078857421875, 0.1849365234375, 0.07305908203125, 0.03955078125, 0.06500244140625, 0.0181427001953125, 0.1407470703125, 0.1251220703125, 0.09521484375, 0.1214599609375, 0.038543701171875, 0.148193359375, 0.0252075195...
embed
49443539_c2
49443539
prolog
2
, Q) is true if and only if Q is the list Code signals: a, P, the, T, Haskell, Prolog, Point, Pair, Triple, Predicate, CCW, Real, Bool, x2-x1, y3-y1, x3-x1, y2-y1, Convert, Generate, Each, x:xs, prefix_all, pairs_all, is_ccw, ccw_triples, pairs_of_points, triples_of_points, is_delaunay_triangle, delaunay_triangles, Del...
, Q) is true if and only if Q is the list Code signals: a, P, the, T, Haskell, Prolog, Point, Pair, Triple, Predicate, CCW, Real, Bool, x2-x1, y3-y1, x3-x1, y2-y1, Convert, Generate, Each, x:xs, prefix_all, pairs_all, is_ccw, ccw_triples, pairs_of_points, triples_of_points, is_delaunay_triangle, delaunay_triangles, Del...
[ 0.002288818359375, 0.004486083984375, 0.01043701171875, 0.000156402587890625, -0.00390625, -0.00634765625, -0.00182342529296875, -0.0269775390625, 0.0223388671875, 0.0185546875, 0.0048828125, 0.007080078125, 0.006134033203125, -0.01434326171875, -0.0296630859375, 0.01300048828125, 0....
[ 4, 2396, 16, 83, 29568, 2174, 136, 4734, 70, 5303, 28864, 26073, 7, 12, 10, 436, 384, 20625, 142508, 1250, 4867, 41097, 1342, 481, 55903, 133, 7145, 2063, 67, 21581, 1456, 5120, 2460, 929, 1022, 18504, 425, 418, 113, 27495, 53, 1657, ...
[ 0.06365966796875, 0.2325439453125, 0.0927734375, 0.1097412109375, 0.256103515625, 0.1072998046875, 0.022369384765625, 0.1124267578125, 0.1488037109375, 0.2607421875, 0.28271484375, 0.301025390625, 0.1605224609375, 0.032073974609375, 0.1116943359375, 0.11083984375, 0.10546875, 0.149...
embed
10202666_c0
10202666
prolog
0
Title: Prolog Create a List Problem title: Prolog Create a List Tags: list, prolog, insert-update Problem: Prolog Create a List I have to create list of n elements for example, do_list(5,L1). should return, L1=[1,2,3,4,5]. This is what I have, but it's not working. do_list(X,L1):- X1 is X-1, do_list(X1,[X1|L1]). do_lis...
Prolog Create a List Prolog Create a List list prolog insert-update Prolog Create List do_list X-1 Prolog Create a List I have to create list of n elements for example, should return, This is what I have, but it's not working.
[ 0.00982666015625, 0.004547119140625, 0.000774383544921875, 0.006103515625, -0.01458740234375, 0.0184326171875, -0.024658203125, 0.00750732421875, 0.01287841796875, -0.0272216796875, 0.015380859375, -0.036865234375, -0.0101318359375, 0.001953125, 0.016357421875, 0.0181884765625, 0.029...
[ 1250, 4867, 151313, 10, 32036, 5303, 502, 183540, 117008, 54, 6562, 1193, 5759, 765, 28282, 111, 653, 80854, 27781, 5608, 30646, 3293, 83, 2367, 87, 1284, 7, 959, 20697 ]
[ 0.16748046875, 0.2509765625, 0.18408203125, 0.0933837890625, 0.262451171875, 0.2008056640625, 0.1304931640625, 0.1614990234375, 0.1500244140625, 0.1085205078125, 0.2244873046875, 0.10638427734375, 0.126953125, 0.1419677734375, 0.1865234375, 0.02197265625, 0.1187744140625, 0.1757812...
embed
67385812_c0
67385812
prolog
0
Title: how to detect a list of lists in Prolog? Problem title: how to detect a list of lists in Prolog? Tags: nested-lists, prolog Problem: how to detect a list of lists in Prolog? lol([]). lol([H|T]) :- lol(T). lol([H|T]) :- lol(H). I tried using this, but it returns true even for a normal 1d list. how to get exactly ...
how to detect a list of lists in Prolog? how to detect a list of lists in Prolog? nested-lists prolog Prolog how to detect a list of lists in Prolog? I tried using this, but it returns true even for a normal 1d list. how to get exactly true for 2d list? Or list in a list.
[ 0.006256103515625, 0.0032806396484375, 0.00189971923828125, 0.0107421875, -0.00982666015625, 0.032958984375, 0.007476806640625, -0.0069580078125, -0.0125732421875, 0.0037384033203125, 0.0225830078125, -0.03466796875, -0.004974365234375, 0.007415771484375, 0.00701904296875, -0.005493164...
[ 3642, 47, 96391, 5303, 111, 7, 23, 1250, 4867, 8512, 71, 6562, 502, 37842, 17368, 30646, 29568, 3638, 106, 2046, 66161, 116 ]
[ 0.0386962890625, 0.021942138671875, 0.20849609375, 0.220703125, 0.06671142578125, 0.059600830078125, 0.05816650390625, 0.150146484375, 0.2174072265625, 0.136962890625, 0.067138671875, 0.1798095703125, 0.068359375, 0.0004963874816894531, 0.004489898681640625, 0.05194091796875, 0.13562...
embed
78363184_c1
78363184
prolog
1
3)). obsta(e(7, 4)). obsta(e(4, 4)). obsta(e(3, 4)). obsta(e(2, 4)). obsta(e(6, 7)). equals(A, A). %state operator -> op(actual_state, operator, next_state, cost) op(e(La, Ca, Lm, Cm), up, e(Ls, Cs, Lms, Cms), 1) :- Ls is La + 1. Code signals: instantiation_error, AgentLine, AgentColumn, MachineLine, MachineColumn, in...
3)). obsta(e(7, 4)). obsta(e(4, 4)). obsta(e(3, 4)). obsta(e(2, 4)). obsta(e(6, 7)). equals(A, A). %state operator -> op(actual_state, operator, next_state, cost) op(e(La, Ca, Lm, Cm), up, e(Ls, Cs, Lms, Cms), 1) :- Ls is La + 1. Code signals: instantiation_error, AgentLine, AgentColumn, MachineLine, MachineColumn, in...
[ -0.005828857421875, 0.00130462646484375, 0.01153564453125, 0.00970458984375, 0.0159912109375, 0.00830078125, -0.0184326171875, 0.0152587890625, 0.0257568359375, -0.003509521484375, -0.00360107421875, -0.0048828125, 0.031982421875, -0.00439453125, -0.016357421875, -0.0057373046875, 0....
[ 8439, 194, 99662, 13, 966, 13956, 105801, 86827, 4, 139303, 49413, 105950, 7, 284, 62, 1745, 61340, 39933, 33079, 233, 112302, 11737, 11034, 16, 2729, 2041, 39, 1257, 28, 866, 313, 4432, 247, 4879, 15772, 339, 83, 239, 997, 615, 28864, ...
[ 0.1602783203125, 0.058074951171875, 0.2578125, 0.0941162109375, 0.0821533203125, 0.1153564453125, 0.051666259765625, 0.02191162109375, 0.055267333984375, 0.042510986328125, 0.0518798828125, 0.128662109375, 0.10137939453125, 0.038055419921875, 0.05718994140625, 0.07080078125, 0.171752...
embed
66840316_c0
66840316
prolog
0
Title: What do I miss in my compare list prolog program? Problem title: What do I miss in my compare list prolog program? Tags: prolog Problem: What do I miss in my compare list prolog program? isgreater([H1|T1],[H2|T2],D):- H1 > H2,isgreater(T1,T2,['Yes'|D]). isgreater([H1|T1],[H2|T2],D):- H1 =< H2,isgreater(T1,T2,['N...
What do I miss in my compare list prolog program? What do I miss in my compare list prolog program? prolog What Yes Call _49600 Fail Redo Exit What do I miss in my compare list prolog program? The ideal output should be This is the trace I miss some points here, but I just can't figure it out. The program can only retu...
[ 0.0181884765625, -0.006134033203125, 0.003021240234375, -0.00238037109375, -0.007720947265625, 0.0123291015625, 0.00396728515625, 0.0059814453125, 0.0002765655517578125, 0.032470703125, 0.0115966796875, 0.0179443359375, -0.01171875, -0.01104736328125, 0.00933837890625, -0.015869140625,...
[ 4865, 87, 18025, 23, 69101, 5303, 502, 4867, 1528, 32635, 26265, 12977, 10715, 190355, 6096, 31, 5443, 217, 54, 6397, 140992, 5608, 3293, 83, 144851, 26847, 3688, 831, 26366, 1810, 4734, 30646, 29568, 34292, 114689, 12830, 12912, 959, 2046,...
[ 0.045166015625, 0.0108642578125, 0.1778564453125, 0.03936767578125, 0.233154296875, 0.2344970703125, 0.1572265625, 0.22705078125, 0.1448974609375, 0.10321044921875, 0.144775390625, 0.083251953125, 0.1728515625, 0.17578125, 0.1038818359375, 0.1309814453125, 0.1048583984375, 0.044830...
embed
28800013_c0
28800013
prolog
0
Title: SWI Prolog: How to view a pre-built predicate code? Problem title: SWI Prolog: How to view a pre-built predicate code? Tags: swi-prolog, prolog, predicate Problem: SWI Prolog: How to view a pre-built predicate code? I am interesting in how some predicates are built like downcase_atom/2 . Is there a way to view t...
SWI Prolog: How to view a pre-built predicate code? SWI Prolog: How to view a pre-built predicate code? swi-prolog prolog predicate SWI Prolog How downcase_atom SWI Prolog: How to view a pre-built predicate code? I am interesting in how some predicates are built like downcase_atom/2 . Is there a way to view the predica...
[ 0.0225830078125, -0.0096435546875, 0.017578125, 0.02392578125, 0.0037078857421875, 0.0294189453125, 0.0238037109375, 0.00811767578125, -0.00579833984375, -0.039306640625, 0.0140380859375, -0.0269775390625, 0.00457763671875, -0.021484375, 0.006011962890625, 0.01025390625, -0.001892089...
[ 159, 38969, 1250, 4867, 11249, 47, 21455, 479, 978, 24908, 1653, 2063, 67, 18151, 9, 2452, 3454, 502, 7565, 58437, 11, 5928, 49041, 3642, 88303, 12477, 3917 ]
[ 0.03057861328125, 0.206298828125, 0.14990234375, 0.1907958984375, 0.0889892578125, 0.05096435546875, 0.248291015625, 0.167724609375, 0.1361083984375, 0.137939453125, 0.1749267578125, 0.224365234375, 0.108642578125, 0.220947265625, 0.038909912109375, 0.14501953125, 0.1043701171875, ...
embed
27503681_c0
27503681
prolog
0
Title: Prolog beginner, member/2 builtin predicate Problem title: Prolog beginner, member/2 builtin predicate Tags: prolog Problem: Prolog beginner, member/2 builtin predicate I have this: someuserdef(a,[b,c,d]). When I try ?- someuserdef(a,L),member(b,L). I don't get a true or false answer but the list L=[b,c,d] ; fal...
Prolog beginner, member/2 builtin predicate Prolog beginner, member/2 builtin predicate prolog Prolog Prolog beginner, member/2 builtin predicate I have this: When I try I don't get a true or false answer but the list How do I get just a true or false answer?
[ 0.0030364990234375, 0.000028252601623535156, 0.0224609375, 0.00005555152893066406, -0.0208740234375, 0.029052734375, 0.00994873046875, 0.017822265625, 0.006622314453125, -0.0242919921875, 0.0169677734375, -0.0031890869140625, -0.00592041015625, -0.005859375, 0.0002880096435546875, -0.0...
[ 1250, 4867, 9842, 1679, 32786, 12477, 88303, 73, 1653, 2063, 502, 67, 9790, 2046, 29568, 707, 98320, 35166, 70, 5303, 1660 ]
[ 0.1531982421875, 0.207275390625, 0.0596923828125, 0.08624267578125, 0.176025390625, 0.1552734375, 0.12646484375, 0.11761474609375, 0.1591796875, 0.193603515625, 0.0904541015625, 0.0034961700439453125, 0.115234375, 0.0859375, 0.2022705078125, 0.07855224609375, 0.2305908203125, 0.194...
embed
36213993_c0
36213993
prolog
0
Title: how to use retract boolean value in prolog? Problem title: how to use retract boolean value in prolog? Tags: prolog Problem: how to use retract boolean value in prolog? Is it possible to use retract's returning value? I just want to make function to print out words, instead of boolean value, so I try to compare ...
how to use retract boolean value in prolog? how to use retract boolean value in prolog? prolog how to use retract boolean value in prolog? Is it possible to use retract's returning value? I just want to make function to print out words, instead of boolean value, so I try to compare the retract value to print the statem...
[ 0.004425048828125, -0.0341796875, 0.01165771484375, 0.016357421875, -0.0028533935546875, 0.01611328125, 0.0184326171875, 0.0198974609375, -0.004486083984375, 0.017822265625, -0.0040283203125, -0.01007080078125, -0.0108642578125, -0.01104736328125, 0.0162353515625, -0.0032501220703125, ...
[ 3642, 47, 4527, 41499, 15390, 337, 31, 34677, 34292, 23, 502, 4867, 7722, 30646, 214, 3444, 32354, 28412, 1810, 34153, 64457, 69101, 63805, 20697 ]
[ 0.06939697265625, 0.0347900390625, 0.1094970703125, 0.1942138671875, 0.2264404296875, 0.066650390625, 0.12939453125, 0.2120361328125, 0.192138671875, 0.036285400390625, 0.1331787109375, 0.2208251953125, 0.05615234375, 0.11572265625, 0.038909912109375, 0.00732421875, 0.101806640625, ...
embed
72907039_c0
72907039
prolog
0
Title: How to rotate using difference-list in Prolog Problem title: How to rotate using difference-list in Prolog Tags: difference-lists, prolog Problem: How to rotate using difference-list in Prolog Using difference-lists,How to rotate a given list by moving the first two elements to the end of the list, so that [a,b,...
How to rotate using difference-list in Prolog How to rotate using difference-list in Prolog difference-lists prolog difference-list How Prolog How to rotate using difference-list in Prolog Using difference-lists,How to rotate a given list by moving the first two elements to the end of the list, so that [a,b,c,d] become...
[ 0.00933837890625, 0.005645751953125, 0.004241943359375, 0.0264892578125, -0.0211181640625, 0.025634765625, -0.029052734375, 0.0220947265625, -0.006683349609375, -0.01239013671875, 0.002105712890625, 0.01422119140625, 0.0025787353515625, 0.005828857421875, 0.000598907470703125, 0.003936...
[ 11249, 47, 47014, 67, 17368, 60212, 9, 6562, 1250, 4867, 23, 502, 345, 81826, 34475, 5303, 98567, 5117, 6626, 80854, 3564, 221, 11, 275, 238, 71, 24209 ]
[ 0.07427978515625, 0.050506591796875, 0.2353515625, 0.212890625, 0.083740234375, 0.2548828125, 0.07501220703125, 0.253173828125, 0.1693115234375, 0.254638671875, 0.010040283203125, 0.109130859375, 0.0258026123046875, 0.05084228515625, 0.0460205078125, 0.217041015625, 0.1168212890625, ...
embed
13147112_c0
13147112
prolog
0
Title: how to compare strings in prolog Problem title: how to compare strings in prolog Tags: swi-prolog, prolog, string Problem: how to compare strings in prolog I want to write a program in prolog that compares two strings or string lists. I want achieve the following: if StringList A == StringList B { do this } else...
how to compare strings in prolog how to compare strings in prolog swi-prolog prolog string StringList how to compare strings in prolog I want to write a program in prolog that compares two strings or string lists. I want achieve the following: How can I achieve this?
[ -0.000293731689453125, -0.01904296875, -0.00634765625, 0.035400390625, -0.0228271484375, -0.00933837890625, 0.0262451171875, 0.01611328125, 0.020263671875, 0.0184326171875, 0.018310546875, -0.000675201416015625, 0.00115966796875, -0.0079345703125, 0.0031585693359375, -0.020263671875, ...
[ 3642, 47, 69101, 79315, 7, 23, 502, 4867, 2452, 3454, 23351, 214, 154663, 3444, 33022, 1528, 6626, 5303, 69307 ]
[ 0.048065185546875, 0.021820068359375, 0.20849609375, 0.25, 0.08477783203125, 0.05230712890625, 0.133544921875, 0.211669921875, 0.1256103515625, 0.0960693359375, 0.127197265625, 0.0144500732421875, 0.136962890625, 0.01336669921875, 0.06439208984375, 0.1015625, 0.03570556640625, 0.10...
embed
45293290_c0
45293290
prolog
0
Title: get the head of a sorted list in prolog Problem title: get the head of a sorted list in prolog Tags: sorting, prolog, list, head Problem: get the head of a sorted list in prolog I'm new Prolog and I'm stuck at this point. How can I get the Head of this sorted list? mylist(List,First) :- sort(List, Sorted), mylis...
get the head of a sorted list in prolog get the head of a sorted list in prolog sorting prolog list head List First Sorted get the head of a sorted list in prolog I'm new Prolog and I'm stuck at this point. How can I get the Head of this sorted list?
[ 0.023681640625, -0.017822265625, 0.019287109375, -0.006103515625, -0.0198974609375, 0, 0.01373291015625, -0.007354736328125, 0.0023193359375, -0.032470703125, 0.0194091796875, 0.03271484375, -0.01422119140625, 0.00433349609375, 0.0087890625, -0.0245361328125, 0.00213623046875, 0.00...
[ 2046, 70, 10336, 111, 17497, 71, 5303, 23, 502, 4867, 12096, 214, 32036, 23972, 53666, 297, 1250, 179933, 831, 44816, 903 ]
[ 0.084716796875, 0.062744140625, 0.213623046875, 0.122802734375, 0.1787109375, 0.0892333984375, 0.1845703125, 0.048919677734375, 0.11767578125, 0.1944580078125, 0.1412353515625, 0.032989501953125, 0.108642578125, 0.07098388671875, 0.137939453125, 0.055084228515625, 0.0980224609375, ...
embed
20209315_c0
20209315
prolog
0
Title: sudoku on prolog taking too long to solve Problem title: sudoku on prolog taking too long to solve Tags: prolog Problem: sudoku on prolog taking too long to solve I was wondering if there's a good way to use the cut symbol in prolog to solve a 9x9 sudoku puzzle in a fast way. I'm currently solving the puzzle wit...
sudoku on prolog taking too long to solve sudoku on prolog taking too long to solve prolog sudoku on prolog taking too long to solve I was wondering if there's a good way to use the cut symbol in prolog to solve a 9x9 sudoku puzzle in a fast way. I'm currently solving the puzzle without using the ! symbol, but it is ta...
[ 0.0203857421875, 0.006072998046875, 0.019287109375, -0.00482177734375, -0.0234375, -0.00970458984375, -0.0274658203125, 0.006805419921875, 0.000644683837890625, -0.07421875, -0.0030517578125, -0.0179443359375, 0.01165771484375, -0.004241943359375, 0.01324462890625, 0.019287109375, -0...
[ 8932, 38067, 98, 502, 4867, 35971, 5792, 4989, 47, 86869, 149016, 4127, 3917, 4527, 70, 59226, 26582, 23, 483, 425, 1126, 104192, 4271, 82424, 3115, 6496, 15490, 17368, 711, 1284, 157666 ]
[ 0.1561279296875, 0.2076416015625, 0.1231689453125, 0.1688232421875, 0.2457275390625, 0.1297607421875, 0.1529541015625, 0.1805419921875, 0.064453125, 0.177978515625, 0.054962158203125, 0.05517578125, 0.038787841796875, 0.067626953125, 0.0239410400390625, 0.2039794921875, 0.21398925781...
embed
4582822_c0
4582822
prolog
0
Title: How to test the performance of a Prolog program? Problem title: How to test the performance of a Prolog program? Tags: performance, testing, prolog Problem: How to test the performance of a Prolog program? Is there any way to do some benchmarking on several Prolog programs? I am using SWI-Prolog, and it doesn't ...
How to test the performance of a Prolog program? How to test the performance of a Prolog program? performance testing prolog How Prolog How to test the performance of a Prolog program? Is there any way to do some benchmarking on several Prolog programs? I am using SWI-Prolog, and it doesn't show the time taken to execu...
[ 0.01336669921875, 0.01068115234375, 0.0152587890625, 0.0025177001953125, -0.004791259765625, -0.0091552734375, -0.0031280517578125, -0.008056640625, -0.0201416015625, -0.036865234375, 0.0084228515625, 0.00592041015625, -0.0206298828125, 0.0002651214599609375, 0.0036163330078125, 0.0077...
[ 11249, 47, 3034, 23718, 1250, 4867, 1528, 134234, 502, 70, 111, 10, 3917, 54, 240057, 214, 98, 40368, 103391, 17368, 159, 38969, 10752, 22027, 18, 7639, 1733, 39958, 71924, 41, 1294, 1146 ]
[ 0.1119384765625, 0.0732421875, 0.248046875, 0.2188720703125, 0.177490234375, 0.2412109375, 0.1861572265625, 0.1981201171875, 0.1322021484375, 0.030609130859375, 0.03082275390625, 0.0184326171875, 0.03961181640625, 0.048065185546875, 0.18896484375, 0.084228515625, 0.023101806640625, ...
embed
10673550_c0
10673550
prolog
0
Title: how can I add the rule to this program? Problem title: how can I add the rule to this program? Tags: prolog Problem: how can I add the rule to this program? Suppose you have the following program loaded in prolog: ?- listing. fast(ann). slow(bob). slow(norm). true. ?- How can I add the following rule to this pro...
how can I add the rule to this program? how can I add the rule to this program? prolog how can I add the rule to this program? Suppose you have the following program loaded in prolog: How can I add the following rule to this program? Can some one help me write it?
[ 0.007598876953125, 0.00897216796875, -0.011962890625, 0.019287109375, -0.00408935546875, 0.0211181640625, -0.014404296875, 0.01318359375, 0.00946044921875, -0.054443359375, 0.0225830078125, -0.01007080078125, -0.01806640625, -0.0013275146484375, 0.0257568359375, -0.0162353515625, 0.0...
[ 3642, 831, 87, 15190, 70, 79986, 47, 903, 1528, 502, 4867, 25632, 72367, 297, 11249, 4171, 1632, 4358, 33022, 442 ]
[ 0.10321044921875, 0.1302490234375, 0.09173583984375, 0.1865234375, 0.1458740234375, 0.259033203125, 0.1678466796875, 0.1180419921875, 0.2100830078125, 0.132080078125, 0.2210693359375, 0.0823974609375, 0.0894775390625, 0.00933074951171875, 0.06988525390625, 0.01146697998046875, 0.0020...
embed
50397609_c0
50397609
prolog
0
Title: Prolog cut after a fact Problem title: Prolog cut after a fact Tags: prolog, logic Problem: Prolog cut after a fact I'm in Prolog and i have this fact: likes(mary,juice). I want to put a cut after this fact likes(mary,juice),!. But the Prolog compiler doesn't allow me to do that. Why it's uncorrect ? ( I want to...
Prolog cut after a fact Prolog cut after a fact prolog logic Prolog Prolog cut after a fact I'm in Prolog and i have this fact: I want to put a cut after this fact But the Prolog compiler doesn't allow me to do that. Why it's uncorrect ? ( I want to prevent backtracking after this fact is chosen)
[ 0.0419921875, 0.0274658203125, 0.025146484375, 0.0296630859375, -0.00011587142944335938, -0.000039577484130859375, 0.00732421875, -0.00122833251953125, -0.0026092529296875, -0.0257568359375, -0.0302734375, -0.00787353515625, -0.01458740234375, -0.0164794921875, 0.01361083984375, 0.0015...
[ 1250, 4867, 59226, 7103, 10, 15824, 502, 62775, 903, 3444, 3884, 4966, 9969, 34759, 22027, 18, 63769, 47, 54, 44084, 32399, 15390, 56282, 4420, 125728, 19667 ]
[ 0.1600341796875, 0.255126953125, 0.22509765625, 0.1527099609375, 0.058074951171875, 0.232421875, 0.1123046875, 0.157958984375, 0.039459228515625, 0.0830078125, 0.087646484375, 0.00560760498046875, 0.12042236328125, 0.1324462890625, 0.06475830078125, 0.08551025390625, 0.09686279296875...
embed
15801987_c0
15801987
prolog
0
Title: swi-prolog won&#x27;t answer query Problem title: swi-prolog won&#x27;t answer query Tags: prolog Problem: swi-prolog won't answer query I'm trying to write a query that will make sure an element is present in a list of lists, I tried this implementation: membernested(E,[H|T]):-member(E,H). membernested(E,[H|T])...
swi-prolog won&#x27;t answer query swi-prolog won&#x27;t answer query prolog swi-prolog won't answer query I'm trying to write a query that will make sure an element is present in a list of lists, I tried this implementation: but Prolog won't answer the query, any thoughts?
[ -0.01171875, 0.0174560546875, 0.0186767578125, 0.00213623046875, -0.0125732421875, 0.0174560546875, 0.005340576171875, 0.0002803802490234375, -0.0084228515625, -0.0576171875, 0.027587890625, -0.0042724609375, 0.00396728515625, 0.0172119140625, 0, -0.00139617919921875, 0.0106811523437...
[ 91, 2452, 3454, 4867, 23742, 3768, 18, 35166, 41, 1294, 502, 31577, 33022, 9077, 12830, 83, 13379, 5303, 37842, 208124, 1250, 38514 ]
[ 0.00604248046875, 0.203857421875, 0.1513671875, 0.2493896484375, 0.1124267578125, 0.034027099609375, 0.118896484375, 0.1815185546875, 0.11279296875, 0.072998046875, 0.12060546875, 0.012054443359375, 0.042877197265625, 0.07843017578125, 0.1112060546875, 0.010101318359375, 0.1092529296...
embed
11701991_c0
11701991
prolog
0
Title: Split a number into a list of digits in Prolog Problem title: Split a number into a list of digits in Prolog Tags: list, prolog, split, numbers Problem: Split a number into a list of digits in Prolog I've been having trouble trying to split numbers into lists using Prolog, e.g. 123456 becomes [1,2,3,4,5,6] . Can...
Split a number into a list of digits in Prolog Split a number into a list of digits in Prolog list prolog split numbers Split Prolog Split a number into a list of digits in Prolog I've been having trouble trying to split numbers into lists using Prolog, e.g. 123456 becomes [1,2,3,4,5,6] . Can you please help me work ou...
[ 0.003082275390625, 0.002716064453125, 0.00014400482177734375, -0.000507354736328125, -0.0306396484375, 0.03662109375, -0.006866455078125, 0.01104736328125, -0.004547119140625, -0.0137939453125, -0.01123046875, -0.0155029296875, -0.0419921875, 0.01031494140625, 0.004119873046875, 0.0108...
[ 46474, 14012, 3934, 5303, 153939, 7, 23, 1250, 4867, 502, 65450, 101935, 63134, 31577, 47, 17368, 177, 37638, 121317, 24209, 378, 133063, 82449, 104629, 4171, 22936, 4358, 4488, 1810, 3642, 54, 903 ]
[ 0.2373046875, 0.1790771484375, 0.1588134765625, 0.1983642578125, 0.2071533203125, 0.0810546875, 0.074462890625, 0.19384765625, 0.241455078125, 0.1453857421875, 0.2437744140625, 0.1890869140625, 0.0828857421875, 0.061309814453125, 0.010284423828125, 0.05120849609375, 0.005401611328125...
embed
28361148_c0
28361148
prolog
0
Title: how to get the first name of all childs who are born before 1999 in prolog Problem title: how to get the first name of all childs who are born before 1999 in prolog Tags: prolog Problem: how to get the first name of all childs who are born before 1999 in prolog husband(X):-family(X,_,_). wife(X):-family(_,X,_). ...
how to get the first name of all childs who are born before 1999 in prolog how to get the first name of all childs who are born before 1999 in prolog prolog Children how to get the first name of all childs who are born before 1999 in prolog I have got this DB and i write queries who give me all information of husband, ...
[ 0.0322265625, -0.01177978515625, 0.007293701171875, 0.01324462890625, -0.0194091796875, 0.0093994140625, 0.01104736328125, 0.0216064453125, 0.015869140625, -0.043701171875, 0.007232666015625, -0.013916015625, -0.022216796875, -0.002716064453125, 0.005096435546875, 0.0133056640625, -0...
[ 3642, 47, 2046, 5117, 9351, 756, 29041, 7, 103122, 8108, 8272, 502, 4867, 621, 23, 91345, 2750, 57976, 33022, 41, 4677, 71390, 58386, 1632, 5303 ]
[ 0.042144775390625, 0.005157470703125, 0.081787109375, 0.1268310546875, 0.16748046875, 0.092529296875, 0.2025146484375, 0.06756591796875, 0.1593017578125, 0.140380859375, 0.255615234375, 0.1409912109375, 0.189453125, 0.029388427734375, 0.035491943359375, 0.1732177734375, 0.00991821289...
embed
30800407_c0
30800407
prolog
0
Title: Prolog-iterating through list Problem title: Prolog-iterating through list Tags: head, prolog, list, iteration Problem: Prolog-iterating through list Let's say i have list Xs = [a,b,c]. Now i want to iterate through all elements and call another function for this elements. My question is: how to do this using he...
Prolog-iterating through list Prolog-iterating through list head prolog list iteration Prolog-iterating Prolog-iterating through list Let's say i have list Xs = [a,b,c]. Now i want to iterate through all elements and call another function for this elements. My question is: how to do this using head and tail? I would be...
[ 0.01287841796875, -0.01019287109375, 0.0003833770751953125, 0.0037841796875, -0.006256103515625, 0.01806640625, 0.0106201171875, -0.002288818359375, 0.0167236328125, -0.057861328125, 0.01513671875, -0.01177978515625, -0.01202392578125, -0.0032806396484375, 0.0091552734375, 0.0007629394...
[ 1250, 4867, 1486, 98767, 8305, 5303, 10336, 502, 17, 720, 2320, 5154, 1193, 7, 2203, 275, 238, 3444, 47, 8560, 67, 756, 80854, 11782, 15700, 32354, 100, 9655, 3642, 54, 903, 17368, 136, 6, 46741, 225876, 4358, 5 ]
[ 0.1617431640625, 0.2437744140625, 0.1734619140625, 0.17041015625, 0.1871337890625, 0.2261962890625, 0.218994140625, 0.10986328125, 0.0894775390625, 0.234619140625, 0.0229034423828125, 0.000946044921875, 0.135498046875, 0.0640869140625, 0.00433349609375, 0.0304107666015625, 0.04302978...
embed
1932770_c0
1932770
prolog
0
Title: Haskell vs. Prolog comparison Problem title: Haskell vs. Prolog comparison Tags: haskell, prolog Problem: Haskell vs. Prolog comparison What kind of problems is better solved in Prolog than in Haskell? What are the main differences between these two languages? Edit Is there a Haskell library (kind of a logical s...
Haskell vs. Prolog comparison Haskell vs. Prolog comparison haskell prolog Haskell Prolog Haskell vs. Prolog comparison What kind of problems is better solved in Prolog than in Haskell? What are the main differences between these two languages? Edit Is there a Haskell library (kind of a logical solver) that can mimic P...
[ 0.025634765625, 0.00946044921875, 0.00726318359375, 0.0036468505859375, -0.0177001953125, 0.00927734375, -0.01263427734375, -0.01202392578125, -0.004608154296875, -0.02197265625, 0.00018596649169921875, -0.0179443359375, 0.0028533935546875, -0.0004177093505859375, 0.0031890869140625, -...
[ 20625, 142508, 20209, 1250, 4867, 225490, 1556, 502, 8562, 44402, 11522, 86869, 71, 23, 3501, 60212, 17721, 6626, 46876, 35773, 1294, 62775, 3115, 814, 831, 324, 21068, 123309 ]
[ 0.160400390625, 0.281494140625, 0.1282958984375, 0.18701171875, 0.26416015625, 0.1617431640625, 0.125, 0.1328125, 0.027679443359375, 0.1480712890625, 0.1290283203125, 0.1378173828125, 0.06121826171875, 0.04827880859375, 0.07513427734375, 0.1256103515625, 0.05908203125, 0.0268859863...
embed
8287783_c0
8287783
prolog
0
Title: remove element from list Problem title: remove element from list Tags: prolog Problem: remove element from list del(X,[X|Reszta],Reszta). del(X,[Y|Ogon],[Y|Reszta]) :- del(X,Ogon,Reszta). I don't understand this code. If I ask: ?- del(c, [a,b,c],X). Compiler will go to the second line, and he will trigger a recu...
remove element from list remove element from list prolog list Reszta Ogon remove element from list I don't understand this code. If I ask: Compiler will go to the second line, and he will trigger a recursion loop del(x,[b,c],[]) . Am I right?
[ 0, 0.015869140625, -0.006561279296875, 0.005218505859375, -0.004486083984375, 0.016357421875, -0.01055908203125, 0.0135498046875, 0.018310546875, -0.021728515625, 0.019775390625, -0.01397705078125, -0.01287841796875, 0.00116729736328125, 0.00031280517578125, 0.00162506103515625, 0.03...
[ 87388, 12830, 1295, 5303, 502, 4867, 9624, 52255, 3183, 191, 2301, 18, 28219, 903, 18151, 26458, 15612, 34759, 1221, 738, 47, 17932, 13315, 764, 185553, 195625, 1830, 40956, 146, 425, 275, 238, 1065, 7108 ]
[ 0.17919921875, 0.1966552734375, 0.162353515625, 0.192626953125, 0.11767578125, 0.1768798828125, 0.037567138671875, 0.139892578125, 0.1015625, 0.146240234375, 0.0256500244140625, 0.028106689453125, 0.1129150390625, 0.0048980712890625, 0.131103515625, 0.06829833984375, 0.1324462890625,...
embed
13755456_c0
13755456
prolog
0
Title: Does Prolog use static or dynamic scoping? Problem title: Does Prolog use static or dynamic scoping? Tags: prolog Problem: Does Prolog use static or dynamic scoping? When I run a query after creating my Prolog listing, how does Prolog use scoping to solve it? I understand that the cut operator ! can affect the r...
Does Prolog use static or dynamic scoping? Does Prolog use static or dynamic scoping? prolog Does Prolog Does Prolog use static or dynamic scoping? When I run a query after creating my Prolog listing, how does Prolog use scoping to solve it? I understand that the cut operator ! can affect the results. Does it do this b...
[ 0.037109375, 0.03125, 0.033447265625, 0.0172119140625, -0.01904296875, 0.0185546875, 0.001251220703125, 0.0230712890625, -0.0037689208984375, -0.02099609375, -0.01190185546875, -0.013916015625, -0.02197265625, -0.0045166015625, 0.0306396484375, -0.0004062652587890625, -0.007293701171...
[ 1250, 4867, 4527, 201939, 707, 84079, 44679, 214, 502, 101790, 11675, 41, 1294, 7103, 105233, 5303, 86869, 59226, 39933, 711, 831, 52490, 50339, 70820 ]
[ 0.1844482421875, 0.285400390625, 0.0948486328125, 0.214111328125, 0.05633544921875, 0.214111328125, 0.218994140625, 0.1627197265625, 0.129638671875, 0.00970458984375, 0.032012939453125, 0.06903076171875, 0.0731201171875, 0.02728271484375, 0.04449462890625, 0.10675048828125, 0.0979003...
embed
23919235_c0
23919235
prolog
0
Title: N-th element of a list Problem title: N-th element of a list Tags: prolog Problem: N-th element of a list I am new to Prolog. How to get n-th element of a list when a list starts from 1 (index) ? How can I transform this, which gets n-th element, but list starts from 0 index. element_at(X,[X|_],1). element_at(X,...
N-th element of a list N-th element of a list prolog N-th element_at N-th element of a list I am new to Prolog. How to get n-th element of a list when a list starts from 1 (index) ? How can I transform this, which gets n-th element, but list starts from 0 index.
[ -0.005767822265625, -0.00177764892578125, 0.00927734375, -0.012939453125, -0.0004215240478515625, 0.01409912109375, 0.00469970703125, -0.000759124755859375, -0.00121307373046875, -0.041015625, 0.029296875, -0.0164794921875, -0.023193359375, 0.0023956298828125, -0.0027008056640625, -0.0...
[ 541, 9, 927, 12830, 111, 5303, 10, 502, 4867, 257, 3525, 1250, 11249, 47, 2046, 653, 3229, 4034, 7, 1295, 106, 4711, 16, 27198, 62163, 1284, 757, 63262, 5 ]
[ 0.2125244140625, 0.127197265625, 0.2607421875, 0.244384765625, 0.07513427734375, 0.198974609375, 0.013153076171875, 0.130859375, 0.23779296875, 0.1142578125, 0.04376220703125, 0.146484375, 0.033050537109375, 0.016876220703125, 0.10467529296875, 0.210693359375, 0.003082275390625, 0....
embed
10093887_c2
10093887
prolog
2
],[49,50,99,2450],[49,51,100,2499]] [[48,49,97,2352],[48,50,98,2400],[48,51,99,2448],[49,50,99,2450],[49,51,100,2499]] [[48,49,97,2352],[48,50,98,2400],[49,50,99,2450],[49,51,100,2499]] [[48,49,97,2352],[49,50,99,2450],[49,51,100,2499]] [[49,50,99,2450],[49,51,100,2499]] false. As you can see, a sublist gets removed ea...
],[49,50,99,2450],[49,51,100,2499]] [[48,49,97,2352],[48,50,98,2400],[48,51,99,2448],[49,50,99,2450],[49,51,100,2499]] [[48,49,97,2352],[48,50,98,2400],[49,50,99,2450],[49,51,100,2499]] [[48,49,97,2352],[49,50,99,2450],[49,51,100,2499]] [[49,50,99,2450],[49,51,100,2499]] false. As you can see, a sublist gets removed ea...
[ -0.007659912109375, 0.033447265625, 0.00677490234375, 0.00726318359375, -0.035888671875, 0.01513671875, -0.00174713134765625, 0.0289306640625, 0.0247802734375, 0.046875, 0.0123291015625, 0.00848388671875, 0.007537841796875, -0.01312255859375, -0.0198974609375, 0.027099609375, 0.02819...
[ 10114, 12977, 4, 2525, 5046, 2357, 11703, 3559, 110558, 9285, 14773, 149265, 90173, 16665, 10700, 98320, 5, 831, 1957, 10, 1614, 6562, 62163, 184750, 12638, 1733, 87, 1660, 18, 15400, 38, 28864, 26073, 7, 5455, 36335, 73111, 2356, 294, 49...
[ 0.07598876953125, 0.236083984375, 0.035186767578125, 0.1978759765625, 0.2548828125, 0.1436767578125, 0.162841796875, 0.144775390625, 0.0025634765625, 0.1903076171875, 0.2095947265625, 0.13427734375, 0.07281494140625, 0.2015380859375, 0.1483154296875, 0.273193359375, 0.021408081054687...
embed
27077588_c0
27077588
prolog
0
Title: Digit sum in Prolog Problem title: Digit sum in Prolog Tags: prolog, numbers, clpfd Problem: Digit sum in Prolog How can I define in Prolog the rule to calculate the digit sum of an integer? Example: digitsum[Integer, Result] :- ... so that the query digitsum(123, X). results in X = 6 (=1+2+3). A solution runnin...
Digit sum in Prolog Digit sum in Prolog prolog numbers clpfd Digit Prolog Integer Result Digit sum in Prolog How can I define in Prolog the rule to calculate the digit sum of an integer? Example: so that the query digitsum(123, X). results in X = 6 (=1+2+3). A solution running under SWI-Prolog is appreciated.
[ 0.005523681640625, 0.008056640625, 0.0128173828125, 0.018310546875, -0.0238037109375, 0.016845703125, -0.0014190673828125, 0.02197265625, -0.006103515625, -0.0302734375, -0.0107421875, -0.0225830078125, -0.029052734375, 0.01287841796875, 0.01031494140625, -0.006256103515625, -0.00479...
[ 51174, 18, 10554, 23, 1250, 4867, 502, 101935, 39557, 71, 44401, 126684, 831, 61924, 79986, 47, 74481, 67, 153939, 111, 892, 1505, 89536, 41, 1294, 11832, 48636, 1193, 50339, 2203, 305, 54651, 85398, 29806, 51042, 1379, 38969, 10752, 77947,...
[ 0.1787109375, 0.1070556640625, 0.245849609375, 0.055999755859375, 0.17822265625, 0.27099609375, 0.138671875, 0.0955810546875, 0.03955078125, 0.0634765625, 0.15966796875, 0.1085205078125, 0.007598876953125, 0.1536865234375, 0.1763916015625, 0.005126953125, 0.1627197265625, 0.0345764...
embed
62851245_c0
62851245
prolog
0
Title: How can I convert a list of binary 0 to 1 numbers PROLOG Problem title: How can I convert a list of binary 0 to 1 numbers PROLOG Tags: list, prolog Problem: How can I convert a list of binary 0 to 1 numbers PROLOG How can I convert a list of binary 0 to 1 numbers in Prolog to give me the following results: ?- cr...
How can I convert a list of binary 0 to 1 numbers PROLOG How can I convert a list of binary 0 to 1 numbers PROLOG list prolog How PROLOG How can I convert a list of binary 0 to 1 numbers PROLOG How can I convert a list of binary 0 to 1 numbers in Prolog to give me the following results:
[ -0.007232666015625, 0.0033111572265625, 0.018310546875, 0.0028839111328125, -0.02294921875, 0.004791259765625, -0.01556396484375, 0.030517578125, 0.0098876953125, 0.035888671875, -0.004791259765625, 0.01409912109375, 0.00830078125, 0.033935546875, 0.0162353515625, -0.010009765625, 0....
[ 11249, 831, 87, 96760, 5303, 2394, 6635, 757, 47, 106, 101935, 10514, 47510, 111, 502, 4867, 23, 1250, 50339 ]
[ 0.031646728515625, 0.0826416015625, 0.050811767578125, 0.1376953125, 0.1700439453125, 0.15771484375, 0.10107421875, 0.1488037109375, 0.10687255859375, 0.1292724609375, 0.171142578125, 0.14697265625, 0.2025146484375, 0.0264434814453125, 0.12054443359375, 0.2152099609375, 0.03134155273...
embed
60288407_c0
60288407
prolog
0
Title: Use of redundant goals in queries Problem title: Use of redundant goals in queries Tags: logical-purity, prolog Problem: Use of redundant goals in queries (Upon the suggestion of @repeat ) Consider a query of a pure program 1 ?- G_0. What use if any would the query ?- G_0, G_0. have? Footnotes 1 No tabling (to b...
Use of redundant goals in queries Use of redundant goals in queries logical-purity prolog Use G_0 Use of redundant goals in queries (Upon the suggestion of @repeat ) Consider a query of a pure program 1 ?- G_0. What use if any would the query ?- G_0, G_0. have? Footnotes 1 No tabling (to be safe), constraints are OK. P...
[ -0.000286102294921875, 0.025390625, -0.004852294921875, 0.0169677734375, -0.0108642578125, 0.0031890869140625, -0.000171661376953125, -0.01080322265625, 0.01025390625, -0.035888671875, 0.000017881393432617188, -0.00592041015625, -0.0225830078125, 0.00110626220703125, 0.0027923583984375, ...
[ 36836, 4842, 35405, 18, 109458, 23, 41, 10484, 111, 62775, 289, 4717, 2481, 502, 4867, 527, 454, 2389, 1062, 199015, 137399, 1294, 34166, 1528, 106, 4865, 4527, 2174, 2499, 2806, 4, 5, 765, 159020, 157, 438, 308, 79298, 186, 46002, 158,...
[ 0.1241455078125, 0.1470947265625, 0.250244140625, 0.1697998046875, 0.263671875, 0.094970703125, 0.1837158203125, 0.1990966796875, 0.021453857421875, 0.1219482421875, 0.06646728515625, 0.134765625, 0.0755615234375, 0.09478759765625, 0.1688232421875, 0.1490478515625, 0.087890625, 0.2...
embed
6659103_c0
6659103
prolog
0
Title: Lists conversion Problem title: Lists conversion Tags: prolog, gnu-prolog, flatten Problem: Lists conversion I am newbie to prolog and I am trying to flatten a list which is like this: X = [[[0,0,1],[1,0,2]],[[0,1,3],[0,2,2]],[[0,3,5],[0,4,4]],[[0,5,4],[0,6,5]]] The desired output is: X = [[0,0,1],[1,0,2],[0,1,3...
Lists conversion Lists conversion prolog gnu-prolog flatten Lists Lists conversion I am newbie to prolog and I am trying to flatten a list which is like this: The desired output is: How can I do this?
[ -0.0025482177734375, 0.01495361328125, 0.00927734375, 0.00836181640625, -0.00927734375, 0.0150146484375, 0.00135040283203125, 0.0038299560546875, 0.01251220703125, 0.0220947265625, 0.0018768310546875, -0.005096435546875, -0.0028228759765625, 0.01556396484375, -0.004364013671875, 0.0016...
[ 32036, 7, 142477, 502, 4867, 104155, 3454, 49878, 510, 3525, 9014, 31577, 47, 5303, 1884, 903, 104851, 140992, 83, 11249, 831, 54 ]
[ 0.2431640625, 0.0771484375, 0.1903076171875, 0.114013671875, 0.181884765625, 0.1490478515625, 0.1097412109375, 0.20654296875, 0.2255859375, 0.0212860107421875, 0.09918212890625, 0.080810546875, 0.00881195068359375, 0.2294921875, 0.0848388671875, 0.07861328125, 0.1309814453125, 0.17...
embed
16493233_c1
16493233
prolog
1
). holds(nk(X,Y)) :- p(X), p(Y), \+holds(nk(Y,X)). holds(nk(X,Y)) :- p(X), p(Y), \+holds(f(X,Y)). holds(t(X,Y)) :- p(X), p(Y), holds(t(Y,X)). holds(t(X,Y)) :- p(X), p(Y), p(Z), holds(t(X,Z)), holds(t(Z,Y)). m(X) :- p(X). The answer is suppose to be Bertram, but I kept on getting Arthur. Dont know what am I doing wrong....
). holds(nk(X,Y)) :- p(X), p(Y), \+holds(nk(Y,X)). holds(nk(X,Y)) :- p(X), p(Y), \+holds(f(X,Y)). holds(t(X,Y)) :- p(X), p(Y), holds(t(Y,X)). holds(t(X,Y)) :- p(X), p(Y), p(Z), holds(t(X,Z)), holds(t(Z,Y)). m(X) :- p(X). The answer is suppose to be Bertram, but I kept on getting Arthur. Dont know what am I doing wrong....
[ 0.0033416748046875, 0.01190185546875, 0.01904296875, 0.02001953125, -0.0128173828125, 0.00506591796875, -0.01287841796875, -0.0047607421875, 0.00946044921875, -0.0294189453125, 0.0030670166015625, 0.005157470703125, -0.000774383544921875, 0.00482177734375, -0.01165771484375, -0.0081787...
[ 6, 194, 16401, 7, 132, 7570, 1542, 4, 1723, 15772, 915, 247, 1328, 16200, 420, 18, 1511, 347, 581, 35166, 83, 139124, 47, 186, 53598, 2198, 93544, 20949, 79281, 3714, 44691, 28864, 26073, 159, 38969, 9, 10752, 4867, 179277, 132640, 2507...
[ 0.01300048828125, 0.18017578125, 0.310302734375, 0.17236328125, 0.037750244140625, 0.263671875, 0.174560546875, 0.07733154296875, 0.2061767578125, 0.1165771484375, 0.1346435546875, 0.0283050537109375, 0.09686279296875, 0.22607421875, 0.056365966796875, 0.06402587890625, 0.02424621582...
embed
60363754_c0
60363754
prolog
0
Title: Prolog predicate that prints items on odd positions. Help me to write code? Problem title: Prolog predicate that prints items on odd positions. Help me to write code? Tags: prolog Problem: Prolog predicate that prints items on odd positions. Help me to write code? Prolog predicate that prints items on odd positi...
Prolog predicate that prints items on odd positions. Help me to write code? Prolog predicate that prints items on odd positions. Help me to write code? prolog Prolog Help Prolog predicate that prints items on odd positions. Help me to write code? Prolog predicate that prints items on odd positions, for example ? odd([2...
[ -0.00058746337890625, 0.0052490234375, 0.01116943359375, -0.0130615234375, 0.000514984130859375, 0.0419921875, -0.01318359375, 0.00151824951171875, 0.0002117156982421875, -0.0118408203125, 0.0147705078125, -0.005889892578125, 0.005615234375, 0.0078125, -0.0017242431640625, 0.0189208984...
[ 1250, 4867, 1653, 2063, 67, 450, 28412, 7, 55769, 98, 70270, 19069, 39527, 163, 33022, 18151, 502, 47, 27781, 705, 304, 108368, 363, 185723, 16750, 83, 111877 ]
[ 0.18505859375, 0.2421875, 0.1904296875, 0.2044677734375, 0.07470703125, 0.044647216796875, 0.2305908203125, 0.0762939453125, 0.196044921875, 0.151123046875, 0.280029296875, 0.2359619140625, 0.1151123046875, 0.0261383056640625, 0.0762939453125, 0.18310546875, 0.1378173828125, 0.0104...
embed
26500705_c0
26500705
prolog
0
Title: Prolog Split list into list of lists Problem title: Prolog Split list into list of lists Tags: prolog Problem: Prolog Split list into list of lists i want to make one list split into list of lists, and skip the 'solid' and separate the list into sublist. the input and output is below split_s([A,B,C,solid,D,E,F],...
Prolog Split list into list of lists Prolog Split list into list of lists prolog Prolog Split split_s Prolog Split list into list of lists i want to make one list split into list of lists, and skip the 'solid' and separate the list into sublist. the input and output is below Can anyone help me?
[ -0.0022735595703125, 0.0152587890625, 0.00799560546875, 0.0074462890625, -0.036865234375, 0.0181884765625, -0.0147705078125, 0.0093994140625, 0.028076171875, 0.0035858154296875, 0.016845703125, 0.00775146484375, -0.0191650390625, 0.017578125, 0.0216064453125, -0.0003814697265625, 0.0...
[ 1250, 4867, 46474, 5303, 3934, 111, 502, 65450, 3444, 3249, 1632, 21658, 97281, 84797, 1614, 6562, 107730, 140992, 35064, 4358 ]
[ 0.1505126953125, 0.213134765625, 0.22802734375, 0.2138671875, 0.1092529296875, 0.088134765625, 0.09912109375, 0.2115478515625, 0.048858642578125, 0.0236663818359375, 0.007049560546875, 0.0858154296875, 0.133544921875, 0.149658203125, 0.1263427734375, 0.1767578125, 0.117431640625, 0...
embed