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
77347901_c0
77347901
prolog
0
Title: Find the largest of the even-numbered component values in file Problem title: Find the largest of the even-numbered component values in file Tags: prolog Problem: Find the largest of the even-numbered component values in file sorry for possible mistakes, I'm not a native speaker Hi! Here is how my task sounds: W...
Find the largest of the even-numbered component values in file Find the largest of the even-numbered component values in file prolog the a Find Predicate find_max_even_component File Max Stream read_numbers Numbers Call Closing Internal Rest at_end_of_stream Until Read test.txt test.pl ERROR Users Admin Desktop test.tx...
[ -0.012939453125, -0.0025482177734375, 0.021240234375, -0.005157470703125, -0.00019168853759765625, 0.045654296875, -0.0040283203125, 0.01263427734375, 0.015869140625, -0.00799560546875, -0.01202392578125, 0.00994873046875, -0.0164794921875, -0.0235595703125, 0.0262451171875, -0.0069274...
[ 26040, 70, 142105, 111, 3853, 2606, 1297, 82761, 142424, 23, 11435, 502, 4867, 7145, 2063, 7413, 24084, 26301, 277, 54137, 42724, 9920, 115061, 12301, 103332, 26265, 51053, 106745, 49756, 3611, 86429, 3675, 4764, 3034, 124326, 2424, 151206, 5...
[ 0.165771484375, 0.05914306640625, 0.25390625, 0.045867919921875, 0.2486572265625, 0.150390625, 0.0826416015625, 0.265380859375, 0.1995849609375, 0.026580810546875, 0.222900390625, 0.1566162109375, 0.2164306640625, 0.171142578125, 0.179931640625, 0.149658203125, 0.185546875, 0.18957...
embed
35094019_c0
35094019
prolog
0
Title: How could I calculate the number of recursions that a recursive rule does? Problem title: How could I calculate the number of recursions that a recursive rule does? Tags: prolog, transitive-closure, recursion Problem: How could I calculate the number of recursions that a recursive rule does? I deal with a proble...
How could I calculate the number of recursions that a recursive rule does? How could I calculate the number of recursions that a recursive rule does? prolog transitive-closure recursion How power_supply storage_devices expansion_cards ribbon_cables heat_sink chip_carrier signal_pins control_pins voltage_pins number_of_...
[ -0.006591796875, -0.003875732421875, 0.01116943359375, 0.020263671875, 0.01214599609375, 0.006103515625, -0.01708984375, 0.00958251953125, 0.019287109375, -0.05224609375, -0.01953125, -0.0079345703125, 0.006683349609375, 0.0306396484375, 0.036376953125, -0.0169677734375, 0.0167236328...
[ 11249, 5809, 74481, 67, 14012, 111, 195625, 17514, 450, 5844, 79986, 14602, 10, 502, 4867, 62621, 170224, 1830, 14537, 67565, 132096, 118318, 38931, 8345, 80097, 14068, 26073, 5128, 6226, 6599, 277, 54137, 54529, 27889, 33867, 44816, 1218, 37...
[ 0.044097900390625, 0.076416015625, 0.205078125, 0.085693359375, 0.1240234375, 0.0271759033203125, 0.255859375, 0.1986083984375, 0.0244598388671875, 0.1683349609375, 0.2381591796875, 0.121337890625, 0.007598876953125, 0.08306884765625, 0.12841796875, 0.103759765625, 0.146240234375, ...
embed
23511345_c0
23511345
prolog
0
Title: Thinking out of Prolog and into Haskell - Generating Lists of Truth-Value Combinations Problem title: Thinking out of Prolog and into Haskell - Generating Lists of Truth-Value Combinations Tags: translate, prolog, list-comprehension, haskell, combinations Problem: Thinking out of Prolog and into Haskell - Genera...
Thinking out of Prolog and into Haskell - Generating Lists of Truth-Value Combinations Thinking out of Prolog and into Haskell - Generating Lists of Truth-Value Combinations translate prolog list-comprehension haskell combinations Thinking Prolog Haskell Generating Lists Truth-Value Combinations Bool combinations_of_n_...
[ 0.009521484375, 0.015869140625, 0.0128173828125, -0.004486083984375, 0.00921630859375, -0.01068115234375, 0.00102996826171875, -0.013916015625, 0.0169677734375, -0.017578125, -0.003997802734375, 0.007476806640625, 0.0096435546875, 0.0126953125, -0.00958251953125, 0.0115966796875, 0.0...
[ 87062, 1810, 111, 1250, 4867, 136, 3934, 20625, 142508, 155370, 32036, 184431, 9, 856, 50770, 106935, 19, 3900, 502, 5303, 4692, 3220, 1556, 162515, 214, 2460, 929, 4390, 18, 75481, 27494, 3164, 42272, 21049, 190060, 653, 85027, 81, 12, 1...
[ 0.1390380859375, 0.1549072265625, 0.0859375, 0.1585693359375, 0.2412109375, 0.0389404296875, 0.10693359375, 0.130126953125, 0.2490234375, 0.127197265625, 0.1632080078125, 0.1795654296875, 0.009765625, 0.1387939453125, 0.115234375, 0.1588134765625, 0.0863037109375, 0.050018310546875...
embed
18601420_c0
18601420
prolog
0
Title: How to go about creating a prolog program that can work backwards to determine steps needed to reach a goal Problem title: How to go about creating a prolog program that can work backwards to determine steps needed to reach a goal Tags: artificial-intelligence, prolog, design-decisions Problem: How to go about c...
How to go about creating a prolog program that can work backwards to determine steps needed to reach a goal How to go about creating a prolog program that can work backwards to determine steps needed to reach a goal artificial-intelligence prolog design-decisions How depends_on command_center builds_from build_time How...
[ 0.016845703125, 0.0147705078125, -0.0004634857177734375, 0.003387451171875, -0.0137939453125, 0.006378173828125, -0.003265380859375, -0.00970458984375, 0.0162353515625, -0.0517578125, -0.000027418136596679688, -0.00007486343383789062, -0.0181884765625, -0.000885009765625, -0.001708984375...
[ 11249, 738, 1672, 105233, 502, 4867, 1528, 831, 4488, 4420, 19364, 83324, 98441, 44841, 58359, 69236, 66733, 130687, 4331, 112, 318, 56566, 75101, 30090, 45367, 161063, 6032, 47, 26458, 3444, 3249, 18151, 72546, 5646, 61475, 2704, 11341, 9173...
[ 0.06353759765625, 0.037506103515625, 0.1304931640625, 0.184814453125, 0.2301025390625, 0.308349609375, 0.251953125, 0.09619140625, 0.1748046875, 0.1907958984375, 0.238525390625, 0.1751708984375, 0.205078125, 0.1492919921875, 0.169921875, 0.236572265625, 0.1041259765625, 0.106994628...
embed
29093366_c0
29093366
prolog
0
Title: In prolog, functors vs predicates, and goals Problem title: In prolog, functors vs predicates, and goals Tags: prolog Problem: In prolog, functors vs predicates, and goals I am beginning to learn Prolog. I have various books and I even bought the standard. I like things like standards because they define things ...
In prolog, functors vs predicates, and goals In prolog, functors vs predicates, and goals prolog Father Child In prolog, functors vs predicates, and goals I am beginning to learn Prolog. I have various books and I even bought the standard. I like things like standards because they define things precisely. But I can't u...
[ 0.01953125, 0.0025482177734375, 0.00823974609375, -0.01055908203125, -0.01080322265625, 0.001953125, 0.0126953125, -0.01422119140625, -0.0108642578125, -0.0245361328125, -0.0008392333984375, -0.007049560546875, -0.02978515625, -0.0101318359375, 0.0111083984375, 0.014892578125, 0.0089...
[ 502, 4867, 7477, 18770, 7, 20209, 1653, 2063, 1636, 136, 109458, 160960, 123829, 30698, 1250, 42840, 123997, 5570, 1884, 61924, 134995, 831, 28219, 23755, 60212, 17721, 2367, 10, 69236, 18614, 25443, 285, 169463, 14, 120639, 237, 678, 187, ...
[ 0.1507568359375, 0.2254638671875, 0.235595703125, 0.277099609375, 0.07769775390625, 0.1827392578125, 0.250244140625, 0.2359619140625, 0.16259765625, 0.09375, 0.251708984375, 0.156982421875, 0.221923828125, 0.024017333984375, 0.16748046875, 0.131103515625, 0.060516357421875, 0.22814...
embed
59689756_c0
59689756
prolog
0
Title: Confusion with classesInOtherPkgWithProtectedMember in the JVM spec, and more generally rules for accessing a protected member Problem title: Confusion with classesInOtherPkgWithProtectedMember in the JVM spec, and more generally rules for accessing a protected member Tags: java, jls, jvm, prolog, specifications...
Confusion with classesInOtherPkgWithProtectedMember in the JVM spec, and more generally rules for accessing a protected member Confusion with classesInOtherPkgWithProtectedMember in the JVM spec, and more generally rules for accessing a protected member java jls jvm prolog specifications Confusion JVM MemberName Member...
[ 0.006683349609375, -0.0020751953125, 0.01007080078125, 0.004852294921875, -0.00592041015625, 0.0025634765625, 0.00128173828125, 0.000701904296875, 0.0152587890625, -0.0003814697265625, 0.0135498046875, 0.00567626953125, 0.01104736328125, -0.00150299072265625, 0.01220703125, 0.031005859...
[ 92105, 61112, 4153, 9319, 8517, 194583, 127942, 594, 27417, 821, 47599, 48502, 91736, 17203, 30312, 32786, 670, 79, 330, 8080, 39, 502, 4867, 71679, 74057, 163612, 121707, 140803, 1218, 4265, 162087, 166179, 233973, 134549, 4841, 418, 37486, ...
[ 0.15380859375, 0.1812744140625, 0.0897216796875, 0.1690673828125, 0.16748046875, 0.0968017578125, 0.1982421875, 0.09326171875, 0.20458984375, 0.0513916015625, 0.166015625, 0.1488037109375, 0.07525634765625, 0.08465576171875, 0.137451171875, 0.2139892578125, 0.04058837890625, 0.0091...
embed
59234770_c0
59234770
prolog
0
Title: Constraint Handling Rules in SWI Prolog: Does the "constraint store" exists only for the duration of the toplevel goal processing? Problem title: Constraint Handling Rules in SWI Prolog: Does the "constraint store" exists only for the duration of the toplevel goal processing? Tags: prolog, co...
Constraint Handling Rules in SWI Prolog: Does the "constraint store" exists only for the duration of the toplevel goal processing? Constraint Handling Rules in SWI Prolog: Does the "constraint store" exists only for the duration of the toplevel goal processing? prolog constraint-handling-rules Const...
[ 0.001983642578125, 0.018798828125, 0.01025390625, -0.006195068359375, 0.0198974609375, 0.000052928924560546875, -0.00384521484375, -0.017822265625, 0.014404296875, -0.0301513671875, 0.0238037109375, 0.008544921875, -0.01220703125, 0.0034027099609375, 0.010009765625, 0.006805419921875, ...
[ 1657, 2816, 4288, 193237, 139118, 159, 38969, 1250, 4867, 2271, 4343, 32316, 4734, 115, 30494, 2663, 67919, 69236, 9433, 502, 158, 54885, 13500, 70802, 177, 527, 16069, 29562, 759, 71574, 4527, 83279, 17656, 839, 39989, 33657, 26265, 5443, ...
[ 0.097900390625, 0.234130859375, 0.2027587890625, 0.233642578125, 0.176025390625, 0.059356689453125, 0.222412109375, 0.132080078125, 0.18994140625, 0.09521484375, 0.246826171875, 0.1361083984375, 0.0328369140625, 0.080810546875, 0.06634521484375, 0.09375, 0.16748046875, 0.1833496093...
embed
39883628_c0
39883628
prolog
0
Title: Swi-prolog two-way clause/fact Problem title: Swi-prolog two-way clause/fact Tags: zebra-puzzle, prolog Problem: Swi-prolog two-way clause/fact I need help describing the following facts in Swi-Prolog: Clark and Jones live in the same house and play chess together. and The manager and the architect live in the s...
Swi-prolog two-way clause/fact Swi-prolog two-way clause/fact zebra-puzzle prolog Swi-prolog Name Occupation fact1 List Clark Jones Persons Swi-prolog two-way clause/fact I need help describing the following facts in Swi-Prolog: and I have a structure like this: [person(_, _), person(_, _), ...] Where person describes ...
[ -0.004241943359375, 0.008056640625, 0.017822265625, 0.01300048828125, -0.010498046875, 0.001922607421875, -0.0157470703125, 0.0032806396484375, 0.0225830078125, -0.017333984375, -0.0032806396484375, 0.0400390625, -0.00096893310546875, 0.005279541015625, 0.006744384765625, 0.00347900390...
[ 105432, 9, 3454, 4867, 6626, 7514, 70731, 64, 114700, 116232, 1766, 13894, 133, 502, 15757, 180, 143414, 15824, 418, 32036, 91865, 29304, 15270, 7, 3871, 4358, 28852, 23709, 25632, 10752, 45646, 1884, 903, 30816, 101, 3445, 98363, 163612, 1...
[ 0.260009765625, 0.05908203125, 0.1456298828125, 0.2027587890625, 0.126953125, 0.156005859375, 0.178466796875, 0.07672119140625, 0.189697265625, 0.1976318359375, 0.0765380859375, 0.096435546875, 0.019805908203125, 0.125, 0.08721923828125, 0.034210205078125, 0.176025390625, 0.1674804...
embed
71205856_c0
71205856
prolog
0
Title: How to add temporal variables to first-order logic formulas? Problem title: How to add temporal variables to first-order logic formulas? Tags: first-order-logic, nlp, prolog Problem: How to add temporal variables to first-order logic formulas? I've written an English parser in Prolog that uses first-order logic ...
How to add temporal variables to first-order logic formulas? How to add temporal variables to first-order logic formulas? first-order-logic nlp prolog How Bill Every Texts sem:T coord:no sem:S t:T s:S coord:yes sem:Q q:Q Sentences sem:Sem coord:_ num:Num sem:NP inf:fin sem:VP s:Sem np:NP vp:VP coord:ant sem:S1 coord:co...
[ 0.01190185546875, 0.007415771484375, 0.0035858154296875, 0.013427734375, -0.00081634521484375, -0.0201416015625, 0.0025177001953125, 0.014892578125, -0.0013580322265625, -0.068359375, 0.0169677734375, 0.00994873046875, -0.00848388671875, -0.002105712890625, 0.01953125, 0.00049591064453...
[ 11249, 15190, 58663, 77336, 7, 47, 5117, 80596, 62775, 26168, 137043, 26775, 502, 4867, 19893, 87769, 24129, 484, 618, 552, 6651, 157, 63736, 2737, 63999, 13269, 28814, 34128, 5983, 41195, 304, 43599, 46632, 195, 68185, 309, 185709, 52528, ...
[ 0.07666015625, 0.1512451171875, 0.26513671875, 0.255859375, 0.0472412109375, 0.049285888671875, 0.09503173828125, 0.1629638671875, 0.16748046875, 0.1744384765625, 0.13427734375, 0.0880126953125, 0.068603515625, 0.1927490234375, 0.1884765625, 0.1849365234375, 0.1748046875, 0.0998535...
embed
5684229_c0
5684229
prolog
0
Title: setof in prolog Problem title: setof in prolog Tags: prolog, prolog-setof Problem: setof in prolog what is the source code of setof in prolog?
setof in prolog setof in prolog prolog prolog-setof setof in prolog what is the source code of setof in prolog?
[ 0.039306640625, -0.00131988525390625, 0.03564453125, 0.0126953125, 0.0017547607421875, 0.0004673004150390625, -0.018310546875, 0.0004367828369140625, 0.005615234375, -0.052978515625, 0.0140380859375, 0.00555419921875, -0.00052642822265625, -0.017333984375, 0.0169677734375, 0.0041503906...
[ 5423, 4390, 23, 502, 4867, 3509, 31344, 18151, 111 ]
[ 0.188720703125, 0.2890625, 0.052093505859375, 0.1361083984375, 0.22021484375, 0.1529541015625, 0.1907958984375, 0.193603515625, 0.00911712646484375 ]
embed
42748320_c2
42748320
prolog
2
, _744, _746, _748, _750, _752, _756, _758, _760, _762, _764, _766, _768, _770, _774, _776, _780, _784, _788, _792, _794, _798, _802, _806, _810, _812, _816, _820
, _744, _746, _748, _750, _752, _756, _758, _760, _762, _764, _766, _768, _770, _774, _776, _780, _784, _788, _792, _794, _798, _802, _806, _810, _812, _816, _820
[ -0.02099609375, 0.00274658203125, -0.0091552734375, -0.0093994140625, -0.016357421875, 0.005126953125, -0.000415802001953125, -0.002044677734375, 0.01123046875, 0.06982421875, -0.01708984375, -0.00457763671875, -0.0034332275390625, -0.0277099609375, -0.00799560546875, 0.00860595703125,...
[ 6, 4, 101, 195953, 966, 9271, 9285, 58087, 6873, 304, 199009, 1019, 110216, 177200, 178058, 178683, 84453, 100595, 170665, 176779, 99263, 157054, 146406, 186796, 197697, 168405, 4836, 910, 963, 1530, 2485, 1549 ]
[ 0.1151123046875, 0.15283203125, 0.1375732421875, 0.303955078125, 0.158935546875, 0.2705078125, 0.25341796875, 0.23876953125, 0.212158203125, 0.19580078125, 0.267333984375, 0.184326171875, 0.2337646484375, 0.2314453125, 0.2330322265625, 0.254150390625, 0.2435302734375, 0.21948242187...
embed
4564731_c0
4564731
prolog
0
Title: list of string in prolog Problem title: list of string in prolog Tags: list, prolog, string Problem: list of string in prolog How i can break the list of string into two halves to process these halves
list of string in prolog list of string in prolog list prolog string list of string in prolog How i can break the list of string into two halves to process these halves
[ 0.0118408203125, -0.0169677734375, 0.006317138671875, 0.03955078125, -0.021484375, 0.01611328125, 0.006256103515625, -0.00238037109375, 0.018798828125, 0.0069580078125, 0.0084228515625, 0.00007295608520507812, 0.0118408203125, -0.00970458984375, 0.00250244140625, -0.0034332275390625, ...
[ 5303, 111, 79315, 502, 4867, 23, 17, 831, 36356, 3934, 6626, 106706, 9433, 7 ]
[ 0.1956787109375, 0.090087890625, 0.225830078125, 0.159912109375, 0.21533203125, 0.04046630859375, 0.0313720703125, 0.031219482421875, 0.1763916015625, 0.118408203125, 0.1331787109375, 0.1949462890625, 0.148193359375, 0.0222015380859375 ]
embed
4274119_c0
4274119
prolog
0
Title: compute in prolog Problem title: compute in prolog Tags: predicate, prolog Problem: compute in prolog I know in prolog we ask for is that true or false , can we also do compute for example average and how the predicate look like?
compute in prolog compute in prolog predicate prolog compute in prolog I know in prolog we ask for is that true or false , can we also do compute for example average and how the predicate look like?
[ 0.01123046875, -0.0125732421875, 0.005828857421875, 0.0306396484375, -0.01483154296875, 0.032958984375, 0.01422119140625, 0.018798828125, 0.01123046875, -0.040283203125, 0.017333984375, 0.004119873046875, -0.00799560546875, -0.0023193359375, 0.01373291015625, -0.005157470703125, 0.01...
[ 9969, 6743, 23, 502, 4867, 1653, 2063, 67, 26458, 450, 29568, 707, 98320, 831, 54, 83080, 6713, 1884 ]
[ 0.20703125, 0.2127685546875, 0.134033203125, 0.1612548828125, 0.238525390625, 0.1651611328125, 0.2174072265625, 0.091796875, 0.07421875, 0.0240020751953125, 0.1904296875, 0.033447265625, 0.2294921875, 0.062744140625, 0.03411865234375, 0.2088623046875, 0.10205078125, 0.0355224609375...
embed
61395505_c3
61395505
prolog
3
, P41, P23, P33, espacos_pal_uni, P51, P43, P53, palavra_possivel_esp, Word, Letras, Espacos, P15, P16, P17, P18, P24, P25, P35, P37, P42, P44, P45, P27, Pals_Possiveis, Pal, Esp, Esps, espacos_com_posicoes_comuns, NEsps, npalavra_possivel_esp, Ltrs, Pals, NAC
, P41, P23, P33, espacos_pal_uni, P51, P43, P53, palavra_possivel_esp, Word, Letras, Espacos, P15, P16, P17, P18, P24, P25, P35, P37, P42, P44, P45, P27, Pals_Possiveis, Pal, Esp, Esps, espacos_com_posicoes_comuns, NEsps, npalavra_possivel_esp, Ltrs, Pals, NAC
[ -0.01190185546875, 0.00445556640625, 0.007720947265625, 0.01226806640625, -0.00848388671875, 0.00531005859375, -0.004180908203125, -0.0106201171875, 0.0218505859375, 0.010009765625, 0.0205078125, 0.01483154296875, 0.0234375, -0.0113525390625, -0.01434326171875, 0.01251220703125, -0.0...
[ 6, 4, 436, 8894, 3742, 9185, 101404, 7840, 454, 5007, 5980, 11703, 11548, 14226, 113119, 7522, 7, 75790, 90, 254, 22543, 102690, 75760, 1837, 2485, 2489, 1819, 2357, 2588, 5843, 10945, 13023, 12465, 4633, 3768, 12530, 7192, 12551, 56034, ...
[ 0.103759765625, 0.129638671875, 0.1278076171875, 0.22900390625, 0.1778564453125, 0.20751953125, 0.2044677734375, 0.2259521484375, 0.058807373046875, 0.1929931640625, 0.207275390625, 0.202880859375, 0.1588134765625, 0.1861572265625, 0.248046875, 0.193115234375, 0.1842041015625, 0.24...
embed
1956798_c0
1956798
prolog
0
Title: Prolog arithmetic syntax Problem title: Prolog arithmetic syntax Tags: clpfd, prolog Problem: Prolog arithmetic syntax How to define a as a integer/float number ? I want to find the results of a+b+c+d=10 where a,b,c,d is integer and >=0 . Code signals: Prolog
Prolog arithmetic syntax Prolog arithmetic syntax clpfd prolog Prolog Prolog arithmetic syntax How to define a as a integer/float number ? I want to find the results of a+b+c+d=10 where a,b,c,d is integer and >=0 .
[ 0.007080078125, -0.0064697265625, -0.00323486328125, 0.01031494140625, 0.003204345703125, 0.0147705078125, 0.009521484375, 0.000823974609375, -0.0146484375, -0.01300048828125, -0.01348876953125, -0.0216064453125, -0.016845703125, -0.000946044921875, 0.0233154296875, -0.0162353515625, ...
[ 1250, 4867, 8962, 282, 6002, 86531, 9523, 39557, 71, 502, 11249, 47, 61924, 10, 237, 892, 1505, 64, 52347, 257, 14012, 3444, 7413, 50339, 1328, 275, 238, 1369, 963, 7440, 83, 977, 145407 ]
[ 0.16552734375, 0.25927734375, 0.1219482421875, 0.046905517578125, 0.126220703125, 0.12225341796875, 0.039581298828125, 0.03240966796875, 0.108642578125, 0.08062744140625, 0.037628173828125, 0.04534912109375, 0.1949462890625, 0.1806640625, 0.135009765625, 0.174072265625, 0.1962890625,...
embed
28327356_c0
28327356
prolog
0
Title: How to solve task to study in prolog? Problem title: How to solve task to study in prolog? Tags: prolog Problem: How to solve task to study in prolog? I have a task to study in Prolog Y=.(.(1,[],.(2,.(a,.(b,[])))). What is Y ? How to solve it? Code signals: How
How to solve task to study in prolog? How to solve task to study in prolog? prolog How How to solve task to study in prolog? I have a task to study in Prolog What is Y ? How to solve it?
[ 0.03466796875, 0.0068359375, 0.0047607421875, 0.03369140625, -0.0023040771484375, 0.01434326171875, -0.02197265625, 0.01458740234375, -0.00156402587890625, -0.03466796875, 0.00060272216796875, 0.0022735595703125, -0.0296630859375, -0.016845703125, -0.0093994140625, -0.0022430419921875,...
[ 11249, 47, 86869, 66211, 35187, 23, 502, 4867, 32, 87, 765, 1250, 4865, 83, 990 ]
[ 0.10357666015625, 0.1656494140625, 0.2139892578125, 0.219970703125, 0.214111328125, 0.14306640625, 0.1724853515625, 0.251953125, 0.00226593017578125, 0.018585205078125, 0.022705078125, 0.1689453125, 0.04852294921875, 0.0858154296875, 0.2357177734375 ]
embed
50670155_c0
50670155
prolog
0
Title: prolog difference between [X|Y] and [X,Y] Problem title: prolog difference between [X|Y] and [X,Y] Tags: prolog Problem: prolog difference between [X|Y] and [X,Y] I know that [X|Y] is a list where X is the first element and Y is the rest, but what about [X,Y] ?
prolog difference between [X|Y] and [X,Y] prolog difference between [X|Y] and [X,Y] prolog prolog difference between [X|Y] and [X,Y] I know that [X|Y] is a list where X is the first element and Y is the rest, but what about [X,Y] ?
[ 0.010009765625, -0.007476806640625, 0.00121307373046875, 0.01470947265625, -0.0257568359375, 0.0211181640625, -0.01904296875, 0.005035400390625, 0.01068115234375, 0.0111083984375, 0.017578125, -0.00008249282836914062, -0.00921630859375, -0.0201416015625, -0.0030670166015625, -0.0001258...
[ 502, 4867, 60212, 17721, 1542, 58745, 1723, 136, 4, 3714, 83, 5303, 7440, 1193, 5117, 12830, 990, 10588 ]
[ 0.18310546875, 0.257568359375, 0.2049560546875, 0.1141357421875, 0.13525390625, 0.1468505859375, 0.1904296875, 0.05560302734375, 0.062103271484375, 0.0262298583984375, 0.033416748046875, 0.1920166015625, 0.0211181640625, 0.127685546875, 0.0948486328125, 0.183349609375, 0.149536132812...
embed
14869306_c0
14869306
prolog
0
Title: Starting to ending number Problem title: Starting to ending number Tags: prolog Problem: Starting to ending number How can I find sequence from starting number to ending number in Prolog. My function should look findSequence(-4,-6,Z)---> Z=-4;Z=-5;Z=-6 Code signals: Starting
Starting to ending number Starting to ending number prolog Starting Starting to ending number How can I find sequence from starting number to ending number in Prolog. My function should look
[ -0.00323486328125, 0.0189208984375, -0.027099609375, 0.0052490234375, -0.0177001953125, -0.004486083984375, -0.005401611328125, 0.0206298828125, 0.00079345703125, -0.027587890625, -0.01416015625, 0.021484375, -0.006805419921875, 0.0255126953125, 0.024658203125, -0.0108642578125, 0.00...
[ 13794, 214, 47, 86658, 14012, 502, 4867, 831, 87, 7413, 40, 944, 3956, 1295, 72134, 23, 1250, 32354, 6713 ]
[ 0.1495361328125, 0.1517333984375, 0.1849365234375, 0.1932373046875, 0.1678466796875, 0.1422119140625, 0.23779296875, 0.0298614501953125, 0.01255035400390625, 0.133056640625, 0.06982421875, 0.1490478515625, 0.10504150390625, 0.08392333984375, 0.2000732421875, 0.047882080078125, 0.1773...
embed
43880417_c0
43880417
prolog
0
Title: Prolog member/2 predicate Problem title: Prolog member/2 predicate Tags: prolog, member, list Problem: Prolog member/2 predicate Why does prolog answer false to: member([5], [2, 5]). ? Is there a way to work around it? Any help will be greatly appreciated. Code signals: Prolog
Prolog member/2 predicate Prolog member/2 predicate prolog member list Prolog Prolog member/2 predicate Why does prolog answer false to: member([5], [2, 5]). ? Is there a way to work around it? Any help will be greatly appreciated.
[ 0.01055908203125, 0.0093994140625, 0.0301513671875, 0.00167083740234375, -0.030517578125, 0.02197265625, 0.0093994140625, 0.01519775390625, -0.01129150390625, -0.0234375, 0.0213623046875, 0.0045166015625, 0.0013427734375, -0.004486083984375, 0.000888824462890625, -0.0206298828125, -0...
[ 1250, 4867, 32786, 12477, 1653, 2063, 502, 5303, 44084, 14602, 35166, 98320, 47, 45963, 304, 190, 4488, 10932, 4358 ]
[ 0.1385498046875, 0.1995849609375, 0.263427734375, 0.186767578125, 0.1251220703125, 0.148193359375, 0.124267578125, 0.06640625, 0.040008544921875, 0.003753662109375, 0.142822265625, 0.2213134765625, 0.003753662109375, 0.142578125, 0.0894775390625, 0.1434326171875, 0.00201416015625, ...
embed
4586082_c0
4586082
prolog
0
Title: List order sensitivity Problem title: List order sensitivity Tags: prolog Problem: List order sensitivity Given fact likes([apples, oranges], john). how could I query likes([apples, oranges], Who). and likes([oranges, apples], Who). and get same result? Code signals: List, Who
List order sensitivity List order sensitivity prolog List Who List order sensitivity Given fact how could I query and and get same result?
[ 0.0120849609375, 0.0078125, -0.010009765625, 0.0186767578125, -0.00732421875, -0.000705718994140625, 0.0026092529296875, 0.0030364990234375, 0.004669189453125, -0.0185546875, -0.001983642578125, -0.00136566162109375, -0.0208740234375, 0.0078125, -0.00970458984375, 0.0103759765625, 0....
[ 32036, 12989, 176302, 2481, 502, 4867, 40469, 15824, 3642, 5809, 87, 41, 1294, 136, 2046, 5701, 16750 ]
[ 0.19140625, 0.23779296875, 0.225830078125, 0.0628662109375, 0.128662109375, 0.1700439453125, 0.15185546875, 0.1165771484375, 0.0638427734375, 0.05340576171875, 0.0254364013671875, 0.1082763671875, 0.1253662109375, 0.04931640625, 0.05413818359375, 0.1072998046875, 0.147216796875 ]
embed
70744004_c0
70744004
prolog
0
Title: define predicate prolog by requirements Problem title: define predicate prolog by requirements Tags: prolog Problem: define predicate prolog by requirements I have to define a predicate p(X, Y), where Y = f(X) where How could I define the predicate, according to this requirements?
define predicate prolog by requirements define predicate prolog by requirements prolog define predicate prolog by requirements I have to define a predicate p(X, Y), where Y = f(X) where How could I define the predicate, according to this requirements?
[ 0.00921630859375, -0.00701904296875, 0.00494384765625, 0.0113525390625, -0.005523681640625, 0.0164794921875, 0.002899169921875, 0.00008869171142578125, 0.00091552734375, -0.0081787109375, 0.01092529296875, -0.007232666015625, -0.0216064453125, -0.033935546875, 0.011474609375, 0.0002593...
[ 61924, 1653, 2063, 67, 502, 4867, 390, 96679, 87, 765, 915, 1542, 4, 990, 2203, 1238, 7440, 5809, 59499, 903 ]
[ 0.2071533203125, 0.235595703125, 0.255859375, 0.185302734375, 0.182373046875, 0.228759765625, 0.0965576171875, 0.2447509765625, 0.0170135498046875, 0.07293701171875, 0.137939453125, 0.103759765625, 0.049896240234375, 0.1661376953125, 0.0155029296875, 0.1396484375, 0.0224609375, 0.0...
embed
9970749_c0
9970749
prolog
0
Title: Change Encoding in SWI-Prolog Problem title: Change Encoding in SWI-Prolog Tags: prolog, artificial-intelligence Problem: Change Encoding in SWI-Prolog please somebody knows how to change the Encoding to US-ASCII in a SWI-Prolog Program ?? Code signals: Change, Encoding, SWI-Prolog
Change Encoding in SWI-Prolog Change Encoding in SWI-Prolog prolog artificial-intelligence Change Encoding SWI-Prolog Change Encoding in SWI-Prolog please somebody knows how to change the Encoding to US-ASCII in a SWI-Prolog Program ??
[ 0.01165771484375, 0.006927490234375, 0.01300048828125, 0.021728515625, -0.00726318359375, -0.00457763671875, -0.005126953125, 0.0289306640625, -0.01263427734375, 0.00457763671875, 0.01470947265625, 0.00042724609375, -0.0145263671875, 0.0181884765625, 0.021484375, -0.0093994140625, 0....
[ 87377, 357, 587, 6238, 23, 159, 38969, 9, 10752, 4867, 502, 66733, 130687, 22936, 176256, 93002, 3642, 47, 15549, 70, 7082, 284, 134165, 568, 7663, 24610 ]
[ 0.2103271484375, 0.1370849609375, 0.234619140625, 0.1571044921875, 0.06732177734375, 0.10009765625, 0.258544921875, 0.0517578125, 0.16650390625, 0.26611328125, 0.1395263671875, 0.1531982421875, 0.1243896484375, 0.051422119140625, 0.048736572265625, 0.07781982421875, 0.054473876953125...
embed
47729432_c1
47729432
prolog
1
, 97, 114, 116, 105, 110]). % surname("Andersson"). surname([65, 110, 100, 101, 114, 115, 115, 111, 110]). % cardNumber(card-number) cardNumber(1111000011110000). % code(code) code(1337). % balance(balance) balance(0). Is this possible in prolog? :) Code signals: Modifing, Martin, Andersson
, 97, 114, 116, 105, 110]). % surname("Andersson"). surname([65, 110, 100, 101, 114, 115, 115, 111, 110]). % cardNumber(card-number) cardNumber(1111000011110000). % code(code) code(1337). % balance(balance) balance(0). Is this possible in prolog? :) Code signals: Modifing, Martin, Andersson
[ 0.01287841796875, 0.0111083984375, -0.00238037109375, -0.006072998046875, -0.01287841796875, 0.00469970703125, 0.0012969970703125, 0.0274658203125, 0.01708984375, -0.0159912109375, 0.005462646484375, -0.0108642578125, -0.01165771484375, 0.006927490234375, -0.005126953125, -0.0046997070...
[ 4, 14819, 44909, 45773, 21213, 12062, 268, 194, 1745, 613, 11627, 284, 7944, 4503, 12424, 805, 21027, 29187, 36682, 20596, 18444, 26278, 38931, 9, 2606, 159019, 28568, 18151, 40899, 129176, 40197, 173212, 177609, 2071, 903, 7722, 23, 502, 4...
[ 0.007568359375, 0.2015380859375, 0.1915283203125, 0.1756591796875, 0.1844482421875, 0.1705322265625, 0.000885009765625, 0.0030517578125, 0.0968017578125, 0.1734619140625, 0.1993408203125, 0.1097412109375, 0.1875, 0.24462890625, 0.2071533203125, 0.1085205078125, 0.12353515625, 0.123...
embed
4097451_c0
4097451
prolog
0
Title: How do I include a .pl file in Prolog? Problem title: How do I include a .pl file in Prolog? Tags: prolog, include, file Problem: How do I include a .pl file in Prolog? I'd like to include code from another source file. Does anyone know how to do that? Code signals: a, file, How, Prolog
How do I include a .pl file in Prolog? How do I include a .pl file in Prolog? prolog include file a file How Prolog How do I include a .pl file in Prolog? I'd like to include code from another source file. Does anyone know how to do that?
[ 0.01544189453125, 0.015869140625, 0.00567626953125, 0.0308837890625, -0.0240478515625, -0.002899169921875, 0.00665283203125, -0.0096435546875, 0.005523681640625, -0.053466796875, 0.0179443359375, 0.026123046875, -0.039306640625, 0.0201416015625, 0.01043701171875, -0.00360107421875, -...
[ 11249, 26698, 2424, 11435, 23, 1250, 4867, 5, 502, 10, 1884, 18151, 31344, 3642 ]
[ 0.04095458984375, 0.1279296875, 0.2222900390625, 0.17724609375, 0.057281494140625, 0.1475830078125, 0.2059326171875, 0.0225067138671875, 0.114990234375, 0.01409912109375, 0.0220947265625, 0.1397705078125, 0.10931396484375, 0.0005931854248046875 ]
embed
4187632_c2
4187632
prolog
2
51963, 737135, 246842, 22754, 1176800, 1036258, 625628|...], NsS = [1234564, 1234563, 1234562, 1234558, 1234557, 1234556, 1234555|...]. Can I do better than rsort1 and rsort2 speedwise? Code signals: Fast, SWI, Prolog, rsort1, Tmp, rsort2, reverse_compare, Delta, Size, test_list, NsS, CPU, Lips
51963, 737135, 246842, 22754, 1176800, 1036258, 625628|...], NsS = [1234564, 1234563, 1234562, 1234558, 1234557, 1234556, 1234555|...]. Can I do better than rsort1 and rsort2 speedwise? Code signals: Fast, SWI, Prolog, rsort1, Tmp, rsort2, reverse_compare, Delta, Size, test_list, NsS, CPU, Lips
[ -0.0189208984375, 0.014892578125, 0.002655029296875, -0.0172119140625, -0.0185546875, -0.01495361328125, -0.00640869140625, -0.0030364990234375, -0.01708984375, 0.005615234375, 0.00970458984375, 0.03271484375, 0.0037994384765625, 0.007476806640625, 0.018798828125, -0.017333984375, 0....
[ 190, 161922, 115252, 88622, 744, 187019, 304, 1039, 188609, 534, 11835, 10253, 35389, 10837, 10057, 127892, 3882, 541, 7, 294, 2203, 190875, 176830, 4, 427, 96060, 15748, 176908, 159595, 163406, 87357, 4171, 87, 54, 11522, 3501, 1690, 62351, ...
[ 0.09912109375, 0.22314453125, 0.1236572265625, 0.1771240234375, 0.0596923828125, 0.11376953125, 0.1549072265625, 0.023712158203125, 0.164794921875, 0.0166168212890625, 0.0711669921875, 0.128173828125, 0.042938232421875, 0.115966796875, 0.084716796875, 0.0882568359375, 0.1015625, 0....
embed
15451095_c0
15451095
prolog
0
Title: Prolog - two lists Problem title: Prolog - two lists Tags: prolog, list Problem: Prolog - two lists I have two lists, for example: L1=[1,0,1,0,1,1] L2=[2,3,4,2,1,1] and I want to check something like this if (L1[k]==0) sum=L2(k) Is there any way to do that using prolog? Code signals: Prolog
Prolog - two lists Prolog - two lists prolog list Prolog Prolog - two lists I have two lists, for example: and I want to check something like this Is there any way to do that using prolog?
[ 0.011474609375, 0.01190185546875, -0.005401611328125, 0.0029754638671875, -0.0108642578125, 0.0191650390625, -0.004669189453125, 0.01708984375, 0.01446533203125, -0.001861572265625, 0.0189208984375, 0.002227783203125, -0.01025390625, 0.0067138671875, -0.0002880096435546875, 0.010131835...
[ 1250, 4867, 6626, 5303, 7, 502, 765, 27781, 3444, 47, 12765, 9844, 1884, 903, 3917, 54, 450, 17368 ]
[ 0.1529541015625, 0.2359619140625, 0.1611328125, 0.250732421875, 0.069580078125, 0.14111328125, 0.032958984375, 0.0216217041015625, 0.07025146484375, 0.055816650390625, 0.228515625, 0.0341796875, 0.0833740234375, 0.1048583984375, 0.03369140625, 0.03106689453125, 0.020751953125, 0.05...
embed
8742936_c0
8742936
prolog
0
Title: check double list in prolog Problem title: check double list in prolog Tags: prolog, list Problem: check double list in prolog I have a predicate called check(A,B) . that checks if list A matches with another list B. I need to make a predicate that checks if a list's elements are single lists.
check double list in prolog check double list in prolog prolog list check double list in prolog I have a predicate called check(A,B) . that checks if list A matches with another list B. I need to make a predicate that checks if a list's elements are single lists.
[ 0.006439208984375, -0.0184326171875, 0.002532958984375, 0.0245361328125, -0.01806640625, 0.04736328125, -0.0130615234375, -0.00177001953125, 0.0244140625, 0.00958251953125, 0.01190185546875, 0.002227783203125, 0.0120849609375, -0.0172119140625, -0.01287841796875, 0.005035400390625, 0...
[ 12765, 41929, 5303, 23, 502, 4867, 1653, 2063, 67, 284, 4, 571, 2174, 62, 14858, 678, 15700, 335, 3871, 80854, 621, 11001 ]
[ 0.2257080078125, 0.2421875, 0.240966796875, 0.058563232421875, 0.17626953125, 0.2227783203125, 0.12744140625, 0.1527099609375, 0.077880859375, 0.042449951171875, 0.0231170654296875, 0.1097412109375, 0.03448486328125, 0.00852203369140625, 0.1636962890625, 0.09735107421875, 0.002716064...
embed
48817133_c1
48817133
prolog
1
are the index-of-the-lists f.e. LoL = [[1,2],[3,4],[5,6]] move(1,3, LoL, NewLoL) NewLoL = [[2],[3,4],[1,5,6]] move(2,1, LoL, NewLoL) NewLoL = [[3,1,2],[4],[1,5,6]] move the top element from list-1 to list-3. Code signals: Move, State, NewState, NP1, NP2, NP3, nth1, move_elem, NewFL, NewTL, LoL, NewLoL
are the index-of-the-lists f.e. LoL = [[1,2],[3,4],[5,6]] move(1,3, LoL, NewLoL) NewLoL = [[2],[3,4],[1,5,6]] move(2,1, LoL, NewLoL) NewLoL = [[3,1,2],[4],[1,5,6]] move the top element from list-1 to list-3. Code signals: Move, State, NewState, NP1, NP2, NP3, nth1, move_elem, NewFL, NewTL, LoL, NewLoL
[ -0.027099609375, 0.0036163330078125, -0.0166015625, 0.0050048828125, -0.017333984375, 0.0234375, 0.02001953125, 0.0250244140625, 0.0166015625, 0.014404296875, -0.006561279296875, -0.01055908203125, 0.00799560546875, 0.001556396484375, -0.009765625, -0.03271484375, 0.0184326171875, ...
[ 621, 70, 63262, 4390, 2347, 9, 6562, 7, 1238, 13, 2091, 866, 2203, 133063, 82449, 104629, 86245, 25813, 363, 2356, 15363, 16, 39556, 4, 54753, 418, 68714, 2663, 12830, 1295, 5303, 5759, 47, 8316, 5, 28864, 26073, 12, 135828, 22836, 1352...
[ 0.135009765625, 0.0677490234375, 0.271484375, 0.2027587890625, 0.1246337890625, 0.0189971923828125, 0.275634765625, 0.123291015625, 0.08447265625, 0.060577392578125, 0.1517333984375, 0.2041015625, 0.1063232421875, 0.1378173828125, 0.1614990234375, 0.1937255859375, 0.046661376953125, ...
embed
8984409_c0
8984409
prolog
0
Title: Unifiable Prolog Terms Problem title: Unifiable Prolog Terms Tags: prolog, syntax Problem: Unifiable Prolog Terms Are the two terms [a,b,c,d,e] and [[X] | [b,c,d,e]] unifiable? I need confirmation I think they are not because you cannot get [X] = a in any way? Code signals: Unifiable, Prolog, Terms
Unifiable Prolog Terms Unifiable Prolog Terms prolog syntax Unifiable Prolog Terms Unifiable Prolog Terms Are the two terms [a,b,c,d,e] and [[X] | [b,c,d,e]] unifiable? I need confirmation I think they are not because you cannot get [X] = a in any way?
[ 0.0303955078125, 0.020263671875, -0.004302978515625, -0.000274658203125, -0.01409912109375, 0.00604248046875, -0.006866455078125, 0.0074462890625, 0.006591796875, 0.00274658203125, 0.0103759765625, 0.005950927734375, -0.003509521484375, 0.005462646484375, -0.005645751953125, 0.01165771...
[ 11789, 1029, 2886, 1250, 4867, 165504, 502, 6002, 86531, 15901, 6626, 69407, 11, 275, 238, 71, 13, 136, 1542, 51, 27430, 3871, 169935, 5351, 621, 959, 53418, 2046, 2203, 10 ]
[ 0.145751953125, 0.15185546875, 0.1802978515625, 0.10968017578125, 0.193603515625, 0.2095947265625, 0.08758544921875, 0.043609619140625, 0.033721923828125, 0.002353668212890625, 0.10174560546875, 0.2498779296875, 0.036224365234375, 0.05267333984375, 0.04547119140625, 0.09442138671875, ...
embed
8685197_c0
8685197
prolog
0
Title: Recognize operating system in Prolog Problem title: Recognize operating system in Prolog Tags: prolog, operating-system Problem: Recognize operating system in Prolog Is there anyway to find out what operating system currently being used through prolog please? Thanks, L Code signals: Recognize, Prolog
Recognize operating system in Prolog Recognize operating system in Prolog prolog operating-system Recognize Prolog Recognize operating system in Prolog Is there anyway to find out what operating system currently being used through prolog please? Thanks, L
[ 0.0235595703125, 0.006591796875, 0.01483154296875, 0.0245361328125, 0.00194549560546875, 0.00408935546875, -0.005706787109375, 0.01495361328125, -0.0252685546875, -0.0235595703125, 0.0057373046875, -0.00604248046875, -0.00958251953125, -0.00012969970703125, 0.004150390625, 0.0161132812...
[ 853, 115558, 731, 172852, 5426, 23, 1250, 4867, 502, 16751, 109954, 47, 7413, 1810, 2367, 82424, 8035, 11814, 8305, 22936 ]
[ 0.06304931640625, 0.1885986328125, 0.118896484375, 0.2078857421875, 0.1798095703125, 0.0826416015625, 0.1754150390625, 0.256591796875, 0.14794921875, 0.129638671875, 0.050811767578125, 0.047882080078125, 0.10791015625, 0.08856201171875, 0.098876953125, 0.13427734375, 0.10150146484375...
embed
14303337_c0
14303337
prolog
0
Title: prolog display weight Problem title: prolog display weight Tags: prolog Problem: prolog display weight How would I program a rule in prolog that will allow it to print a list of the edge cost/weight between two nodes? My edge facts are entered as edge(X,Y,Weight). edge(Y,X,Weight). Code signals: Weight
prolog display weight prolog display weight prolog Weight prolog display weight How would I program a rule in prolog that will allow it to print a list of the edge cost/weight between two nodes? My edge facts are entered as
[ 0.04052734375, 0.0189208984375, 0.0024261474609375, 0.000469207763671875, 0.0167236328125, 0.0262451171875, -0.018798828125, 0.009033203125, 0.00139617919921875, -0.00799560546875, 0.0036773681640625, -0.03759765625, -0.01495361328125, -0.004425048828125, 0.01348876953125, 0.0115966796...
[ 502, 4867, 44116, 57888, 150533, 2806, 1528, 79986, 23, 63769, 28412, 5303, 121303, 11034, 165598, 17721, 6626, 110, 988, 15824, 30957 ]
[ 0.1337890625, 0.2296142578125, 0.1588134765625, 0.2327880859375, 0.205078125, 0.0328369140625, 0.1552734375, 0.1815185546875, 0.003879547119140625, 0.062042236328125, 0.1683349609375, 0.1375732421875, 0.1845703125, 0.1611328125, 0.218505859375, 0.1107177734375, 0.0753173828125, 0.1...
embed
10929198_c0
10929198
prolog
0
Title: dealing with lists in Prolog (removing elements) Problem title: dealing with lists in Prolog (removing elements) Tags: lambda, list, prolog Problem: dealing with lists in Prolog (removing elements) How can I delete all elements from a list which can be divided by 3 (i.e. x % 3 == 0 )? Code signals: Prolog
dealing with lists in Prolog (removing elements) dealing with lists in Prolog (removing elements) lambda list prolog Prolog dealing with lists in Prolog (removing elements) How can I delete all elements from a list which can be divided by 3 (i.e. x % 3 == 0 )?
[ -0.0034332275390625, 0.029296875, -0.0016632080078125, -0.0174560546875, -0.004150390625, 0.0166015625, 0.014892578125, 0.0013885498046875, 0.01904296875, -0.011962890625, 0.01129150390625, -0.0234375, -0.000690460205078125, -0.0152587890625, -0.002166748046875, 0.0172119140625, 0.01...
[ 184017, 678, 5303, 1250, 4867, 26973, 80854, 6496, 6492, 85, 502, 11249, 831, 154109, 756, 1295, 101637, 390, 138, 1022, 1745, 69112, 757 ]
[ 0.09466552734375, 0.0635986328125, 0.175537109375, 0.1370849609375, 0.224853515625, 0.06927490234375, 0.1439208984375, 0.025787353515625, 0.10662841796875, 0.055877685546875, 0.07794189453125, 0.0060882568359375, 0.01412200927734375, 0.205810546875, 0.052398681640625, 0.010337829589843...
embed
13311067_c0
13311067
prolog
0
Title: operator is, the list Problem title: operator is, the list Tags: prolog Problem: operator is, the list I use this function: f(V):-V is [1,2,3,4,5]. But I get an error: ERROR: '.'/2: Type error: `[]' expected, found `[2,3,4,5]' ("x" must hold one character) What needs to be fixed? Code signals: ERROR, Type
operator is, the list operator is, the list prolog ERROR Type operator is, the list I use this function: But I get an error: What needs to be fixed?
[ 0.006591796875, -0.013671875, 0.0115966796875, 0.00750732421875, 0.00168609619140625, -0.009033203125, -0.00714111328125, 0.020751953125, 0.00933837890625, -0.01141357421875, 0.0186767578125, -0.025146484375, 0.00836181640625, -0.005889892578125, -0.0220947265625, -0.010498046875, 0....
[ 39933, 83, 70, 5303, 502, 4867, 151206, 24638, 60457, 4, 4527, 903, 32354, 4966, 2046, 18499, 27117, 47, 188347 ]
[ 0.2705078125, 0.177734375, 0.0821533203125, 0.2294921875, 0.142822265625, 0.2281494140625, 0.1424560546875, 0.050201416015625, 0.171142578125, 0.02508544921875, 0.104248046875, 0.04248046875, 0.1663818359375, 0.037872314453125, 0.01412200927734375, 0.204345703125, 0.1278076171875, ...
embed
8385423_c0
8385423
prolog
0
Title: Permute into a list SWI-Prolog Problem title: Permute into a list SWI-Prolog Tags: prolog, list Problem: Permute into a list SWI-Prolog How do you use the permute predicate to output into a list in SWI prolog? The permutation/2 predicate only returns one result at a time. Code signals: Permute, SWI-Prolog
Permute into a list SWI-Prolog Permute into a list SWI-Prolog prolog list Permute SWI-Prolog Permute into a list SWI-Prolog How do you use the permute predicate to output into a list in SWI prolog? The permutation/2 predicate only returns one result at a time.
[ 0.013671875, -0.0035400390625, 0.0137939453125, 0.01123046875, -0.024169921875, 0.01165771484375, -0.029541015625, -0.002532958984375, -0.00537109375, -0.03955078125, 0.001678466796875, -0.01080322265625, 0.0169677734375, 0.007781982421875, -0.02783203125, 0.0120849609375, -0.0081176...
[ 908, 561, 67, 3934, 10, 5303, 159, 38969, 10752, 4867, 502, 4527, 117, 1653, 2063, 140992, 22062, 12477, 4734, 30646, 1632, 16750, 1733, 5 ]
[ 0.1473388671875, 0.2451171875, 0.1451416015625, 0.1790771484375, 0.05145263671875, 0.2484130859375, 0.08062744140625, 0.2203369140625, 0.1319580078125, 0.19189453125, 0.1356201171875, 0.10662841796875, 0.1533203125, 0.160400390625, 0.1854248046875, 0.209716796875, 0.0672607421875, ...
embed
6379863_c0
6379863
prolog
0
Title: Append to number list Problem title: Append to number list Tags: prolog Problem: Append to number list numbers([],[]). numbers([H|T],L):- ((H @>=10 , H @=<15) -> append(H,LI,L);true),numbers(T,LI). I am having problem there... All H should be added at L list... but i cant achieve that! Code signals: Append
Append to number list Append to number list prolog Append Append to number list I am having problem there... All H should be added at L list... but i cant achieve that!
[ 0.0030517578125, -0.01123046875, 0.01202392578125, -0.01220703125, 0.00408935546875, 0.016357421875, -0.01123046875, 0.032958984375, 0.0135498046875, -0.0245361328125, 0.0040283203125, -0.03369140625, -0.0111083984375, 0.0169677734375, 0.00830078125, -0.0184326171875, 0.0145263671875...
[ 5659, 3611, 47, 14012, 5303, 502, 4867, 19441, 2967, 2685, 3164, 572, 5608, 186, 49814, 99, 339, 1284, 17, 45767, 69307, 450, 38 ]
[ 0.1734619140625, 0.1697998046875, 0.1650390625, 0.1929931640625, 0.2275390625, 0.1400146484375, 0.1990966796875, 0.047821044921875, 0.1400146484375, 0.03948974609375, 0.1368408203125, 0.241455078125, 0.1058349609375, 0.00208282470703125, 0.1815185546875, 0.108642578125, 0.18151855468...
embed
65186152_c0
65186152
prolog
0
Title: How will Prolog interpret this? Problem title: How will Prolog interpret this? Tags: prolog Problem: How will Prolog interpret this? How will prolog interpret this expression? a(R) :- b(R,S), b(S,R). Does this mean that a(R) will only return true if both b(R,S) and b(S,R) are true? Code signals: How, Prolog
How will Prolog interpret this? How will Prolog interpret this? prolog How Prolog How will Prolog interpret this? How will prolog interpret this expression? Does this mean that a(R) will only return true if both b(R,S) and b(S,R) are true?
[ 0.0118408203125, 0.00131988525390625, 0.004364013671875, 0.023681640625, -0.01806640625, 0.033447265625, -0.00518798828125, -0.012451171875, -0.008544921875, -0.0026092529296875, 0.0091552734375, 0.0101318359375, -0.0252685546875, -0.000263214111328125, 0.00958251953125, -0.00415039062...
[ 1221, 1250, 4867, 29481, 903, 11249, 502, 125195, 29459, 10, 1052, 4734, 30646, 29568, 2174, 15044, 876, 294, 136 ]
[ 0.057098388671875, 0.1654052734375, 0.235595703125, 0.2103271484375, 0.06207275390625, 0.039093017578125, 0.1134033203125, 0.22705078125, 0.05889892578125, 0.0706787109375, 0.163818359375, 0.05682373046875, 0.17626953125, 0.1785888671875, 0.0264129638671875, 0.005176544189453125, 0.0...
embed
32432308_c0
32432308
prolog
0
Title: Meaning of curly brakets in Prolog Problem title: Meaning of curly brakets in Prolog Tags: syntax, prolog, curly-braces Problem: Meaning of curly brakets in Prolog What is the meaning of curly brackets in Prolog: {a,b,c} I see I can use them, but do they describe tuples or what? Code signals: Meaning, Prolog
Meaning of curly brakets in Prolog Meaning of curly brakets in Prolog syntax prolog curly-braces Meaning Prolog Meaning of curly brakets in Prolog What is the meaning of curly brackets in Prolog: I see I can use them, but do they describe tuples or what?
[ 0.00946044921875, 0.01129150390625, 0.01373291015625, 0.003143310546875, 0.0166015625, 0.004119873046875, -0.00445556640625, 0.005096435546875, 0.005157470703125, -0.006500244140625, 0.0028076171875, -0.0074462890625, -0.017333984375, -0.0157470703125, 0.010986328125, 0.00518798828125,...
[ 1215, 11, 9709, 538, 30316, 7831, 23, 1250, 4867, 6002, 86531, 502, 2844, 5170, 91084, 1620, 27853, 7, 4527, 98363, 370, 99726 ]
[ 0.051422119140625, 0.07696533203125, 0.1734619140625, 0.153076171875, 0.18017578125, 0.1595458984375, 0.029296875, 0.12841796875, 0.183837890625, 0.01163482666015625, 0.052520751953125, 0.106689453125, 0.180908203125, 0.04736328125, 0.1595458984375, 0.1619873046875, 0.1976318359375, ...
embed
64684272_c0
64684272
prolog
0
Title: Why this prolog&#x27;s output is yes/true? Problem title: Why this prolog&#x27;s output is yes/true? Tags: prolog Problem: Why this prolog's output is yes/true? I'd like to know why logically this is a valid inference: friends(X,Y) :- like(X,Y). friends(david,sara). ?- like(david,sara). yes Code signals: Why
Why this prolog&#x27;s output is yes/true? Why this prolog&#x27;s output is yes/true? prolog Why Why this prolog's output is yes/true? I'd like to know why logically this is a valid inference:
[ 0.0201416015625, 0.00811767578125, -0.00653076171875, 0.04248046875, -0.01171875, 0.004302978515625, 0.00982666015625, 0.01031494140625, 0.0133056640625, -0.004730224609375, -0.007476806640625, -0.0036468505859375, -0.0361328125, 0.0206298828125, 0.0150146484375, -0.00421142578125, -...
[ 44084, 903, 502, 4867, 3768, 140992, 83, 72272, 64, 9774, 7, 13, 25, 1884, 3714, 15400, 12684, 71407, 35604, 53498, 6620 ]
[ 0.2056884765625, 0.1265869140625, 0.1978759765625, 0.24951171875, 0.1134033203125, 0.2587890625, 0.12890625, 0.1910400390625, 0.09686279296875, 0.18994140625, 0.047576904296875, 0.0999755859375, 0.00916290283203125, 0.034942626953125, 0.03302001953125, 0.1497802734375, 0.068908691406...
embed
12977892_c0
12977892
prolog
0
Title: Splitting a list in prolog Problem title: Splitting a list in prolog Tags: list, prolog, element, split Problem: Splitting a list in prolog Code signals: Splitting, Rest, Elem1, List1, Elem2, List2, Call, _G4821, _G4822, Exit, _G4928, _G4929, _G4931, _G4932, _G4940, _G4941, Fail, _G4949, _G4950, _G4958, _G4959
Splitting a list in prolog Splitting a list in prolog list prolog element split Splitting Rest Elem1 List1 Elem2 List2 Call _G4821 _G4822 Exit _G4928 _G4929 _G4931 _G4932 _G4940 _G4941 Fail _G4949 _G4950 _G4958 _G4959 Splitting a list in prolog I'm pretty new to Prolog, and I need some help with a small problem: I'm tr...
[ -0.0052490234375, 0.008056640625, 0.0031585693359375, 0.00885009765625, -0.030029296875, 0.0162353515625, -0.00872802734375, 0.0101318359375, 0.0155029296875, -0.005157470703125, 0.01434326171875, 0.006011962890625, -0.0302734375, 0.004913330078125, 0.0096435546875, 0.00933837890625, ...
[ 46474, 1916, 5303, 23, 502, 4867, 10, 12830, 65450, 49756, 540, 195, 418, 32036, 304, 26265, 724, 9285, 3117, 4015, 5443, 217, 12977, 3882, 4235, 5016, 6460, 2839, 162823, 190355, 176857, 2525, 10057, 127351, 1126, 3525, 1250, 4358, 19336, ...
[ 0.21728515625, 0.102783203125, 0.252197265625, 0.09765625, 0.1846923828125, 0.2374267578125, 0.0273590087890625, 0.190185546875, 0.223876953125, 0.1669921875, 0.0206146240234375, 0.1085205078125, 0.013458251953125, 0.1429443359375, 0.06866455078125, 0.1400146484375, 0.003875732421875...
embed
30308204_c0
30308204
prolog
0
Title: Running Prolog in a web browser Problem title: Running Prolog in a web browser Tags: css, html, prolog Problem: Running Prolog in a web browser Just wondering is it possible to run prolog script in a browser? I studied it at university and Id like to add it to my online portfolio? Code signals: Running, Prolog
Running Prolog in a web browser Running Prolog in a web browser css html prolog Running Prolog Running Prolog in a web browser Just wondering is it possible to run prolog script in a browser? I studied it at university and Id like to add it to my online portfolio?
[ 0.038818359375, 0.0194091796875, 0.00146484375, 0.01055908203125, -0.005645751953125, 0.0103759765625, 0.0037994384765625, -0.0057373046875, -0.0059814453125, -0.06884765625, 0.01611328125, 0.005615234375, -0.01348876953125, -0.00885009765625, 0.02978515625, -0.0072021484375, 0.01538...
[ 28398, 592, 1250, 4867, 23, 1467, 31842, 10, 20763, 7, 7693, 502, 149016, 83, 442, 7722, 47, 11675, 26499, 22282, 152363, 24799, 1884, 15190, 1118, 137251 ]
[ 0.11724853515625, 0.09881591796875, 0.190185546875, 0.28125, 0.08758544921875, 0.091796875, 0.235595703125, 0.0322265625, 0.080078125, 0.031494140625, 0.09332275390625, 0.1751708984375, 0.062744140625, 0.01540374755859375, 0.0103759765625, 0.1358642578125, 0.0025882720947265625, 0....
embed
4716635_c0
4716635
prolog
0
Title: Prolog programming - simple negative query Problem title: Prolog programming - simple negative query Tags: prolog Problem: Prolog programming - simple negative query My database is: eat(magi,limo). eat(nona,banana). How do I ask: "Who's not eating limo?" This: eat(X,not(limo)). Doesn't work. :( Code signals: Pro...
Prolog programming - simple negative query Prolog programming - simple negative query prolog Prolog Prolog programming - simple negative query My database is: How do I ask: "Who's not eating limo?" This: Doesn't work. :(
[ 0.017333984375, 0.017333984375, 0.00244140625, -0.00009870529174804688, -0.0225830078125, 0.01397705078125, 0.01324462890625, 0.001434326171875, -0.0003795623779296875, -0.01336669921875, -0.01153564453125, -0.025390625, -0.0194091796875, -0.00537109375, 0, 0.0022430419921875, 0.0003...
[ 1250, 4867, 56037, 449, 8781, 40907, 41, 1294, 502, 63399, 83, 11249, 54, 26458, 1456, 497, 7, 959, 118992, 6, 70430, 3293, 101790, 18, 4488 ]
[ 0.1485595703125, 0.2471923828125, 0.12017822265625, 0.07177734375, 0.11663818359375, 0.2095947265625, 0.1370849609375, 0.056610107421875, 0.0880126953125, 0.2197265625, 0.00970458984375, 0.0221099853515625, 0.0182952880859375, 0.2042236328125, 0.0131683349609375, 0.10284423828125, 0....
embed
61560544_c0
61560544
prolog
0
Title: prolog sublists between # Problem title: prolog sublists between # Tags: list, prolog Problem: prolog sublists between # Code signals: Fila, espaco_fila, Espaco, _2456, _2462, _2468, _2480, _2492, _2604, _2610, _2616, _2622, _2640, _2758, _2764, _2770, _2776, _2782, _2794, _2486, _2628, _2474, _2504, _2510, _251...
prolog sublists between # prolog sublists between # list prolog Fila espaco_fila Espaco _2456 _2462 _2468 _2480 _2492 _2604 _2610 _2616 _2622 _2640 _2758 _2764 _2770 _2776 _2782 _2794 _2486 _2628 _2474 _2504 _2510 _2516 Esp prolog sublists between # I have this function that extracts sublists between # like this: Howev...
[ 0.00372314453125, -0.006805419921875, 0.0169677734375, 0.01171875, -0.0184326171875, -0.0016632080078125, -0.01397705078125, 0.01483154296875, 0.0244140625, 0.004638671875, 0.010009765625, -0.0279541015625, -0.0050048828125, -0.0034942626953125, 0.00185394287109375, -0.0015716552734375...
[ 502, 4867, 1614, 6562, 17721, 468, 5303, 24158, 11, 101404, 587, 119948, 75760, 2357, 13683, 10837, 16028, 4836, 12231, 4046, 7709, 963, 2485, 4015, 2839, 3768, 10057, 13307, 5757, 11835, 121489, 14889, 15276, 3882, 16360, 24291, 2588, 49650,...
[ 0.1605224609375, 0.206787109375, 0.2078857421875, 0.2666015625, 0.2181396484375, 0.0948486328125, 0.159912109375, 0.122802734375, 0.0926513671875, 0.1295166015625, 0.1600341796875, 0.16259765625, 0.1365966796875, 0.0703125, 0.1678466796875, 0.1307373046875, 0.1505126953125, 0.13305...
embed
44106022_c0
44106022
prolog
0
Title: How to remove the first element of sub-list in prolog Problem title: How to remove the first element of sub-list in prolog Tags: prolog Problem: How to remove the first element of sub-list in prolog List like this: [1,[2,3,4]] Remove the first element of sub-list which is 2, Result like this: [1,[3,4]] Code sign...
How to remove the first element of sub-list in prolog How to remove the first element of sub-list in prolog prolog How How to remove the first element of sub-list in prolog List like this: [1,[2,3,4]] Remove the first element of sub-list which is 2, Result like this: [1,[3,4]]
[ 0.00897216796875, 0.01226806640625, -0.005706787109375, 0.019775390625, -0.03173828125, -0.000762939453125, -0.005096435546875, 0.01409912109375, 0.006805419921875, -0.0301513671875, 0.01080322265625, 0.01141357421875, -0.0057373046875, -0.0034942626953125, -0.0002918243408203125, -0.0...
[ 11249, 47, 87388, 5117, 12830, 111, 1614, 6562, 502, 4867, 9, 23, 32036, 304, 82449, 181139, 116, 126684 ]
[ 0.036529541015625, 0.025665283203125, 0.186767578125, 0.1558837890625, 0.182861328125, 0.051971435546875, 0.2294921875, 0.2191162109375, 0.1568603515625, 0.2291259765625, 0.04779052734375, 0.0194244384765625, 0.138916015625, 0.01678466796875, 0.1317138671875, 0.144287109375, 0.107910...
embed
61331772_c0
61331772
prolog
0
Title: What does A| B mean in prolog? Problem title: What does A| B mean in prolog? Tags: prolog Problem: What does A| B mean in prolog? I have some code that works thing(A|B) However, if I do: Foo = A | B, thing(Foo) The app doesn't throw any errors but it doesn't work as intended Why is this happening? Code signals: ...
What does A| B mean in prolog? What does A| B mean in prolog? prolog What Foo What does A| B mean in prolog? I have some code that works However, if I do: The app doesn't throw any errors but it doesn't work as intended Why is this happening?
[ 0.036865234375, 0.00567626953125, 0.0084228515625, 0.0169677734375, -0.023193359375, 0.01031494140625, -0.0177001953125, 0.0068359375, 0.006927490234375, -0.016845703125, -0.007476806640625, 0.0157470703125, 0.0002994537353515625, -0.003326416015625, -0.000896453857421875, -0.027587890...
[ 4865, 14602, 62, 58745, 335, 29459, 23, 502, 4867, 9572, 31, 18151, 43240, 2174, 54, 4027, 22027, 18, 104250, 2499, 18499, 1284, 4488, 237, 179140, 123087 ]
[ 0.056121826171875, 0.09283447265625, 0.14404296875, 0.181640625, 0.201416015625, 0.1510009765625, 0.095458984375, 0.1837158203125, 0.250732421875, 0.15478515625, 0.124267578125, 0.1512451171875, 0.053558349609375, 0.00025963783264160156, 0.037384033203125, 0.186767578125, 0.040802001...
embed
26744262_c0
26744262
prolog
0
Title: Get list of two numbers that add up to a number in prolog Problem title: Get list of two numbers that add up to a number in prolog Tags: sum, prolog Problem: Get list of two numbers that add up to a number in prolog for example, getNumbers(M,C,10) would give M=10, C = 0 && M=9, C=1 && M=8, C=2... etc etc Code si...
Get list of two numbers that add up to a number in prolog Get list of two numbers that add up to a number in prolog sum prolog Get Get list of two numbers that add up to a number in prolog for example, getNumbers(M,C,10) would give M=10, C = 0 && M=9, C=1 && M=8, C=2... etc etc
[ 0.00182342529296875, -0.0035400390625, 0.00567626953125, 0.0196533203125, -0.01055908203125, 0.0191650390625, -0.00933837890625, 0.00323486328125, 0.041748046875, -0.0361328125, 0.020751953125, 0.0025177001953125, -0.0146484375, 0.0162353515625, 0.01300048828125, -0.0003509521484375, ...
[ 20779, 5303, 6626, 101935, 450, 15190, 1257, 47, 14012, 23, 502, 4867, 10554, 2046, 18444, 26278, 594, 441, 50258, 2806, 8337, 276, 1369, 963, 313, 757, 1126, 33000, 1019, 55257 ]
[ 0.1043701171875, 0.1600341796875, 0.130615234375, 0.1636962890625, 0.05078125, 0.1629638671875, 0.116455078125, 0.1002197265625, 0.159912109375, 0.0755615234375, 0.1636962890625, 0.2242431640625, 0.1617431640625, 0.115966796875, 0.10589599609375, 0.1634521484375, 0.0777587890625, 0...
embed
69712122_c0
69712122
prolog
0
Title: Create Prolog 2d list filled with 0 Problem title: Create Prolog 2d list filled with 0 Tags: prolog Problem: Create Prolog 2d list filled with 0 I would like to ask for some help to create a 2d list in Prolog. matrix(N, M, MX) :- ... //TODO ?- matrix(2, 3, Mx). Mx = [[0,0,0],[0,0,0]] ? ; no Code signals: Create,...
Create Prolog 2d list filled with 0 Create Prolog 2d list filled with 0 prolog Create Prolog TODO Create Prolog 2d list filled with 0 I would like to ask for some help to create a 2d list in Prolog.
[ 0.0216064453125, -0.0022125244140625, 0.0181884765625, -0.003265380859375, 0.0009613037109375, 0.02001953125, 0.0045166015625, 0.010498046875, 0.004791259765625, 0.006805419921875, 0.0150146484375, -0.02197265625, -0.002288818359375, -0.0125732421875, -0.01116943359375, 0.009521484375,...
[ 151313, 1250, 4867, 116, 71, 5303, 152382, 678, 757, 502, 9926, 13223, 1884, 26458, 4358, 28282, 10, 23 ]
[ 0.1165771484375, 0.15087890625, 0.240234375, 0.1204833984375, 0.1331787109375, 0.205810546875, 0.14111328125, 0.0699462890625, 0.1812744140625, 0.1092529296875, 0.055633544921875, 0.1109619140625, 0.0374755859375, 0.0494384765625, 0.08953857421875, 0.125732421875, 0.00405120849609375...
embed
13880187_c0
13880187
prolog
0
Title: What is &quot;write&quot; syntax in AMZI Prolog? Problem title: What is &quot;write&quot; syntax in AMZI Prolog? Tags: prolog Problem: What is "write" syntax in AMZI Prolog? I wonder if there is something like "write" (if in Turbo Prolog) or "printf" (if in C) syntax but in AMZI Prolog? Thanks. Code signals: Wha...
What is &quot;write&quot; syntax in AMZI Prolog? What is &quot;write&quot; syntax in AMZI Prolog? prolog What AMZI Prolog What is "write" syntax in AMZI Prolog? I wonder if there is something like "write" (if in Turbo Prolog) or "printf" (if in C) syntax but in AMZI Prolog? Thanks.
[ 0.0023956298828125, 0.025146484375, -0.006134033203125, 0.0211181640625, -0.007476806640625, 0.0196533203125, 0.00482177734375, 0.00909423828125, 0.0120849609375, 0.0181884765625, 0.0101318359375, 0.0029754638671875, -0.0103759765625, -0.005523681640625, 0.018310546875, 0.00439453125, ...
[ 4865, 83, 434, 18781, 41502, 6002, 86531, 23, 9677, 21752, 1250, 4867, 502, 58, 32195, 9844, 1884, 3190, 102228, 35662, 420, 313, 1284 ]
[ 0.031219482421875, 0.050262451171875, 0.109619140625, 0.2491455078125, 0.0142059326171875, 0.18115234375, 0.2296142578125, 0.05401611328125, 0.1273193359375, 0.2147216796875, 0.137939453125, 0.186767578125, 0.0833740234375, 0.0013427734375, 0.00897216796875, 0.0238037109375, 0.022018...
embed
25447376_c0
25447376
prolog
0
Title: Type conversion of an integer in prolog Problem title: Type conversion of an integer in prolog Tags: prolog Problem: Type conversion of an integer in prolog I want to convert a negative integer value into positive value. Eg:- input -10 , output 10 . How can I do this conversion in Prolog, is it possible to do? C...
Type conversion of an integer in prolog Type conversion of an integer in prolog prolog Type Type conversion of an integer in prolog I want to convert a negative integer value into positive value. Eg:- input -10 , output 10 . How can I do this conversion in Prolog, is it possible to do?
[ -0.00023365020751953125, 0.01141357421875, 0.0093994140625, 0.0262451171875, -0.0223388671875, 0.01092529296875, -0.005889892578125, 0.01251220703125, -0.00168609619140625, 0.0225830078125, -0.005462646484375, -0.0050048828125, -0.02197265625, 0.023681640625, 0.014892578125, -0.0192871...
[ 60457, 142477, 892, 1505, 23, 502, 4867, 111, 3444, 96760, 40907, 34292, 3934, 24491, 107730, 9193, 140992, 209, 1250, 7722 ]
[ 0.2091064453125, 0.1767578125, 0.13427734375, 0.1324462890625, 0.046112060546875, 0.14501953125, 0.23193359375, 0.02972412109375, 0.09423828125, 0.169189453125, 0.2188720703125, 0.1285400390625, 0.09796142578125, 0.18359375, 0.149169921875, 0.1710205078125, 0.140625, 0.14990234375,...
embed
72577913_c0
72577913
prolog
0
Title: What is the equivalent of sprintf in Prolog? Problem title: What is the equivalent of sprintf in Prolog? Tags: prolog, swi-prolog Problem: What is the equivalent of sprintf in Prolog? Prolog has an equivalent of the C library printf, which is format/2 or format/3. But what is the equivalent of sprintf ? Code sig...
What is the equivalent of sprintf in Prolog? What is the equivalent of sprintf in Prolog? prolog swi-prolog What Prolog What is the equivalent of sprintf in Prolog? Prolog has an equivalent of the C library printf, which is format/2 or format/3. But what is the equivalent of sprintf ?
[ 0.01165771484375, 0.0225830078125, 0.01708984375, 0.01202392578125, -0.01263427734375, 0.0186767578125, 0.0234375, 0.0159912109375, -0.002288818359375, -0.00457763671875, 0.0137939453125, -0.012939453125, -0.0233154296875, -0.018798828125, 0.0120849609375, -0.003814697265625, 0.00170...
[ 183234, 145320, 420, 1250, 4867, 502, 2452, 3454, 4865, 23, 313, 35773, 1294, 28412, 9384, 12477, 18113, 2367 ]
[ 0.1739501953125, 0.2138671875, 0.23583984375, 0.1700439453125, 0.241943359375, 0.10345458984375, 0.1417236328125, 0.1336669921875, 0.007427215576171875, 0.0196075439453125, 0.048126220703125, 0.1085205078125, 0.0168304443359375, 0.1632080078125, 0.1689453125, 0.1287841796875, 0.11035...
embed
48652069_c0
48652069
prolog
0
Title: Whats the difference between call/1 and normal clause? Problem title: Whats the difference between call/1 and normal clause? Tags: prolog, call Problem: Whats the difference between call/1 and normal clause? If I have : run(X) :- X. What is the difference between : ... :- ..., call(Y). and : ... :- ..., run(Y). ...
Whats the difference between call/1 and normal clause? Whats the difference between call/1 and normal clause? prolog call Whats Whats the difference between call/1 and normal clause? If I have : What is the difference between : and :
[ 0.007415771484375, 0.013427734375, 0.00145721435546875, 0.0115966796875, -0.004974365234375, 0.0081787109375, 0.0035400390625, 0.000568389892578125, 0.0225830078125, -0.018798828125, -0.0035552978515625, 0.0137939453125, -0.015869140625, -0.008056640625, 0.0159912109375, -0.01293945312...
[ 70, 60212, 17721, 11782, 11583, 136, 3638, 70731, 13, 502, 4867, 152 ]
[ 0.05242919921875, 0.1480712890625, 0.095703125, 0.158203125, 0.1588134765625, 0.055511474609375, 0.167724609375, 0.171142578125, 0.0736083984375, 0.072021484375, 0.1126708984375, 0.02508544921875 ]
embed
41731946_c0
41731946
prolog
0
Title: Prolog factorial non-recursive Problem title: Prolog factorial non-recursive Tags: prolog, factorial Problem: Prolog factorial non-recursive How would you convert this to non-recursive. This code puts out the factorial of N. fakultaet(0, 1). fakultaet(N, F) :- N > 0, N1 is N – 1, fakultaet(N1, F1), F is N * F1. ...
Prolog factorial non-recursive Prolog factorial non-recursive prolog factorial Prolog Prolog factorial non-recursive How would you convert this to non-recursive. This code puts out the factorial of N.
[ 0.004180908203125, 0.01251220703125, 0.007537841796875, -0.00433349609375, 0.0218505859375, 0.00225830078125, -0.000682830810546875, -0.00714111328125, -0.01611328125, -0.03564453125, 0.026611328125, -0.00579833984375, -0.01361083984375, 0.00482177734375, 0.00421142578125, 0.0035552978...
[ 1250, 4867, 31461, 15403, 351, 107, 48650, 5844, 502, 11249, 2806, 96760, 903, 47, 9, 3293, 18151, 3884, 1810, 111, 541 ]
[ 0.169921875, 0.25732421875, 0.203857421875, 0.2236328125, 0.232421875, 0.0859375, 0.19384765625, 0.1826171875, 0.12060546875, 0.0214996337890625, 0.04522705078125, 0.179443359375, 0.05810546875, 0.08966064453125, 0.0194549560546875, 0.00909423828125, 0.14697265625, 0.0521240234375,...
embed
32364358_c0
32364358
prolog
0
Title: Implementation of string_concat/3 Problem title: Implementation of string_concat/3 Tags: prolog Problem: Implementation of string_concat/3 To concatenate two strings resulting in other, I know the predicate string_concat/3 . However, someone know how implement a predicate who does the same? Code signals: Impleme...
Implementation of string_concat/3 Implementation of string_concat/3 prolog Implementation string_concat Implementation of string_concat/3 To concatenate two strings resulting in other, I know the predicate string_concat/3 . However, someone know how implement a predicate who does the same?
[ 0.01904296875, -0.0036773681640625, 0.0003757476806640625, 0.031982421875, -0.0037841796875, 0.015380859375, -0.01129150390625, 0.009765625, 0.0230712890625, -0.04150390625, 0.00921630859375, -0.0194091796875, -0.00872802734375, -0.005767822265625, 0.0225830078125, -0.006195068359375, ...
[ 153941, 79315, 2271, 4460, 18113, 502, 4867, 158, 33478, 76, 67, 6626, 16750, 214, 23, 3789, 3714, 1653, 2063, 22008, 3642, 29479, 2750, 14602, 5701 ]
[ 0.1937255859375, 0.230712890625, 0.1396484375, 0.267822265625, 0.25390625, 0.10675048828125, 0.1497802734375, 0.10540771484375, 0.1920166015625, 0.11297607421875, 0.09210205078125, 0.099365234375, 0.1322021484375, 0.00289154052734375, 0.0214080810546875, 0.09844970703125, 0.068176269...
embed
36420146_c0
36420146
prolog
0
Title: Prolog - how do you insert an element to a list Problem title: Prolog - how do you insert an element to a list Tags: prolog Problem: Prolog - how do you insert an element to a list If I have a list in Prolog such as X = [1, 2, 3, 4, 6, 7] , how do I add the element 5 to the list to have X = [1, 2, 3, 4, 5, 6, 7]...
Prolog - how do you insert an element to a list Prolog - how do you insert an element to a list prolog Prolog Prolog - how do you insert an element to a list If I have a list in Prolog such as X = [1, 2, 3, 4, 6, 7] , how do I add the element 5 to the list to have X = [1, 2, 3, 4, 5, 6, 7] ?
[ -0.0059814453125, 0.0179443359375, 0.01470947265625, 0.00762939453125, -0.0169677734375, 0.035400390625, -0.0264892578125, -0.0120849609375, -0.000934600830078125, -0.0478515625, 0.02880859375, -0.03173828125, -0.0216064453125, 0.00018405914306640625, -0.0022430419921875, 0.01135253906...
[ 1250, 4867, 3642, 54, 398, 183540, 12830, 47, 5303, 10, 502, 142, 765, 23, 1193, 2203, 68252, 116, 138, 201, 305, 361, 87, 15190, 190 ]
[ 0.1695556640625, 0.258056640625, 0.11669921875, 0.0645751953125, 0.038238525390625, 0.2744140625, 0.2344970703125, 0.1517333984375, 0.2215576171875, 0.0222625732421875, 0.116455078125, 0.02001953125, 0.05029296875, 0.009918212890625, 0.15869140625, 0.06817626953125, 0.039642333984375...
embed
5614044_c1
5614044
prolog
1
]-Xs, X-Xs, E). fifo_append([],S,S). fifo_append([H|T],S,W) :- fifo_put(H,S,NS), lifo_append(T,NS,W). fifo_addall(E, Goal, S, R) :- findall(E,Goal, W), fifo_append(W,S,R). Thanks in advance. Code signals: SWI, Prolog, lifo_empty, lifo_addall, fifo_empty, fifo_addall, _G3761, fifo_put, _G3922, X-X, X-Xs, fifo_get, fifo_...
]-Xs, X-Xs, E). fifo_append([],S,S). fifo_append([H|T],S,W) :- fifo_put(H,S,NS), lifo_append(T,NS,W). fifo_addall(E, Goal, S, R) :- findall(E,Goal, W), fifo_append(W,S,R). Thanks in advance. Code signals: SWI, Prolog, lifo_empty, lifo_addall, fifo_empty, fifo_addall, _G3761, fifo_put, _G3922, X-X, X-Xs, fifo_get, fifo_...
[ 0.0267333984375, 0.0194091796875, -0.00897216796875, 0.00726318359375, -0.021484375, -0.0269775390625, -0.0206298828125, -0.0062255859375, 0.001373291015625, -0.01318359375, 0.020263671875, -0.000579833984375, -0.006103515625, 0.0072021484375, -0.0084228515625, -0.0177001953125, 0.01...
[ 10114, 9, 1542, 7, 4, 1193, 241, 194, 809, 3584, 9007, 3611, 294, 841, 58745, 618, 1456, 15772, 7077, 22479, 400, 11262, 1181, 647, 2016, 289, 159, 627, 7413, 5584, 17903, 601, 22362, 129745, 5, 28864, 26073, 12, 38969, 1250, 4867, 33...
[ 0.060546875, 0.054107666015625, 0.151123046875, 0.0616455078125, 0.0275115966796875, 0.1092529296875, 0.09539794921875, 0.0399169921875, 0.1468505859375, 0.24365234375, 0.10247802734375, 0.1470947265625, 0.05352783203125, 0.05780029296875, 0.046875, 0.0506591796875, 0.0863037109375, ...
embed
74671476_c0
74671476
prolog
0
Title: Prolog How to write a predicate sum 3 max values in list? Problem title: Prolog How to write a predicate sum 3 max values in list? Tags: prolog Problem: Prolog How to write a predicate sum 3 max values in list? How to write a predicate sum 3 max values in list? max3(L,X) Example: max3([1,7,9,3,5],X). X = 21. Cod...
Prolog How to write a predicate sum 3 max values in list? Prolog How to write a predicate sum 3 max values in list? prolog Prolog How max3 Prolog How to write a predicate sum 3 max values in list? How to write a predicate sum 3 max values in list? max3(L,X) Example:
[ 0.0068359375, 0.0140380859375, 0.006683349609375, 0.00141143798828125, -0.01385498046875, 0.034912109375, 0.005828857421875, 0.0174560546875, 0.033447265625, -0.00958251953125, -0.00045013427734375, -0.02783203125, 0.0152587890625, -0.01556396484375, 0.0216064453125, 0.00543212890625, ...
[ 1250, 4867, 11249, 33022, 1653, 2063, 67, 10554, 138, 18389, 142424, 5303, 47, 23, 502, 363, 866, 1542, 89536 ]
[ 0.10125732421875, 0.17724609375, 0.023101806640625, 0.1544189453125, 0.11651611328125, 0.1458740234375, 0.0633544921875, 0.17626953125, 0.1578369140625, 0.188232421875, 0.173828125, 0.1680908203125, 0.02435302734375, 0.01514434814453125, 0.043121337890625, 0.1834716796875, 0.07696533...
embed
26648556_c1
26648556
prolog
1
? creep Exit: (8) split(3, [2, 4, 1, 5], [2, 1], [4, 5]) ? creep Why do we have Exit: (11) split(3, [5], [], [5]) ? creep at the line 11, where does 5 come from? Someone could help me please!! I'd really appreciate that. Code signals: List, Head, Tail, List1, List2, Sorted, Small, Big, SortedSmall, SortedBig, Redo, _G...
? creep Exit: (8) split(3, [2, 4, 1, 5], [2, 1], [4, 5]) ? creep Why do we have Exit: (11) split(3, [5], [], [5]) ? creep at the line 11, where does 5 come from? Someone could help me please!! I'd really appreciate that. Code signals: List, Head, Tail, List1, List2, Sorted, Small, Big, SortedSmall, SortedBig, Redo, _G...
[ -0.01141357421875, 0.00830078125, 0.00665283203125, 0.01507568359375, -0.0201416015625, 0.028564453125, 0.00186920166015625, -0.0186767578125, 0.0098876953125, 0.029052734375, 0.005706787109375, 0.004364013671875, -0.004119873046875, 0.0167236328125, 0.00909423828125, 0.000556945800781...
[ 705, 49512, 254, 5443, 217, 12, 10021, 65450, 86827, 304, 201, 190, 617, 44084, 54, 642, 765, 21282, 83914, 99, 13315, 534, 7440, 14602, 1380, 1295, 5809, 4358, 163, 22936, 1146, 6183, 77947, 28864, 26073, 7, 32036, 44816, 1218, 379, 41...
[ 0.14306640625, 0.22802734375, 0.2218017578125, 0.18408203125, 0.205322265625, 0.04534912109375, 0.1864013671875, 0.228759765625, 0.138427734375, 0.0638427734375, 0.1055908203125, 0.230224609375, 0.068115234375, 0.105224609375, 0.0147552490234375, 0.04071044921875, 0.067626953125, 0...
embed
26076939_c0
26076939
prolog
0
Title: Use if else in Prolog Problem title: Use if else in Prolog Tags: prolog Problem: Use if else in Prolog I want to implement something of this sort using if else in Prolog.Being from C++ background I am finding it hard to implement.How can I do it??? if(X!=4 || Y!=3) printf("1"); else if(A!=4 || Y=3 && Z==2) print...
Use if else in Prolog Use if else in Prolog prolog Use Prolog Use if else in Prolog I want to implement something of this sort using if else in Prolog.Being from C++ background I am finding it hard to implement.How can I do it???
[ 0.0186767578125, 0.00250244140625, 0.008056640625, 0.022705078125, -0.001800537109375, 0.01409912109375, 0.005340576171875, 0.00860595703125, -0.004241943359375, 0.004058837890625, 0.01019287109375, -0.010986328125, -0.00084686279296875, 0.00341796875, 0.0103759765625, 0.0205078125, ...
[ 36836, 2174, 37076, 23, 1250, 4867, 502, 3444, 29479, 903, 12096, 17368, 37223, 76615, 90791, 7941, 54, 7273 ]
[ 0.137939453125, 0.211181640625, 0.270751953125, 0.0989990234375, 0.155029296875, 0.249755859375, 0.1075439453125, 0.0731201171875, 0.1998291015625, 0.01904296875, 0.05865478515625, 0.1192626953125, 0.1402587890625, 0.05340576171875, 0.0170440673828125, 0.07080078125, 0.0118408203125,...
embed
9077049_c0
9077049
prolog
0
Title: All subset of list with k elements in Prolog Problem title: All subset of list with k elements in Prolog Tags: prolog Problem: All subset of list with k elements in Prolog Please help me to solve this problem: subset(N, [1,2,3], L). if N=2, I want the result is that: [1,2]; [2,1]; [1,3]; [3,1]; [2,3]; [3,2]; (in...
All subset of list with k elements in Prolog All subset of list with k elements in Prolog prolog All Prolog All subset of list with k elements in Prolog Please help me to solve this problem: if N=2, I want the result is that: (in any order)
[ 0.0203857421875, 0.0020904541015625, 0.01275634765625, -0.01068115234375, 0.0023040771484375, 0.004791259765625, -0.0126953125, 0.0012054443359375, 0.01171875, 0.00323486328125, 0.01422119140625, -0.00836181640625, -0.0091552734375, 0.00579833984375, -0.0111083984375, -0.00115203857421...
[ 3164, 1614, 3509, 5303, 678, 472, 80854, 23, 1250, 4867, 111, 502, 4358, 86869, 2967, 2174, 541, 55257, 3444, 16750, 450, 73, 2499, 12989 ]
[ 0.12420654296875, 0.184326171875, 0.2012939453125, 0.1932373046875, 0.08380126953125, 0.2027587890625, 0.2354736328125, 0.0875244140625, 0.1871337890625, 0.269775390625, 0.00443267822265625, 0.1441650390625, 0.03143310546875, 0.07098388671875, 0.07794189453125, 0.0240936279296875, 0....
embed
32701614_c0
32701614
prolog
0
Title: Does SWI prolog support DCTGs? Problem title: Does SWI prolog support DCTGs? Tags: prolog Problem: Does SWI prolog support DCTGs? I found out about DCTGs from here: http://cmsmcq.com/2004/lgintro.html#id2631925 , and I can't for the life of me get it working with SWI prolog, or even find any documentation at all...
Does SWI prolog support DCTGs? Does SWI prolog support DCTGs? prolog Does SWI DCTGs Does SWI prolog support DCTGs? I found out about DCTGs from here: http://cmsmcq.com/2004/lgintro.html#id2631925 , and I can't for the life of me get it working with SWI prolog, or even find any documentation at all on it.
[ 0.04345703125, -0.00244140625, -0.002471923828125, 0.0233154296875, -0.00665283203125, 0.00555419921875, 0.0030364990234375, -0.01318359375, -0.00165557861328125, -0.021240234375, 0.0003986358642578125, -0.0107421875, -0.0009918212890625, -0.01251220703125, 0.01068115234375, 0.01092529...
[ 101790, 159, 38969, 502, 4867, 8060, 31455, 113438, 7, 3931, 94214, 14686, 143669, 6897, 442, 20697, 678, 209806 ]
[ 0.07269287109375, 0.08306884765625, 0.2432861328125, 0.1207275390625, 0.18212890625, 0.171875, 0.1087646484375, 0.2420654296875, 0.04351806640625, 0.010772705078125, 0.0170135498046875, 0.01422119140625, 0.1026611328125, 0.0259857177734375, 0.0164642333984375, 0.06982421875, 0.041015...
embed
41285479_c0
41285479
prolog
0
Title: I&#x27;m new on prolog and lm trying to solve this Problem title: I&#x27;m new on prolog and lm trying to solve this Tags: prolog, logic Problem: I'm new on prolog and lm trying to solve this How to define a list using Prolog predicate is_repeated(X) such that the result of any list is true if it contains duplic...
I&#x27;m new on prolog and lm trying to solve this I&#x27;m new on prolog and lm trying to solve this prolog logic is_repeated I'm new on prolog and lm trying to solve this How to define a list using Prolog predicate is_repeated(X) such that the result of any list is true if it contains duplicated elements.
[ -0.0189208984375, 0.004119873046875, -0.0042724609375, 0.0076904296875, 0.001983642578125, 0.0118408203125, 0.01031494140625, 0.00069427490234375, 0.01611328125, -0.031494140625, -0.002593994140625, 0.0035400390625, -0.00897216796875, -0.007293701171875, -0.00933837890625, 0.0202636718...
[ 3768, 3525, 502, 4867, 39, 31577, 86869, 903, 62775, 83, 454, 107, 1081, 27686, 11249, 61924, 10, 5303, 17368, 1250, 1653, 2063, 67, 1542, 16, 6044, 16750, 2499, 29568, 2174, 70541, 171763, 3674, 80854 ]
[ 0.0355224609375, 0.061767578125, 0.13232421875, 0.2218017578125, 0.013153076171875, 0.00665283203125, 0.0816650390625, 0.00311279296875, 0.1905517578125, 0.18212890625, 0.0287322998046875, 0.1646728515625, 0.267822265625, 0.2174072265625, 0.00885009765625, 0.190673828125, 0.006378173...
embed
34375947_c0
34375947
prolog
0
Title: PROLOG - Amino Acid (RULE) Problem title: PROLOG - Amino Acid (RULE) Tags: prolog Problem: PROLOG - Amino Acid (RULE) I would be truly grateful for some help - I have to create a generic rule that will display the long name of all the small neutral amino acids? Is that even possible? Do you need more information...
PROLOG - Amino Acid (RULE) PROLOG - Amino Acid (RULE) prolog PROLOG Amino Acid RULE PROLOG - Amino Acid (RULE) I would be truly grateful for some help - I have to create a generic rule that will display the long name of all the small neutral amino acids? Is that even possible? Do you need more information?
[ 0.024169921875, 0.0068359375, 0.0169677734375, 0.038330078125, 0.00897216796875, 0.006866455078125, -0.0045166015625, 0.02490234375, 0.0179443359375, 0.000762939453125, 0.00286865234375, -0.0252685546875, 0.00421142578125, 0.00090789794921875, 0.02001953125, 0.0042724609375, 0.017822...
[ 10514, 47510, 21172, 31, 62, 55964, 1052, 129984, 502, 4867, 627, 2806, 87607, 225876, 3060, 4358, 765, 28282, 10, 189534, 79986, 1221, 44116, 4989, 9351, 756, 19336, 62276, 72657, 43840, 2071, 450, 3853, 7722, 4677 ]
[ 0.172607421875, 0.224609375, 0.1728515625, 0.14990234375, 0.0595703125, 0.173095703125, 0.1163330078125, 0.1920166015625, 0.112060546875, 0.166259765625, 0.1495361328125, 0.023712158203125, 0.053955078125, 0.0648193359375, 0.00531005859375, 0.0938720703125, 0.0288848876953125, 0.09...
embed
55484728_c0
55484728
prolog
0
Title: How to increase console font in XGP Prolog Problem title: How to increase console font in XGP Prolog Tags: prolog Problem: How to increase console font in XGP Prolog I just installed XGP Prolog on my mac osx, and wondered if there is a way to increase the font size on the console -- it's so minute I can't read i...
How to increase console font in XGP Prolog How to increase console font in XGP Prolog prolog How XGP Prolog How to increase console font in XGP Prolog I just installed XGP Prolog on my mac osx, and wondered if there is a way to increase the font size on the console -- it's so minute I can't read it. Thanks!
[ 0.00286865234375, 0.00701904296875, -0.00836181640625, 0.00469970703125, -0.00136566162109375, -0.00069427490234375, 0.0283203125, -0.007476806640625, -0.0032501220703125, 0.01361083984375, 0.0194091796875, -0.00982666015625, -0.00994873046875, -0.006195068359375, 0.025146484375, 0.004...
[ 11249, 51312, 130250, 12401, 1193, 32566, 1250, 4867, 23, 502, 20600, 19138, 362, 425, 32195, 3917, 13267, 221, 15393, 831, 18, 12301 ]
[ 0.04241943359375, 0.1832275390625, 0.251708984375, 0.23388671875, 0.068603515625, 0.2337646484375, 0.12548828125, 0.174072265625, 0.01340484619140625, 0.09619140625, 0.032012939453125, 0.064697265625, 0.06622314453125, 0.0202484130859375, 0.00102996826171875, 0.04217529296875, 0.1035...
embed
58836194_c0
58836194
prolog
0
Title: How to tell Prolog that two literals are equivalent Problem title: How to tell Prolog that two literals are equivalent Tags: equivalence, prolog, literals Problem: How to tell Prolog that two literals are equivalent Anyone knows how to tell Prolog that n(n(p)) and n(p) represent the same thing? Or how to reduce ...
How to tell Prolog that two literals are equivalent How to tell Prolog that two literals are equivalent equivalence prolog literals How Prolog How to tell Prolog that two literals are equivalent Anyone knows how to tell Prolog that n(n(p)) and n(p) represent the same thing? Or how to reduce n(n(p)) to n(p) ?
[ 0.0021209716796875, 0.009521484375, -0.00799560546875, 0.0439453125, -0.0177001953125, 0.0012969970703125, 0.00164031982421875, -0.0034637451171875, 0.000835418701171875, -0.01409912109375, 0.0021209716796875, 0.0089111328125, 0.00021457672119140625, 0.0024261474609375, 0.01104736328125,...
[ 11249, 14192, 1250, 4867, 6626, 15659, 16765, 183234, 621, 224743, 502, 93002, 3642, 653, 19, 254, 136, 33636, 5701, 13580, 34390 ]
[ 0.0364990234375, 0.1392822265625, 0.16796875, 0.2197265625, 0.1405029296875, 0.16259765625, 0.1424560546875, 0.2113037109375, 0.0285186767578125, 0.1893310546875, 0.0931396484375, 0.040740966796875, 0.0460205078125, 0.0550537109375, 0.01837158203125, 0.1138916015625, 0.08056640625, ...
embed
74792047_c0
74792047
prolog
0
Title: Why is this code in PROLOG using constraints gives Operator expected syntax error? Problem title: Why is this code in PROLOG using constraints gives Operator expected syntax error? Tags: prolog, clpfd Problem: Why is this code in PROLOG using constraints gives Operator expected syntax error? Code signals: constr...
Why is this code in PROLOG using constraints gives Operator expected syntax error? Why is this code in PROLOG using constraints gives Operator expected syntax error? prolog clpfd constraints Why PROLOG Operator col_tri Vars Why is this code in PROLOG using constraints gives Operator expected syntax error? This code is ...
[ 0.0164794921875, -0.0169677734375, 0.0013885498046875, 0.01214599609375, 0.0172119140625, -0.00144195556640625, 0.0032806396484375, 0.00921630859375, 0.0015716552734375, -0.0172119140625, -0.01324462890625, -0.015625, 0.00958251953125, -0.00762939453125, 0.015380859375, 0.00537109375, ...
[ 44084, 903, 18151, 10514, 47510, 17368, 158, 2816, 4288, 76199, 150922, 84751, 6002, 86531, 18499, 502, 4867, 33139, 39557, 71, 3365, 3996, 3323, 7, 13315, 116, 81827, 363, 151206, 223, 43883, 133850, 3454, 254, 5442, 2424, 16619, 19010 ]
[ 0.07373046875, 0.010284423828125, 0.1297607421875, 0.1524658203125, 0.2398681640625, 0.0355224609375, 0.049407958984375, 0.1689453125, 0.1365966796875, 0.0307769775390625, 0.2352294921875, 0.2012939453125, 0.11572265625, 0.1287841796875, 0.14453125, 0.08740234375, 0.1739501953125, ...
embed
24632678_c0
24632678
prolog
0
Title: Prolog logic query Problem title: Prolog logic query Tags: prolog Problem: Prolog logic query There is a database that contains the following: likes(mary,food). likes(mary,wine). likes(john,wine). likes(john,mary). is it possible to deduce from the above info whether " john likes everything that mary likes" usin...
Prolog logic query Prolog logic query prolog Prolog Prolog logic query There is a database that contains the following: is it possible to deduce from the above info whether " john likes everything that mary likes" using Prolog. If yes, how?
[ 0.01373291015625, 0.03173828125, -0.006805419921875, 0.02294921875, -0.019287109375, 0.0220947265625, -0.00994873046875, -0.005828857421875, 0.00750732421875, -0.03759765625, -0.00049591064453125, -0.0164794921875, -0.009765625, -0.005828857421875, 0.00885009765625, 0.0177001953125, ...
[ 1250, 4867, 62775, 41, 1294, 502, 63399, 70541, 25632, 7722, 47, 8, 106357, 36917, 3004, 36766, 35254, 19, 1884, 7, 26818, 450, 1108, 53, 17368, 72272, 3642 ]
[ 0.1656494140625, 0.2406005859375, 0.166015625, 0.09844970703125, 0.05975341796875, 0.057220458984375, 0.210205078125, 0.053253173828125, 0.0245208740234375, 0.10186767578125, 0.003875732421875, 0.138916015625, 0.1785888671875, 0.0187530517578125, 0.1142578125, 0.056671142578125, 0.17...
embed
15864224_c0
15864224
prolog
0
Title: Save asserted facts in Prolog Problem title: Save asserted facts in Prolog Tags: prolog-assert, prolog Problem: Save asserted facts in Prolog In prolog, if I assert some fact, for example: assert(boy(john4)). assert(boy(john3)). assert(boy(john2)). assert(boy(john1)). How can I save this fact in file? Code signa...
Save asserted facts in Prolog Save asserted facts in Prolog prolog-assert prolog Save Prolog john4 john3 john2 john1 Save asserted facts in Prolog In prolog, if I assert some fact, for example: How can I save this fact in file?
[ 0.03271484375, 0.00244140625, 0.01611328125, 0.0242919921875, -0.017578125, 0.0101318359375, -0.007659912109375, 0.025390625, -0.0030517578125, -0.0135498046875, 0.00732421875, 0.02734375, -0.0244140625, 0.001953125, 0.03466796875, 0.00634765625, 0.00958251953125, -0.00665283203125...
[ 64944, 10, 16865, 3674, 15824, 7, 1250, 4867, 23, 502, 162, 33657, 35254, 617, 363, 304, 2174, 237, 11249, 831, 30098, 903, 11435 ]
[ 0.1778564453125, 0.072509765625, 0.21435546875, 0.08270263671875, 0.2095947265625, 0.0849609375, 0.16064453125, 0.2403564453125, 0.0771484375, 0.1278076171875, 0.08856201171875, 0.22607421875, 0.052734375, 0.04937744140625, 0.035247802734375, 0.005970001220703125, 0.016510009765625, ...
embed
38896634_c0
38896634
prolog
0
Title: Modulo function and variable domain Problem title: Modulo function and variable domain Tags: prolog, clpfd Problem: Modulo function and variable domain Here is a simple CLPFD relation: 1 #= 81 mod X. This returns: X in inf.. -1\/1..sup, 81 mod X#=1. Unless my math is completely incorrect, shouldn't the domain of...
Modulo function and variable domain Modulo function and variable domain prolog clpfd Modulo Modulo function and variable domain Here is a simple CLPFD relation: This returns: Unless my math is completely incorrect, shouldn't the domain of X be -80.. -1\/1..80 ?
[ -0.0013275146484375, -0.0038604736328125, 0.020263671875, -0.01153564453125, 0.0159912109375, 0.02099609375, 0.013671875, 0.005218505859375, 0.0038299560546875, -0.0181884765625, -0.0023345947265625, -0.0174560546875, 0.01708984375, -0.002166748046875, 0.0155029296875, -0.0016250610351...
[ 63014, 31, 32354, 136, 77336, 77758, 502, 4867, 33139, 39557, 71, 8781, 46323, 41265, 397, 41911, 30646, 9393, 48909, 64557, 214552, 5608, 18, 70, 111, 1193, 186, 20, 4836, 68940, 41872, 11583 ]
[ 0.1884765625, 0.19775390625, 0.155517578125, 0.03973388671875, 0.222900390625, 0.2296142578125, 0.09942626953125, 0.1622314453125, 0.038818359375, 0.0859375, 0.089599609375, 0.06390380859375, 0.1064453125, 0.1402587890625, 0.1629638671875, 0.126220703125, 0.069580078125, 0.00579452...
embed
62259373_c0
62259373
prolog
0
Title: How to arrange a list in ascending order in prolog? Problem title: How to arrange a list in ascending order in prolog? Tags: sorting, list, prolog Problem: How to arrange a list in ascending order in prolog? i want to sort my list in ascending order but without using builtin function is that possible? 5 9 3 4 7 ...
How to arrange a list in ascending order in prolog? How to arrange a list in ascending order in prolog? sorting list prolog How How to arrange a list in ascending order in prolog? i want to sort my list in ascending order but without using builtin function is that possible? if yes then how?
[ 0.013427734375, 0.00970458984375, 0.004791259765625, -0.005157470703125, -0.0177001953125, -0.004791259765625, -0.01116943359375, 0.01806640625, 0.00136566162109375, -0.0205078125, 0.00897216796875, -0.007049560546875, -0.01806640625, -0.004608154296875, -0.0079345703125, -0.0151977539...
[ 11249, 47, 137356, 10, 5303, 23, 82800, 214, 12989, 502, 4867, 12096, 3444, 15490, 17368, 88303, 73, 32354, 7722, 3642 ]
[ 0.09393310546875, 0.076416015625, 0.247802734375, 0.0321044921875, 0.208984375, 0.085205078125, 0.17529296875, 0.106689453125, 0.1663818359375, 0.14208984375, 0.216796875, 0.1876220703125, 0.0361328125, 0.039398193359375, 0.014007568359375, 0.102783203125, 0.08673095703125, 0.11291...
embed
20042312_c0
20042312
prolog
0
Title: Prolog reversible arithmetic Problem title: Prolog reversible arithmetic Tags: prolog, math Problem: Prolog reversible arithmetic Is there any way in prolog to ask questions like 4 is 2^X , and then get back X=2 ? I've tried to use = , == , =:= all without success (getting either just false or arguments not suff...
Prolog reversible arithmetic Prolog reversible arithmetic prolog math Prolog Prolog reversible arithmetic Is there any way in prolog to ask questions like 4 is 2^X , and then get back X=2 ? I've tried to use = , == , =:= all without success (getting either just false or arguments not sufficiently instantiated ).
[ -0.0074462890625, 0.0101318359375, -0.0018310546875, 0.01092529296875, 0.00080108642578125, 0.0240478515625, 0.005523681640625, 0.01483154296875, 0.00787353515625, -0.0101318359375, 0.015869140625, 0.019287109375, -0.013671875, 0.006072998046875, 0.00933837890625, -0.00830078125, 0.0...
[ 1250, 4867, 39531, 55356, 8962, 502, 48909, 187, 282, 2685, 2499, 3917, 23, 47, 26458, 17582, 1884, 201, 83, 116, 8353, 1542, 7068, 2046, 4420, 1193, 55257, 37842, 4527, 2203, 69112, 12, 1369, 756, 15490, 36272, 98320, 10750, 129980 ]
[ 0.1768798828125, 0.262939453125, 0.20556640625, 0.162109375, 0.115966796875, 0.1773681640625, 0.11376953125, 0.01751708984375, 0.03436279296875, 0.001190185546875, 0.038299560546875, 0.0989990234375, 0.0672607421875, 0.0228118896484375, 0.1796875, 0.193603515625, 0.051544189453125, ...
embed
5505288_c0
5505288
prolog
0
Title: Counting Prolog Database Problem title: Counting Prolog Database Tags: prolog Problem: Counting Prolog Database How can I check if a query gives me a specific number of results. So for example, I want to retrieve a car model of a car that has only been on three specific races. The car predicate is : car(race#, n...
Counting Prolog Database Counting Prolog Database prolog Counting Prolog Database Counting Prolog Database How can I check if a query gives me a specific number of results. So for example, I want to retrieve a car model of a car that has only been on three specific races. The car predicate is : car(race#, name).
[ 0.0206298828125, 0.003509521484375, -0.0167236328125, -0.00665283203125, 0.001922607421875, 0.00262451171875, -0.00836181640625, -0.00433349609375, 0.0218505859375, -0.05322265625, -0.021728515625, -0.040771484375, 0.003936767578125, 0.023193359375, 0.005523681640625, 0.000572204589843...
[ 1311, 128396, 1250, 4867, 187781, 502, 11249, 831, 87, 12765, 2174, 10, 41, 1294, 76199, 163, 29458, 14012, 50339, 3444, 456, 3996, 3134, 2258, 3299, 1556, 4734, 2809, 98, 17262, 45712, 1653, 2063, 67, 83, 99407, 4904, 9351, 194 ]
[ 0.112548828125, 0.1585693359375, 0.1466064453125, 0.2144775390625, 0.186767578125, 0.07177734375, 0.0016107559204101562, 0.041900634765625, 0.0225067138671875, 0.21923828125, 0.1265869140625, 0.055328369140625, 0.15087890625, 0.1771240234375, 0.1317138671875, 0.08837890625, 0.1738281...
embed
19021735_c0
19021735
prolog
0
Title: Prelast element of a prolog list Problem title: Prelast element of a prolog list Tags: prolog Problem: Prelast element of a prolog list Hi can someone help me with this problem in prolog: I have this in prolog penultimo ([1,2,3,4,5],X) and I have to get this X = [1,2,3,5] I have to delete the prelast elemnt of t...
Prelast element of a prolog list Prelast element of a prolog list prolog Prelast Prelast element of a prolog list Hi can someone help me with this problem in prolog: I have this in prolog penultimo and I have to get this I have to delete the prelast elemnt of the list. Please help me!
[ 0.0155029296875, 0.02294921875, -0.0028533935546875, 0.006011962890625, -0.007171630859375, 0.0072021484375, 0.00982666015625, -0.000812530517578125, 0.0223388671875, -0.023193359375, 0.0019989013671875, -0.0020904541015625, -0.007080078125, 0.0018463134765625, -0.0098876953125, -0.008...
[ 1914, 19777, 12830, 111, 502, 4867, 5303, 2673, 831, 22008, 4358, 2967, 23, 765, 903, 5551, 58273, 2046, 47, 154109, 479, 88, 195, 660, 30607 ]
[ 0.17138671875, 0.283447265625, 0.2315673828125, 0.07421875, 0.173583984375, 0.2379150390625, 0.1806640625, 0.0079345703125, 0.007671356201171875, 0.0012502670288085938, 0.06109619140625, 0.0767822265625, 0.027801513671875, 0.052001953125, 0.08392333984375, 0.121826171875, 0.269775390...
embed
24274412_c2
24274412
prolog
2
). house_post_id(45, dh3_6kl, 4556). Code signals: brave_new_world, lord_of_the_flies, fight_club, wind_in_the_willows, the_hobbit, cat_num, huxley_aldus, golding_william, palahniuk_chuck, tolkien_jrr, author_sur, author_fore, number_book, author_book, grahame_kenneth, author_fore_sur, id_sur_fore, house_post_id, dh1_3...
). house_post_id(45, dh3_6kl, 4556). Code signals: brave_new_world, lord_of_the_flies, fight_club, wind_in_the_willows, the_hobbit, cat_num, huxley_aldus, golding_william, palahniuk_chuck, tolkien_jrr, author_sur, author_fore, number_book, author_book, grahame_kenneth, author_fore_sur, id_sur_fore, house_post_id, dh1_3...
[ 0.0211181640625, -0.00390625, 0.0235595703125, -0.0027618408203125, 0.006866455078125, 0.00012874603271484375, -0.0084228515625, -0.003997802734375, 0.0201416015625, -0.03564453125, 0.00096893310546875, -0.0031280517578125, -0.0084228515625, -0.0291748046875, -0.007049560546875, 0.0015...
[ 6, 194, 18276, 4594, 532, 4633, 11450, 363, 910, 15066, 2678, 74757, 5, 28864, 26073, 7, 12, 1620, 272, 54936, 32554, 4, 7822, 71, 4390, 2347, 36361, 90, 78431, 41152, 32382, 73, 2452, 41566, 70, 497, 22155, 18, 7515, 2606, 4571, 425,...
[ 0.05279541015625, 0.1124267578125, 0.211181640625, 0.2138671875, 0.1683349609375, 0.1678466796875, 0.0552978515625, 0.031585693359375, 0.0267333984375, 0.0865478515625, 0.1080322265625, 0.132080078125, 0.05413818359375, 0.275634765625, 0.2900390625, 0.137451171875, 0.051483154296875,...
embed
15727959_c0
15727959
prolog
0
Title: Prolog- Put the result of a query in a list Problem title: Prolog- Put the result of a query in a list Tags: prolog Problem: Prolog- Put the result of a query in a list I have these facts enroll(hazem,maths). enroll(hazem,science). and so on and I want to have student(X,ListOfCourses). that returns the courses X...
Prolog- Put the result of a query in a list Prolog- Put the result of a query in a list prolog Prolog Put Prolog- Put the result of a query in a list I have these facts enroll(hazem,maths). enroll(hazem,science). and so on and I want to have student(X,ListOfCourses). that returns the courses X is taking in a list.
[ 0.034912109375, -0.000827789306640625, 0.0021209716796875, 0.01324462890625, -0.01806640625, 0.0001735687255859375, -0.007110595703125, 0.001220703125, -0.01202392578125, -0.0419921875, -0.007781982421875, 0.0013580322265625, -0.025390625, 0.000640869140625, -0.030029296875, 0.00619506...
[ 1250, 4867, 9, 19577, 16750, 111, 41, 1294, 23, 10, 5303, 502, 70, 87, 765, 15824, 7, 22, 27722, 528, 5709, 125458, 175201, 136, 3444, 9836, 1542, 154663, 132887, 12824, 30646, 132073, 1193, 35971 ]
[ 0.193359375, 0.278564453125, 0.04046630859375, 0.171630859375, 0.2060546875, 0.09136962890625, 0.1636962890625, 0.16455078125, 0.1513671875, 0.1011962890625, 0.249755859375, 0.1385498046875, 0.014617919921875, 0.005157470703125, 0.0684814453125, 0.1478271484375, 0.0206756591796875, ...
embed
2940803_c0
2940803
prolog
0
Title: Learn Prolog Now! exercise solutions Problem title: Learn Prolog Now! exercise solutions Tags: prolog Problem: Learn Prolog Now! exercise solutions Does anyone know where I can find solutions to the exercises and practical sessions to Learn Prolog Now ? I started working through it and would to verify the answer...
Learn Prolog Now! exercise solutions Learn Prolog Now! exercise solutions prolog Learn Prolog Now Learn Prolog Now! exercise solutions Does anyone know where I can find solutions to the exercises and practical sessions to Learn Prolog Now ? I started working through it and would to verify the answers that I devise.
[ 0.027587890625, 0.020751953125, 0.005340576171875, -0.0010833740234375, -0.016845703125, 0.0263671875, -0.00164031982421875, 0.00225830078125, 0.004486083984375, -0.0223388671875, -0.01129150390625, 0.00174713134765625, -0.005035400390625, 0.022216796875, 0.011962890625, 0.012756347656...
[ 134031, 1250, 4867, 14240, 38, 81979, 51347, 502, 101790, 35672, 3714, 7440, 87, 831, 7413, 47, 136, 138155, 104227, 705, 26859, 20697, 8305, 2806, 493, 40383, 35166, 450, 8, 41079 ]
[ 0.19580078125, 0.1962890625, 0.292724609375, 0.238037109375, 0.1004638671875, 0.2376708984375, 0.23193359375, 0.1600341796875, 0.0014820098876953125, 0.07415771484375, 0.10577392578125, 0.08404541015625, 0.00545501708984375, 0.08355712890625, 0.1356201171875, 0.1282958984375, 0.07067...
embed
47581135_c1
47581135
prolog
1
- 2 >= Ymax - Ymax, A is X - 1, B is Y - 2). try(X, Y, Xmax, Ymax, A, B) :- (X - 2 >= Xmax - Xmax, Y - 1 >= Ymax- Ymax, A is X - 2, B is Y - 1). try(X, Y, Xmax, Ymax, A, B) :- (X - 2 >= Xmax - Xmax, Y + 1 < Ymax, A is X - 2, B is Y + 1). try(X, Y, Xmax, Ymax, A, B) :- (X - 1 >= Xmax - Xmax, Y + 2 < Ymax, A is X - 1, B...
- 2 >= Ymax - Ymax, A is X - 1, B is Y - 2). try(X, Y, Xmax, Ymax, A, B) :- (X - 2 >= Xmax - Xmax, Y - 1 >= Ymax- Ymax, A is X - 2, B is Y - 1). try(X, Y, Xmax, Ymax, A, B) :- (X - 2 >= Xmax - Xmax, Y + 1 < Ymax, A is X - 2, B is Y + 1). try(X, Y, Xmax, Ymax, A, B) :- (X - 1 >= Xmax - Xmax, Y + 2 < Ymax, A is X - 1, B...
[ 0.0205078125, -0.0030975341796875, 0.0228271484375, 0.036376953125, 0.0012969970703125, 0.02392578125, 0.0032958984375, 0.0186767578125, 0.02392578125, 0.023193359375, -0.0062255859375, 0.0059814453125, -0.006256103515625, -0.017822265625, 0.0125732421875, -0.01483154296875, 0.007141...
[ 20, 116, 977, 1369, 990, 24084, 62, 83, 1193, 106, 4, 335, 4958, 5, 9790, 1542, 15772, 4879, 997, 28864, 26073, 12, 1250, 4867, 8574, 59537 ]
[ 0.0797119140625, 0.1741943359375, 0.04010009765625, 0.0859375, 0.227294921875, 0.28857421875, 0.0792236328125, 0.07794189453125, 0.1649169921875, 0.0911865234375, 0.0089111328125, 0.123779296875, 0.1260986328125, 0.014862060546875, 0.1424560546875, 0.1708984375, 0.066650390625, 0.1...
embed
2474703_c0
2474703
prolog
0
Title: How to avoid repetition in prolog Problem title: How to avoid repetition in prolog Tags: prolog Problem: How to avoid repetition in prolog I get several results with the same outputs. I want to get jack,jane only one time, but I get it two times. How can I avoid this? I tried setof but I couldn't get it done. Pl...
How to avoid repetition in prolog How to avoid repetition in prolog prolog How How to avoid repetition in prolog I get several results with the same outputs. I want to get jack,jane only one time, but I get it two times. How can I avoid this? I tried setof but I couldn't get it done. Please can someone help me on this?
[ 0.0196533203125, -0.00128173828125, 0.00799560546875, -0.004791259765625, -0.0252685546875, -0.0211181640625, -0.01519775390625, 0.0174560546875, 0.00445556640625, -0.07568359375, -0.000652313232421875, -0.0089111328125, -0.004913330078125, 0.0086669921875, 0.00677490234375, 0.01177978...
[ 11249, 47, 71864, 57346, 1363, 23, 502, 4867, 40368, 50339, 678, 5701, 140992, 3444, 2046, 121477, 145, 86, 4734, 1632, 1733, 6626, 20028, 903, 37842, 5423, 4390, 69427, 16940, 4358 ]
[ 0.071044921875, 0.056427001953125, 0.238525390625, 0.2724609375, 0.168212890625, 0.08807373046875, 0.1761474609375, 0.25244140625, 0.0631103515625, 0.107666015625, 0.018829345703125, 0.098388671875, 0.165283203125, 0.0703125, 0.046051025390625, 0.1739501953125, 0.1402587890625, 0.1...
embed
72181895_c0
72181895
prolog
0
Title: Representing Infinite Domains in Prolog Problem title: Representing Infinite Domains in Prolog Tags: prolog Problem: Representing Infinite Domains in Prolog How is it possible to represent infinite domains in Prolog? I have been searching this topic for a while, but do not have a clue. Any help is appreciated. C...
Representing Infinite Domains in Prolog Representing Infinite Domains in Prolog prolog Representing Infinite Domains Prolog Representing Infinite Domains in Prolog How is it possible to represent infinite domains in Prolog? I have been searching this topic for a while, but do not have a clue. Any help is appreciated.
[ 0.0223388671875, -0.006988525390625, 0.018310546875, 0.007293701171875, -0.0230712890625, 0.00927734375, 0.01507568359375, 0.00086212158203125, -0.007476806640625, -0.030517578125, -0.00121307373046875, -0.014404296875, -0.009765625, 0.00994873046875, 0.00439453125, 0.011474609375, 0...
[ 853, 55247, 214, 134322, 13, 93702, 7, 23, 1250, 4867, 502, 11249, 83, 7722, 47, 33636, 54241, 77758, 157318, 28451, 12960, 29786, 4358 ]
[ 0.0718994140625, 0.1943359375, 0.02996826171875, 0.1768798828125, 0.1038818359375, 0.2218017578125, 0.08270263671875, 0.09210205078125, 0.1654052734375, 0.239990234375, 0.1019287109375, 0.029022216796875, 0.0020580291748046875, 0.1324462890625, 0.04150390625, 0.241943359375, 0.185546...
embed
67890259_c0
67890259
prolog
0
Title: How to convert a string to a single-element list? Problem title: How to convert a string to a single-element list? Tags: prolog Problem: How to convert a string to a single-element list? I am new to prolog and I would like to convert a string: 'test string' to an array with a single element: ['test string'] so I...
How to convert a string to a single-element list? How to convert a string to a single-element list? prolog How How to convert a string to a single-element list? I am new to prolog and I would like to convert a string: 'test string' to an array with a single element: ['test string'] so I can append it to an existing lis...
[ 0.0048828125, -0.0037841796875, -0.00830078125, 0.008544921875, -0.0228271484375, 0.0152587890625, -0.0093994140625, -0.0111083984375, 0.012939453125, -0.03369140625, 0.0034332275390625, -0.01446533203125, -0.044921875, -0.0025482177734375, -0.0172119140625, -0.00244140625, 0.0068969...
[ 11249, 47, 96760, 79315, 10, 11001, 9, 62766, 5303, 502, 4867, 1884, 6954, 10298, 53, 678, 12830, 114689, 71, 144573 ]
[ 0.07440185546875, 0.11767578125, 0.17919921875, 0.282470703125, 0.0472412109375, 0.2130126953125, 0.027587890625, 0.2332763671875, 0.2265625, 0.0948486328125, 0.169189453125, 0.033447265625, 0.1910400390625, 0.1046142578125, 0.0906982421875, 0.007965087890625, 0.1739501953125, 0.05...
embed
7087289_c0
7087289
prolog
0
Title: swi_prolog calling c++ program Problem title: swi_prolog calling c++ program Tags: swi-prolog, c%2B%2B, prolog Problem: swi_prolog calling c++ program I have a c++ program and I would like to have a prolog program call functions or methods in the c++ program. I am new to this and if there is some tutorial I woul...
swi_prolog calling c++ program swi_prolog calling c++ program swi-prolog c%2B%2B prolog swi_prolog swi_prolog calling c++ program I have a c++ program and I would like to have a prolog program call functions or methods in the c++ program. I am new to this and if there is some tutorial I would appreciate the link. Thank...
[ 0.037109375, 0.00885009765625, 0.00494384765625, -0.0027008056640625, -0.0155029296875, 0.0087890625, 0.012939453125, 0.0164794921875, -0.007171630859375, -0.07275390625, 0.00994873046875, -0.0242919921875, -0.031494140625, 0.004547119140625, 0.0242919921875, -0.0133056640625, -0.001...
[ 91, 2452, 3454, 4867, 159029, 501, 37223, 1528, 454, 571, 502, 87, 765, 2806, 1884, 10, 11782, 32354, 707, 150624, 23, 3525, 903, 57143, 77947, 3126, 22362 ]
[ 0.0828857421875, 0.225830078125, 0.180419921875, 0.27294921875, 0.1749267578125, 0.071044921875, 0.25830078125, 0.2091064453125, 0.009918212890625, 0.04132080078125, 0.1895751953125, 0.01629638671875, 0.06231689453125, 0.03955078125, 0.101318359375, 0.003326416015625, 0.1964111328125...
embed
3844911_c0
3844911
prolog
0
Title: how to handle strings in prolog Problem title: how to handle strings in prolog Tags: prolog Problem: how to handle strings in prolog i need to check if a string is available in given prolog statement example related('also-5','be-8'). i want to check if be is there in this statement how to do? please give me some...
how to handle strings in prolog how to handle strings in prolog prolog how to handle strings in prolog i need to check if a string is available in given prolog statement example related('also-5','be-8'). i want to check if be is there in this statement how to do? please give me some link to detailed tutorial on string ...
[ 0.0125732421875, 0.003997802734375, -0.006317138671875, 0.031494140625, -0.01495361328125, -0.00860595703125, 0.0184326171875, -0.01025390625, 0.002471923828125, -0.036865234375, 0.0050048828125, -0.01458740234375, -0.0198974609375, -0.0181884765625, 0.01483154296875, 0.002731323242187...
[ 3642, 47, 34831, 79315, 7, 23, 502, 4867, 3871, 12765, 2174, 19882, 63805, 27781, 62548, 991, 10342, 372, 17376, 3444, 186, 83, 2685, 54, 185688, 57143, 45064 ]
[ 0.06964111328125, 0.081787109375, 0.2032470703125, 0.28076171875, 0.134521484375, 0.084228515625, 0.1588134765625, 0.2353515625, 0.00789642333984375, 0.151611328125, 0.061248779296875, 0.14404296875, 0.1461181640625, 0.0222320556640625, 0.03741455078125, 0.054168701171875, 0.14770507...
embed
1660152_c0
1660152
prolog
0
Title: How do I find the longest list in a list of lists? Problem title: How do I find the longest list in a list of lists? Tags: list, prolog Problem: How do I find the longest list in a list of lists? I have a list of lists, and I need to find the longest one of them. If there are more than one with the same length i...
How do I find the longest list in a list of lists? How do I find the longest list in a list of lists? list prolog How How do I find the longest list in a list of lists? I have a list of lists, and I need to find the longest one of them. If there are more than one with the same length it's the same which it returns. Tha...
[ 0.005340576171875, 0.030029296875, 0.01031494140625, 0.01104736328125, -0.013916015625, -0.0003871917724609375, 0.01171875, 0.01068115234375, 0.00775146484375, -0.033935546875, 0.0035400390625, -0.01007080078125, -0.016357421875, 0.0172119140625, -0.00186920166015625, 0.00848388671875,...
[ 11249, 87, 7413, 70, 4989, 525, 5303, 23, 111, 7, 54, 502, 4867, 3871, 1632, 1286, 3501, 678, 5701, 140909, 30646 ]
[ 0.0750732421875, 0.0210723876953125, 0.12548828125, 0.082763671875, 0.166259765625, 0.1761474609375, 0.2445068359375, 0.048736572265625, 0.0521240234375, 0.08074951171875, 0.006927490234375, 0.072265625, 0.1304931640625, 0.0345458984375, 0.0159454345703125, 0.054107666015625, 0.03793...
embed
47744819_c0
47744819
prolog
0
Title: Prolog counting digits in a list Problem title: Prolog counting digits in a list Tags: prolog Problem: Prolog counting digits in a list I was wondering if you could help me out with this. I need to make a script that counts the amount of digits in a list. Here is an example: amount([234,12,4356],L) should result...
Prolog counting digits in a list Prolog counting digits in a list prolog Prolog Prolog counting digits in a list I was wondering if you could help me out with this. I need to make a script that counts the amount of digits in a list. Here is an example: should result in:
[ 0.017333984375, -0.0035552978515625, -0.00836181640625, 0.0087890625, -0.0238037109375, 0.01611328125, 0.003570556640625, 0.0177001953125, 0.00311279296875, -0.029296875, -0.0128173828125, -0.01507568359375, -0.0206298828125, 0.007537841796875, 0.0087890625, -0.01202392578125, -0.013...
[ 1250, 4867, 54529, 214, 153939, 7, 23, 5303, 10, 502, 149016, 5809, 4358, 1810, 3871, 26499, 41170, 27781, 5608, 16750 ]
[ 0.1480712890625, 0.199462890625, 0.1583251953125, 0.0430908203125, 0.2215576171875, 0.06683349609375, 0.0628662109375, 0.193115234375, 0.0245513916015625, 0.11553955078125, 0.042022705078125, 0.00534820556640625, 0.03472900390625, 0.00885009765625, 0.0295257568359375, 0.1546630859375, ...
embed
29752355_c0
29752355
prolog
0
Title: Prolog convert integer to bytes Problem title: Prolog convert integer to bytes Tags: binary, format, numbers, prolog Problem: Prolog convert integer to bytes I am using SWI prolog. I would like to write integers into binary file in binary form. I did not found any solution so far and starting to be desperate. Ca...
Prolog convert integer to bytes Prolog convert integer to bytes binary format numbers prolog Prolog Prolog convert integer to bytes I am using SWI prolog. I would like to write integers into binary file in binary form. I did not found any solution so far and starting to be desperate. Can any body help me with this prob...
[ 0.01519775390625, -0.0032806396484375, 0.016357421875, 0.0024871826171875, -0.019775390625, 0.0247802734375, -0.0130615234375, -0.004241943359375, -0.009765625, 0.00445556640625, 0.01104736328125, -0.005462646484375, -0.0302734375, 0.03076171875, 0.020751953125, 0.0030059814453125, 0...
[ 1250, 4867, 96760, 892, 1505, 47, 390, 1636, 2394, 6635, 9384, 101935, 502, 17368, 159, 38969, 2806, 1884, 33022, 26255, 3934, 11435, 3173, 959, 14037, 29806, 2060, 72134, 186, 145342, 13, 4171, 14361, 4358, 2967 ]
[ 0.1552734375, 0.221923828125, 0.1378173828125, 0.1424560546875, 0.11395263671875, 0.107177734375, 0.1361083984375, 0.1611328125, 0.151123046875, 0.1317138671875, 0.1171875, 0.11273193359375, 0.1239013671875, 0.0858154296875, 0.03997802734375, 0.1798095703125, 0.055511474609375, 0.1...
embed
73808707_c0
73808707
prolog
0
Title: Sum only the positive elements in a list in prolog Problem title: Sum only the positive elements in a list in prolog Tags: prolog Problem: Sum only the positive elements in a list in prolog How do i only sum all the positive numbers? sumlist([],0). sumlist([H|T],N):-sumlist(T,N1),N is N1 +H. ?- sumlist([-2,2,3],...
Sum only the positive elements in a list in prolog Sum only the positive elements in a list in prolog prolog Sum Sum only the positive elements in a list in prolog How do i only sum all the positive numbers?
[ -0.01129150390625, 0.0015106201171875, 0.028076171875, -0.0003337860107421875, -0.0145263671875, 0.01312255859375, 0.00885009765625, 0.05615234375, 0.0196533203125, -0.0072021484375, -0.005401611328125, -0.034912109375, -0.01361083984375, 0.00787353515625, 0.016845703125, 0.02416992187...
[ 36335, 4734, 24491, 80854, 5303, 502, 4867, 23, 10554, 756, 101935 ]
[ 0.2037353515625, 0.1334228515625, 0.2066650390625, 0.18359375, 0.1658935546875, 0.1375732421875, 0.2210693359375, 0.023345947265625, 0.2138671875, 0.054290771484375, 0.11358642578125 ]
embed
78961334_c2
78961334
prolog
2
58) ? creep Fail: (12) path(a, c, _46240) ? creep false. It seems to be considering: lists:member((a, b), [(a, b)|_58132]) and then failing the search entirely. What's going on here? Why is it considering [(a, b)|_58132] for Rest e.g. instead Code signals: Understanding, Steps, Middle, Rest, not_member, Call, _46240, F...
58) ? creep Fail: (12) path(a, c, _46240) ? creep false. It seems to be considering: lists:member((a, b), [(a, b)|_58132]) and then failing the search entirely. What's going on here? Why is it considering [(a, b)|_58132] for Rest e.g. instead Code signals: Understanding, Steps, Middle, Rest, not_member, Call, _46240, F...
[ 0.012451171875, 0.00885009765625, 0.0277099609375, 0.01153564453125, -0.006744384765625, 0.0166015625, 0.0072021484375, -0.01336669921875, 0.00927734375, -0.0025634765625, 0.0181884765625, 0.00836181640625, -0.01373291015625, 0.0250244140625, 0.00518798828125, -0.01513671875, -0.0190...
[ 71716, 705, 49512, 254, 190355, 23676, 60875, 11, 501, 157255, 125136, 98320, 1650, 37202, 179635, 5303, 7, 39, 27417, 876, 10057, 136124, 35782, 214, 70, 33938, 167969, 7730, 3688, 44084, 442, 100, 49756, 64457, 28864, 26073, 9626, 144057, ...
[ 0.2568359375, 0.060943603515625, 0.1993408203125, 0.1767578125, 0.2080078125, 0.1409912109375, 0.2037353515625, 0.0328369140625, 0.038330078125, 0.13818359375, 0.188232421875, 0.189208984375, 0.048248291015625, 0.06805419921875, 0.1888427734375, 0.2222900390625, 0.0770263671875, 0....
embed
18660816_c0
18660816
prolog
0
Title: Prolog: Grouping AND OR Statements in rules Problem title: Prolog: Grouping AND OR Statements in rules Tags: prolog Problem: Prolog: Grouping AND OR Statements in rules If I have a logical statement: If (A or C) and (B or D) then E. How do i turn this into a prolog rule? Can they be grouped using brackets such a...
Prolog: Grouping AND OR Statements in rules Prolog: Grouping AND OR Statements in rules prolog Prolog Grouping Statements Prolog: Grouping AND OR Statements in rules If I have a logical statement: If (A or C) and (B or D) then E. How do i turn this into a prolog rule? Can they be grouped using brackets such as: E :- (A...
[ 0.0184326171875, 0.01422119140625, -0.004241943359375, 0.020751953125, -0.00872802734375, 0.02490234375, -0.034912109375, 0.005584716796875, 0.00860595703125, -0.00787353515625, 0.00127410888671875, -0.0213623046875, -0.0018768310546875, 0.0089111328125, -0.002197265625, -0.00625610351...
[ 1250, 4867, 10760, 214, 48762, 33172, 22836, 9035, 23, 91736, 502, 87, 765, 62775, 289, 63805, 4263, 284, 707, 313, 136, 571, 391, 7068, 241, 11249, 54, 17, 15504, 903, 3934, 10, 79986, 4171, 37769, 17368, 1620, 27853, 15772, 74, 397 ]
[ 0.1500244140625, 0.227783203125, 0.253173828125, 0.09869384765625, 0.171875, 0.2474365234375, 0.19482421875, 0.0670166015625, 0.01220703125, 0.1746826171875, 0.1690673828125, 0.012359619140625, 0.0731201171875, 0.1553955078125, 0.1109619140625, 0.2470703125, 0.185791015625, 0.09301...
embed
31040079_c1
31040079
prolog
1
(Cs,X)). % 1,000,001 inferences, 0.250 CPU in 0.452 seconds (55% CPU, 4000004 Lips) Cs = [c, c, c, c, c, c, c, c, c|...], X = c. last/2 3 ?- length(Cs, 1000000), maplist(=(c), Cs),time(last(Cs,X)). % 1,000,001 inferences, 0.031 CPU in 0.022 seconds (142% CPU, 32000032 Lips) Cs = [c, c, c, c, c, c, c, c, c|...], X = c. ...
(Cs,X)). % 1,000,001 inferences, 0.250 CPU in 0.452 seconds (55% CPU, 4000004 Lips) Cs = [c, c, c, c, c, c, c, c, c|...], X = c. last/2 3 ?- length(Cs, 1000000), maplist(=(c), Cs),time(last(Cs,X)). % 1,000,001 inferences, 0.031 CPU in 0.022 seconds (142% CPU, 32000032 Lips) Cs = [c, c, c, c, c, c, c, c, c|...], X = c. ...
[ 0.007476806640625, 0.0034332275390625, 0.01080322265625, 0.0036468505859375, 0.0003223419189453125, 0.000278472900390625, -0.004150390625, -0.0018463134765625, 0.014404296875, -0.031982421875, 0.0115966796875, 0.00830078125, 0.0001583099365234375, 0.00830078125, -0.003448486328125, 0.0...
[ 441, 7, 4, 1542, 16, 194, 1745, 75534, 34479, 53498, 69098, 126175, 2525, 86039, 23, 757, 5, 170265, 94131, 11516, 13465, 34042, 135401, 156903, 313, 2203, 238, 501, 75606, 1193, 4568, 12477, 138, 705, 140909, 805, 28568, 22288, 6562, 132...
[ 0.13671875, 0.199462890625, 0.05206298828125, 0.155029296875, 0.062103271484375, 0.03924560546875, 0.0750732421875, 0.1614990234375, 0.178466796875, 0.278076171875, 0.221923828125, 0.1141357421875, 0.1319580078125, 0.2462158203125, 0.10791015625, 0.0927734375, 0.042236328125, 0.175...
embed
52467056_c0
52467056
prolog
0
Title: Tuple to list in Prolog Problem title: Tuple to list in Prolog Tags: tuples, list, prolog Problem: Tuple to list in Prolog Recently I'm doing a program and it requires me to convert a tuple to a list. Tuples look like this: [(1,[1,2,3,4]), (1,[2,3,4,5]), ...] And what I want is a list of: [(1,2,3,4), (2,3,4,5), ...
Tuple to list in Prolog Tuple to list in Prolog tuples list prolog Tuple Prolog Tuple to list in Prolog Recently I'm doing a program and it requires me to convert a tuple to a list. Tuples look like this: [(1,[1,2,3,4]), (1,[2,3,4,5]), ...] And what I want is a list of: [(1,2,3,4), (2,3,4,5), ...] Is there any way I ca...
[ 0.036376953125, 0.0037994384765625, -0.002777099609375, 0.0115966796875, -0.00579833984375, 0.01904296875, -0.029541015625, 0.007598876953125, 0.00177001953125, -0.035400390625, -0.00860595703125, -0.0025177001953125, -0.0244140625, 0.0257568359375, -0.0047607421875, 0.01397705078125, ...
[ 1371, 8705, 47, 5303, 23, 1250, 4867, 370, 99726, 502, 20594, 1528, 144570, 96760, 10, 6713, 1884, 903, 41600, 133063, 82449, 2858, 155761, 80389, 153, 2367, 3444, 111, 3917, 831, 54, 450 ]
[ 0.18310546875, 0.252685546875, 0.068603515625, 0.2252197265625, 0.085205078125, 0.1806640625, 0.2476806640625, 0.19287109375, 0.27880859375, 0.1317138671875, 0.010467529296875, 0.1016845703125, 0.06695556640625, 0.123291015625, 0.0849609375, 0.1610107421875, 0.0904541015625, 0.0693...
embed
14759153_c0
14759153
prolog
0
Title: Finding all predicates with the same arity Problem title: Finding all predicates with the same arity Tags: prolog, iso-prolog Problem: Finding all predicates with the same arity Is it possible to pose a query such as ?- X(C). that can return all the predicates that have arity 1? In general, is it possible to ref...
Finding all predicates with the same arity Finding all predicates with the same arity prolog iso-prolog Finding Finding all predicates with the same arity Is it possible to pose a query such as that can return all the predicates that have arity 1? In general, is it possible to refer to a predicate name by using a varia...
[ -0.004913330078125, -0.018798828125, -0.00090789794921875, -0.01324462890625, -0.01287841796875, 0.01708984375, 0.007080078125, 0.0017242431640625, 0.012451171875, -0.032958984375, 0.001220703125, -0.0206298828125, -0.009521484375, -0.0016937255859375, -0.00148773193359375, 0.016357421...
[ 26040, 756, 1653, 2063, 1636, 678, 5701, 187, 2481, 502, 4867, 13882, 3454, 7722, 19064, 41, 1294, 30646, 765, 106, 4537, 15005, 47, 67, 9351, 17368, 77336 ]
[ 0.1033935546875, 0.11083984375, 0.1834716796875, 0.23583984375, 0.11962890625, 0.054656982421875, 0.10498046875, 0.1529541015625, 0.1602783203125, 0.0927734375, 0.142822265625, 0.1234130859375, 0.09185791015625, 0.0987548828125, 0.09271240234375, 0.1087646484375, 0.0968017578125, 0...
embed
5908142_c0
5908142
prolog
0
Title: Prolog problems Problem title: Prolog problems Tags: file-io, prolog Problem: Prolog problems I use swi prolog. My code runs for first line but it doesn't run the others. see(Data), //open file to read repeat, readln(A), //read line from file write(A), A\==end_of_file,!. I get an unexpected end of file error. Do...
Prolog problems Prolog problems file-io prolog file Prolog Data end_of_file Prolog problems I use swi prolog. My code runs for first line but it doesn't run the others. I get an unexpected end of file error. Do you have any idea?
[ 0.017822265625, -0.0038299560546875, 0.00145721435546875, 0.0189208984375, -0.020263671875, 0.01171875, 0.014404296875, 0.0147705078125, 0.005126953125, -0.0264892578125, 0.0074462890625, 0.01324462890625, -0.00927734375, 0.0029296875, 0.017578125, -0.0120849609375, 0.03857421875, ...
[ 1250, 4867, 44402, 11435, 846, 502, 11809, 3564, 4390, 29822, 4527, 91, 2452, 18151, 127877, 100, 5117, 13315, 22027, 18, 11675, 27060, 241957, 111, 18499, 6528 ]
[ 0.1754150390625, 0.242431640625, 0.1566162109375, 0.157958984375, 0.1820068359375, 0.14990234375, 0.0792236328125, 0.150634765625, 0.178466796875, 0.13525390625, 0.038299560546875, 0.050537109375, 0.19775390625, 0.1326904296875, 0.09796142578125, 0.05950927734375, 0.10235595703125, ...
embed
65381448_c0
65381448
prolog
0
Title: I cant understand how the function subset(X,Y) works Problem title: I cant understand how the function subset(X,Y) works Tags: prolog Problem: I cant understand how the function subset(X,Y) works Can somebody to explain me this code? I try for hours to understand but i can't understand this... subset([],[]). sub...
I cant understand how the function subset(X,Y) works I cant understand how the function subset(X,Y) works prolog I cant understand how the function subset(X,Y) works Can somebody to explain me this code? I try for hours to understand but i can't understand this...
[ 0.01226806640625, 0.000263214111328125, 0.0228271484375, 0.0048828125, -0.018310546875, 0.0074462890625, -0.01416015625, 0.01300048828125, 0.0089111328125, 0.00323486328125, 0.010986328125, -0.0036468505859375, -0.0086669921875, -0.0014495849609375, -0.001251220703125, -0.0010070800781...
[ 87, 45767, 28219, 3642, 70, 32354, 1614, 3509, 1542, 4, 1723, 43240, 132, 502, 4867, 4171, 176256, 47, 73342, 163, 903, 18151, 9790, 100, 21974, 1284, 17, 831, 18 ]
[ 0.0219879150390625, 0.153076171875, 0.185302734375, 0.11602783203125, 0.0179595947265625, 0.2010498046875, 0.233642578125, 0.248046875, 0.1646728515625, 0.09344482421875, 0.1851806640625, 0.177001953125, 0.027008056640625, 0.11328125, 0.171630859375, 0.006748199462890625, 0.043945312...
embed
26973951_c0
26973951
prolog
0
Title: Replacing white spaces in prolog Problem title: Replacing white spaces in prolog Tags: swi-prolog, iso-prolog, prolog Problem: Replacing white spaces in prolog Is it possible in prolog to replace all white spaces of a string with some given character? Example- If I have a variable How are you today? and I want H...
Replacing white spaces in prolog Replacing white spaces in prolog swi-prolog iso-prolog prolog Replacing How How_are_you_today Replacing white spaces in prolog Is it possible in prolog to replace all white spaces of a string with some given character? Example- If I have a variable How are you today? and I want How_are_...
[ -0.003448486328125, 0.01416015625, -0.009033203125, 0.01068115234375, -0.0216064453125, 0.0042724609375, -0.0054931640625, 0.0019683837890625, 0.0057373046875, 0.00384521484375, 0.01080322265625, 0.0030975341796875, -0.041259765625, -0.0026092529296875, -0.0003185272216796875, 0.005981...
[ 853, 133266, 214, 35011, 32628, 7, 23, 502, 4867, 2452, 3454, 13882, 11249, 1046, 53927, 160351, 442, 7722, 47, 91995, 756, 111, 79315, 34475, 62816, 77336, 621, 398, 18925, 3444 ]
[ 0.07489013671875, 0.1429443359375, 0.0517578125, 0.2041015625, 0.261962890625, 0.0467529296875, 0.0841064453125, 0.153076171875, 0.239013671875, 0.104248046875, 0.1180419921875, 0.061431884765625, 0.1226806640625, 0.131103515625, 0.0933837890625, 0.1912841796875, 0.00970458984375, ...
embed
46858852_c0
46858852
prolog
0
Title: Using append with member predicate Problem title: Using append with member predicate Tags: append, list, prolog Problem: Using append with member predicate I want to know how I can implement append into the member predicate. I have this for members member2(X, [X|T]). member2(X, [H|T]) :- member2(X,T). How could ...
Using append with member predicate Using append with member predicate append list prolog Using member2 Using append with member predicate I want to know how I can implement append into the member predicate. I have this for members How could I implement append into this. Thanks!
[ 0.0009918212890625, -0.0030670166015625, 0.0108642578125, 0.004791259765625, 0.0022125244140625, 0.022216796875, 0.018798828125, 0.041015625, 0.02001953125, -0.04541015625, 0.0260009765625, -0.00823974609375, 0.008544921875, 0.005950927734375, 0.0189208984375, -0.004669189453125, -0....
[ 345, 6953, 114689, 71, 678, 32786, 1653, 2063, 67, 5303, 502, 4867, 304, 3444, 3714, 3642, 831, 29479, 3934, 43032, 5809, 903 ]
[ 0.0782470703125, 0.0706787109375, 0.215087890625, 0.188720703125, 0.117919921875, 0.2490234375, 0.142333984375, 0.18212890625, 0.1090087890625, 0.1529541015625, 0.0682373046875, 0.13623046875, 0.07183837890625, 0.024993896484375, 0.0160675048828125, 0.034912109375, 0.02923583984375, ...
embed
29069649_c1
29069649
prolog
1
,[98,257]). /* jiǔ */ mandarin(A, 9, [number,unit,nonfirst]):- name(A,[106,105,468]). /* shí */ mandarin(A, 10, [number,ten,first]):- name(A,[115,104,237]). /* bǎi */ mandarin(A, 100, [number,hundred,first]):- name(A,[121,236,32,98,462,237]). /* yì qiān */ mandarin(A, 1000, [number,thousand,first]):- name(A,[121,236,32...
,[98,257]). /* jiǔ */ mandarin(A, 9, [number,unit,nonfirst]):- name(A,[106,105,468]). /* shí */ mandarin(A, 10, [number,ten,first]):- name(A,[115,104,237]). /* bǎi */ mandarin(A, 100, [number,hundred,first]):- name(A,[121,236,32,98,462,237]). /* yì qiān */ mandarin(A, 1000, [number,thousand,first]):- name(A,[121,236,32...
[ 0.0174560546875, -0.00433349609375, 0.005615234375, 0.0120849609375, -0.005523681640625, 0.01519775390625, 0.0019073486328125, 0.00933837890625, 0.007080078125, -0.014892578125, 0.000774383544921875, -0.025634765625, 0.0107421875, 0.0093994140625, 0, -0.025390625, 0.00323486328125, ...
[ 6, 4, 1065, 16665, 2588, 966, 268, 194, 248, 1639, 890, 244195, 661, 64, 85786, 73, 132, 284, 483, 2606, 1297, 309, 217, 6431, 13448, 271, 9, 9351, 54100, 46659, 157041, 7547, 430, 209, 510, 103928, 66947, 304, 10945, 876, 234847, 14,...
[ 0.056304931640625, 0.090087890625, 0.008758544921875, 0.313232421875, 0.2376708984375, 0.1995849609375, 0.00146484375, 0.1024169921875, 0.095947265625, 0.0875244140625, 0.197509765625, 0.2047119140625, 0.0498046875, 0.050506591796875, 0.27783203125, 0.241943359375, 0.000213623046875,...
embed
53312005_c0
53312005
prolog
0
Title: Prolog lists returns false Problem title: Prolog lists returns false Tags: prolog Problem: Prolog lists returns false I'm relatively new in Prolog. I'm trying to multiply and add all elements of a list, but it only works for one element. What is wrong? %Basic mult([],A,0). mult([X|Xs],A,S) :- mult(Xs,A,R), S is ...
Prolog lists returns false Prolog lists returns false prolog Prolog Basic Prolog lists returns false I'm relatively new in Prolog. I'm trying to multiply and add all elements of a list, but it only works for one element. What is wrong? Thanks for any help.
[ 0.00836181640625, 0.037109375, 0.0133056640625, 0.0029296875, -0.0198974609375, 0.0234375, -0.00390625, -0.003662109375, -0.00170135498046875, -0.0157470703125, 0.0078125, -0.004180908203125, 0.00494384765625, 0.026123046875, -0.005828857421875, -0.000335693359375, 0.01708984375, 0...
[ 1250, 4867, 5303, 7, 30646, 98320, 502, 91692, 3525, 31577, 6024, 62479, 15190, 756, 80854, 4734, 43240, 100, 1632, 12830, 44691 ]
[ 0.1771240234375, 0.26171875, 0.2149658203125, 0.034393310546875, 0.185302734375, 0.2310791015625, 0.126220703125, 0.1165771484375, 0.0232391357421875, 0.032073974609375, 0.101318359375, 0.1461181640625, 0.10504150390625, 0.01788330078125, 0.11785888671875, 0.05987548828125, 0.0859985...
embed
18702790_c0
18702790
prolog
0
Title: Delete a symbol in a string Problem title: Delete a symbol in a string Tags: prolog Problem: Delete a symbol in a string I have a list of string. Sometimes a string can contain a particular symbol. For example if i have this list: L=[dog,cat,tiger,,bear] The string "tiger," has the "," concatenated with the word...
Delete a symbol in a string Delete a symbol in a string prolog Delete Delete a symbol in a string I have a list of string. Sometimes a string can contain a particular symbol. For example if i have this list: The string "tiger," has the "," concatenated with the word. How can I do to remove the "," from "tiger," ?
[ 0.00244140625, 0.0027923583984375, -0.01318359375, 0.0177001953125, -0.0301513671875, -0.003143310546875, -0.0026397705078125, 0.01080322265625, 0.01348876953125, -0.01043701171875, -0.00830078125, -0.0208740234375, -0.005126953125, 0.010986328125, -0.0291748046875, 0.0206298828125, ...
[ 262, 46485, 10, 26582, 23, 79315, 502, 4867, 5303, 160193, 831, 70541, 17311, 102577, 1556, 4, 158, 4460, 33, 678, 2565, 54, 47, 87388, 70, 44, 1295 ]
[ 0.113037109375, 0.1961669921875, 0.0467529296875, 0.27880859375, 0.07550048828125, 0.253173828125, 0.090576171875, 0.1256103515625, 0.11785888671875, 0.038116455078125, 0.031768798828125, 0.100341796875, 0.042816162109375, 0.2076416015625, 0.028594970703125, 0.0577392578125, 0.031341...
embed
53615824_c0
53615824
prolog
0
Title: How Can I repeat the list in swi prolog? Problem title: How Can I repeat the list in swi prolog? Tags: list, repeat, prolog Problem: How Can I repeat the list in swi prolog? How Can I repeat the list in swi prolog? {ex: repeat(X,Y,N) to be true when Y is the list consisting of each element of X repeated N times ...
How Can I repeat the list in swi prolog? How Can I repeat the list in swi prolog? list repeat prolog How Can How Can I repeat the list in swi prolog? How Can I repeat the list in swi prolog? {ex: repeat(X,Y,N) to be true when Y is the list consisting of each element of X repeated N times (e.g. repeat([a,b], [a,a,a,b,b,...
[ 0.002288818359375, 0.017822265625, 0.00274658203125, 0.0279541015625, -0.0169677734375, -0.001434326171875, 0.01275634765625, 0.010986328125, 0.011962890625, -0.015380859375, -0.00457763671875, -0.0025177001953125, -0.024658203125, -0.008544921875, 0.005096435546875, 0.00958251953125, ...
[ 11249, 4171, 87, 119140, 70, 5303, 23, 91, 2452, 502, 4867, 1542, 1723, 839, 186, 29568, 3229, 990, 58055, 12638, 12830, 1193, 297, 541, 20028, 275, 21320 ]
[ 0.09521484375, 0.115966796875, 0.0298004150390625, 0.29345703125, 0.044586181640625, 0.204833984375, 0.0467529296875, 0.049072265625, 0.2010498046875, 0.1541748046875, 0.1876220703125, 0.0653076171875, 0.05438232421875, 0.0775146484375, 0.0220184326171875, 0.135498046875, 0.000885009...
embed
42893853_c0
42893853
prolog
0
Title: Prolog, passing facts into a rule&#x27;s argument list Problem title: Prolog, passing facts into a rule&#x27;s argument list Tags: prolog Problem: Prolog, passing facts into a rule's argument list presume I have a sequence of facts: fact(a,1). fact(b,10). fact(c,100). I want to be able to use a rule of this type...
Prolog, passing facts into a rule&#x27;s argument list Prolog, passing facts into a rule&#x27;s argument list prolog Prolog Prolog, passing facts into a rule's argument list presume I have a sequence of facts: I want to be able to use a rule of this type:
[ 0.042724609375, 0.0159912109375, -0.0255126953125, 0.0185546875, 0.0021209716796875, 0.0032806396484375, 0.00165557861328125, 0.016357421875, -0.0022430419921875, -0.0191650390625, -0.0019989013671875, -0.0220947265625, -0.017822265625, 0.0115966796875, -0.0008697509765625, -0.01208496...
[ 1250, 4867, 452, 15824, 3934, 79986, 3768, 10750, 5303, 6953, 7, 502, 4, 44136, 282, 87, 765, 944, 3956, 3444, 19048, 4527, 903, 10644 ]
[ 0.17236328125, 0.26171875, 0.110107421875, 0.2030029296875, 0.1431884765625, 0.2064208984375, 0.088623046875, 0.2108154296875, 0.1954345703125, 0.045928955078125, 0.05126953125, 0.1485595703125, 0.00677490234375, 0.140869140625, 0.057525634765625, 0.0251312255859375, 0.05438232421875...
embed
31660009_c0
31660009
prolog
0
Title: prolog get a term from a compound Problem title: prolog get a term from a compound Tags: prolog Problem: prolog get a term from a compound I get this compound term: e(currentNode,"http://localhost:9000/") How can I get only http://localhost:9000/ separately from that compound? Or less, is there a way to transfor...
prolog get a term from a compound prolog get a term from a compound prolog a localhost:9000 prolog get a term from a compound I get this compound term: How can I get only http://localhost:9000/ separately from that compound? Or less, is there a way to transform the compound term to a string or a list?
[ 0.00628662109375, -0.00186920166015625, 0.0033721923828125, 0.0191650390625, 0.00130462646484375, 0.01336669921875, 0.0130615234375, 0.005645751953125, 0.00830078125, -0.06982421875, 0.0196533203125, -0.000507354736328125, -0.03369140625, -0.0042724609375, -0.00958251953125, 0.00083541...
[ 502, 4867, 2046, 13579, 1295, 217773, 4000, 40294, 147061, 4734, 1621, 98908, 84797, 40715, 27198, 79315, 5303 ]
[ 0.1324462890625, 0.2265625, 0.06396484375, 0.215576171875, 0.12335205078125, 0.2188720703125, 0.083984375, 0.15283203125, 0.24609375, 0.051055908203125, 0.111083984375, 0.10540771484375, 0.0963134765625, 0.044647216796875, 0.06976318359375, 0.135986328125, 0.12457275390625 ]
embed
66066294_c0
66066294
prolog
0
Title: How to print a write value given prolog predicate retuns true? Problem title: How to print a write value given prolog predicate retuns true? Tags: prolog Problem: How to print a write value given prolog predicate retuns true? How can I print a statement if a given prolog predicate returns true or false. statemen...
How to print a write value given prolog predicate retuns true? How to print a write value given prolog predicate retuns true? prolog How How to print a write value given prolog predicate retuns true? How can I print a statement if a given prolog predicate returns true or false. Thanks!
[ 0.01116943359375, -0.00640869140625, -0.0091552734375, -0.004638671875, -0.0135498046875, 0.00677490234375, 0.01519775390625, 0.006134033203125, -0.00421142578125, 0.0019683837890625, -0.00518798828125, 0.0062255859375, -0.01556396484375, -0.010498046875, 0.0052490234375, -0.0009040832...
[ 11249, 47, 28412, 33022, 34292, 34475, 502, 4867, 1653, 2063, 67, 10267, 309, 29568, 7, 831, 63805, 2174, 30646, 707, 98320 ]
[ 0.09197998046875, 0.0576171875, 0.234619140625, 0.2099609375, 0.215576171875, 0.09027099609375, 0.1534423828125, 0.2196044921875, 0.168701171875, 0.221923828125, 0.072998046875, 0.1253662109375, 0.167236328125, 0.2071533203125, 0.0190887451171875, 0.0096282958984375, 0.1776123046875,...
embed