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
57341339_c0
57341339
prolog
0
Title: Structuring SWI-Prolog Code into Modules for Unit Testing of Multiple Algorithms and Data Sets Problem title: Structuring SWI-Prolog Code into Modules for Unit Testing of Multiple Algorithms and Data Sets Tags: composition, swi-prolog, prolog, unit-testing, module Problem: Structuring SWI-Prolog Code into Module...
Structuring SWI-Prolog Code into Modules for Unit Testing of Multiple Algorithms and Data Sets Structuring SWI-Prolog Code into Modules for Unit Testing of Multiple Algorithms and Data Sets composition swi-prolog prolog unit-testing module Structuring SWI-Prolog Modules Unit Testing Multiple Algorithms Data Sets data.p...
[ 0.004241943359375, 0.00958251953125, 0.01214599609375, 0.0137939453125, -0.0107421875, 0.0106201171875, 0.034912109375, -0.01544189453125, 0.0135498046875, -0.017333984375, -0.020751953125, 0.01214599609375, -0.005340576171875, -0.01324462890625, 0.02197265625, -0.00433349609375, 0.0...
[ 63667, 238, 109561, 159, 38969, 9, 10752, 4867, 28864, 3934, 63014, 46640, 8647, 214, 19335, 8705, 109847, 2783, 18337, 11809, 19943, 166577, 91, 2452, 3454, 502, 25072, 6954, 88996, 2053, 2424, 41382, 60875, 4527, 83279, 38937, 297, 121151, ...
[ 0.1610107421875, 0.08355712890625, 0.02935791015625, 0.08856201171875, 0.25830078125, 0.032623291015625, 0.15380859375, 0.1783447265625, 0.1817626953125, 0.057373046875, 0.16259765625, 0.14453125, 0.1649169921875, 0.0254974365234375, 0.11669921875, 0.089599609375, 0.06573486328125, ...
embed
56283630_c0
56283630
prolog
0
Title: Program recurs in different line than supposed to Problem title: Program recurs in different line than supposed to Tags: recursion, logic, prolog Problem: Program recurs in different line than supposed to I have some rules called sessions that have a Title(String) and Topics (a list of String). I'm creating a qu...
Program recurs in different line than supposed to Program recurs in different line than supposed to recursion logic prolog code natural one Program Rules Semantic Technology Cross-Industry Standards XBRL Extensible Business Reporting Language MISMO Mortgage Industry Maintenance Org FIXatdl FIX Algorithmic Trading Defin...
[ 0.0146484375, 0.0322265625, -0.004608154296875, 0.01275634765625, -0.001922607421875, -0.0098876953125, 0.004730224609375, 0.0081787109375, -0.0021209716796875, -0.01116943359375, 0.014404296875, 0.01068115234375, -0.0208740234375, -0.022216796875, 0.030517578125, 0.01068115234375, 0...
[ 7663, 195625, 23, 12921, 13315, 3501, 134598, 47, 1830, 62775, 502, 4867, 18151, 6083, 1632, 139118, 10232, 46473, 47832, 20744, 571, 30121, 510, 14249, 34798, 83658, 190741, 164254, 96101, 21487, 20469, 109847, 125362, 155455, 39456, 96408, 48...
[ 0.20703125, 0.287353515625, 0.09765625, 0.1905517578125, 0.177490234375, 0.1134033203125, 0.212158203125, 0.0772705078125, 0.1158447265625, 0.1171875, 0.0755615234375, 0.1259765625, 0.0916748046875, 0.081787109375, 0.0703125, 0.129150390625, 0.06640625, 0.047760009765625, 0.05267...
embed
14144730_c0
14144730
prolog
0
Title: Implementing "cut" in a recursive descent parser Problem title: Implementing "cut" in a recursive descent parser Tags: parsing, peg, prolog-cut, prolog, backtracking Problem: Implementing "cut" in a recursive descent parser I'm implementing a PEG parser generator in Python, and I've had succe...
Implementing "cut" in a recursive descent parser Implementing "cut" in a recursive descent parser parsing peg prolog-cut prolog backtracking Implementing FailedCut cut_seen self.token self.call FailedParse _sequence self._push_cut self._cut self.error self._pop_cut _option self._pos self._push_ast s...
[ 0.0294189453125, 0.0184326171875, 0.03076171875, 0.02880859375, 0.00439453125, 0.0242919921875, -0.005218505859375, 0.00086212158203125, 0.01416015625, 0.01348876953125, -0.005401611328125, 0.01416015625, -0.010009765625, -0.0169677734375, 0.0218505859375, -0.0017242431640625, -0.004...
[ 153941, 41502, 19774, 195625, 5844, 224, 16797, 366, 2189, 280, 177, 502, 4867, 4420, 125728, 190355, 297, 441, 1003, 59226, 66079, 15970, 6448, 85763, 28636, 944, 7332, 188800, 33554, 109585, 7522, 4438, 117008, 86, 590, 29479, 436, 25176, ...
[ 0.21435546875, 0.0311126708984375, 0.276611328125, 0.219970703125, 0.133544921875, 0.17431640625, 0.15869140625, 0.1788330078125, 0.131103515625, 0.1317138671875, 0.09710693359375, 0.1370849609375, 0.2110595703125, 0.108154296875, 0.2169189453125, 0.175537109375, 0.07421875, 0.1485...
embed
65645979_c0
65645979
prolog
0
Title: I cannot get my Flex program to output a result into the console, it only returns "no" Problem title: I cannot get my Flex program to output a result into the console, it only returns "no" Tags: expert-system, flexrule, prolog, rule-engine Problem: I cannot get my Flex program to output a res...
I cannot get my Flex program to output a result into the console, it only returns "no" I cannot get my Flex program to output a result into the console, it only returns "no" expert-system flexrule prolog rule-engine Flex patient_risk condition_time clinical_trial antibody_count life_style How anaemi...
[ 0.01123046875, -0.000560760498046875, -0.0027618408203125, 0.0150146484375, -0.01446533203125, 0.02294921875, 0.00946044921875, 0.0174560546875, 0.006561279296875, 0.003753662109375, 0.01275634765625, -0.0213623046875, -0.01409912109375, -0.00634765625, -0.004241943359375, -0.002899169...
[ 53418, 2046, 153033, 1528, 140992, 16750, 3934, 130250, 30646, 157, 4734, 26808, 16751, 44289, 882, 133, 502, 4867, 79986, 128897, 37896, 57786, 35431, 6032, 56465, 51626, 2874, 37873, 71013, 6897, 40946, 3877, 32868, 61340, 59714, 11856, 12944...
[ 0.1090087890625, 0.0174713134765625, 0.299560546875, 0.1646728515625, 0.18798828125, 0.1722412109375, 0.0633544921875, 0.261962890625, 0.1566162109375, 0.2005615234375, 0.0238189697265625, 0.0751953125, 0.066162109375, 0.2288818359375, 0.06536865234375, 0.0025634765625, 0.0791015625,...
embed
71204495_c0
71204495
prolog
0
Title: Is it possible to write a prolog interpreter that avoids infinite recursion? Problem title: Is it possible to write a prolog interpreter that avoids infinite recursion? Tags: complexity-theory, computation-theory, prolog-metainterpreter, prolog Problem: Is it possible to write a prolog interpreter that avoids in...
Is it possible to write a prolog interpreter that avoids infinite recursion? Is it possible to write a prolog interpreter that avoids infinite recursion? complexity-theory computation-theory prolog-metainterpreter prolog Is it possible to write a prolog interpreter that avoids infinite recursion? Main features I recent...
[ -0.0086669921875, 0.002960205078125, 0.0242919921875, -0.00005745887756347656, -0.00164794921875, -0.02734375, 0.0162353515625, 0.0035247802734375, -0.0007171630859375, -0.04150390625, -0.003204345703125, 0.0240478515625, -0.0194091796875, -0.0050048828125, 0.0267333984375, 0.019653320...
[ 7722, 33022, 502, 4867, 29481, 56, 71864, 54241, 13, 195625, 1830, 27140, 2481, 181135, 35273, 158288, 7, 66139, 1250, 23550, 18, 51359, 262, 254, 13448, 33938, 5337, 56359, 351, 48650, 1528, 54704, 206438, 1479, 116987, 1810, 5062, 4252, 2...
[ 0.1607666015625, 0.1373291015625, 0.1875, 0.229248046875, 0.221435546875, 0.158203125, 0.1661376953125, 0.14013671875, 0.058380126953125, 0.21435546875, 0.0810546875, 0.181640625, 0.055755615234375, 0.03704833984375, 0.0924072265625, 0.1910400390625, 0.007354736328125, 0.1318359375...
embed
67446830_c3
67446830
prolog
3
, _30010, _30016, _30022, _30052, _30058, _30064, _30100, _30106, _32024, espacos_fila, Puzzle, Espacos_h_l, P52, P53, P_55, P24, P25, P32, P33, P34, P35, P42, P43, P44, P45, Espacos
, _30010, _30016, _30022, _30052, _30058, _30064, _30100, _30106, _32024, espacos_fila, Puzzle, Espacos_h_l, P52, P53, P_55, P24, P25, P32, P33, P34, P35, P42, P43, P44, P45, Espacos
[ -0.00177001953125, -0.02294921875, -0.0205078125, 0.0230712890625, -0.007537841796875, -0.0023193359375, -0.007568359375, -0.0052490234375, 0.0084228515625, 0.0302734375, 0.01171875, -0.033203125, 0.0260009765625, 0.0029449462890625, -0.020263671875, -0.00927734375, 0.003768920898437...
[ 6, 4, 101, 7739, 963, 2485, 4015, 12744, 10057, 13307, 1197, 3559, 54100, 76531, 2357, 101404, 7840, 454, 119948, 179277, 75760, 127, 141, 436, 14226, 11663, 2588, 6460, 9185, 10289, 5843, 13023, 11548, 12465, 4633 ]
[ 0.1092529296875, 0.1275634765625, 0.1075439453125, 0.22705078125, 0.2017822265625, 0.1849365234375, 0.1112060546875, 0.200439453125, 0.1439208984375, 0.119873046875, 0.0953369140625, 0.16650390625, 0.1697998046875, 0.1158447265625, 0.1405029296875, 0.1875, 0.261962890625, 0.0339050...
embed
28270558_c2
28270558
prolog
2
, Dots, SWI-Prolog, use_module, Rows, length_list, Columns, _G670, _G673, _G676, _G682, _G685, _G688, _G694, _G697, _G700, _G4520, _G4523, _G4526, _G4532, _G4535, _G4538, _G4544, _G4547, _G4550
, Dots, SWI-Prolog, use_module, Rows, length_list, Columns, _G670, _G673, _G676, _G682, _G685, _G688, _G694, _G697, _G700, _G4520, _G4523, _G4526, _G4532, _G4535, _G4538, _G4544, _G4547, _G4550
[ 0.00482177734375, 0.0201416015625, 0.011474609375, 0.023681640625, -0.018310546875, -0.001373291015625, 0.0093994140625, 0.004974365234375, 0.0181884765625, -0.023193359375, -0.002655029296875, 0.01055908203125, -0.015869140625, -0.008056640625, -0.0126953125, -0.021240234375, 0.0139...
[ 4, 84929, 7, 159, 38969, 9, 10752, 4867, 4527, 83279, 13, 96190, 140909, 6562, 233987, 101, 724, 108620, 195192, 181137, 192508, 171141, 134900, 14212, 617, 194148, 15128, 4633, 1549, 3742, 4046, 6460, 5843, 10991, 12465, 13330, 2525 ]
[ 0.063232421875, 0.218505859375, 0.095947265625, 0.08428955078125, 0.2144775390625, 0.05767822265625, 0.1541748046875, 0.2333984375, 0.1668701171875, 0.1966552734375, 0.06317138671875, 0.2100830078125, 0.16357421875, 0.20556640625, 0.23193359375, 0.01141357421875, 0.0750732421875, 0...
embed
1950408_c0
1950408
prolog
0
Title: Prolog statement syntax Problem title: Prolog statement syntax Tags: prolog Problem: Prolog statement syntax member(K,[a,b,c,d]) if for one of ... What's the statement for two of ...? Code signals: Prolog
Prolog statement syntax Prolog statement syntax prolog Prolog Prolog statement syntax member(K,[a,b,c,d]) if for one of ... What's the statement for two of ...?
[ 0.01507568359375, -0.00689697265625, -0.0086669921875, -0.00168609619140625, -0.01495361328125, -0.00125885009765625, 0.000576019287109375, 0.003265380859375, -0.00084686279296875, -0.00830078125, 0.00390625, -0.0089111328125, -0.01251220703125, 0.000018835067749023438, 0.003738403320312...
[ 1250, 4867, 63805, 6002, 86531, 502, 32786, 605, 11, 275, 238, 71, 2174, 100, 1632, 111, 6626, 153 ]
[ 0.1546630859375, 0.246337890625, 0.2261962890625, 0.1317138671875, 0.1109619140625, 0.09832763671875, 0.220458984375, 0.138671875, 0.053985595703125, 0.07421875, 0.06951904296875, 0.09442138671875, 0.094970703125, 0.10009765625, 0.0872802734375, 0.10845947265625, 0.142333984375, 0....
embed
30401542_c0
30401542
prolog
0
Title: how to match exact list in prolog Problem title: how to match exact list in prolog Tags: list, match, prolog Problem: how to match exact list in prolog pleasee help google **fact:** protein(annexin,[a,s,d,f]).
how to match exact list in prolog how to match exact list in prolog list match prolog how to match exact list in prolog pleasee help google
[ 0.006866455078125, 0.004241943359375, 0.005462646484375, 0.01220703125, -0.0162353515625, -0.00811767578125, 0.0019989013671875, 0.0233154296875, 0.0244140625, -0.0021820068359375, 0.0279541015625, 0.01300048828125, 0.0125732421875, -0.00848388671875, 0.018798828125, -0.025634765625, ...
[ 3642, 14858, 24763, 5303, 502, 4867, 47, 23, 22936, 4358, 26484 ]
[ 0.0169830322265625, 0.2303466796875, 0.2308349609375, 0.2205810546875, 0.1475830078125, 0.2149658203125, 0.017242431640625, 0.0360107421875, 0.07696533203125, 0.057373046875, 0.10595703125 ]
embed
65133897_c0
65133897
prolog
0
Title: Grouping list elements based on values in list Problem title: Grouping list elements based on values in list Tags: tuples, prolog, list, grouping Problem: Grouping list elements based on values in list Code signals: Grouping
Grouping list elements based on values in list Grouping list elements based on values in list tuples prolog list grouping Grouping Grouping list elements based on values in list i have a list of elements(tuples): How to group them so it becomes: As we can see, we grouped the (a,b) (c,d) (e,f) and concatenated their res...
[ 0.0162353515625, -0.000179290771484375, -0.01385498046875, -0.005584716796875, -0.018798828125, 0.0002899169921875, -0.0291748046875, -0.00165557861328125, 0.020751953125, 0.0244140625, -0.0074462890625, 0.0081787109375, -0.0191650390625, 0.0244140625, -0.02294921875, 0.0107421875, 0...
[ 10760, 214, 5303, 80854, 35509, 98, 142424, 23, 370, 99726, 502, 4867, 21115, 17, 765, 111, 458, 11249, 47, 2856, 221, 442, 24209, 1957, 642, 37769, 71, 70, 11, 275, 238, 13, 420, 158, 4460, 33, 27686, 107013, 4358, 5 ]
[ 0.2119140625, 0.0833740234375, 0.214599609375, 0.204345703125, 0.1278076171875, 0.066162109375, 0.20263671875, 0.0526123046875, 0.145263671875, 0.2178955078125, 0.092041015625, 0.150146484375, 0.2357177734375, 0.04193115234375, 0.0340576171875, 0.031341552734375, 0.10736083984375, ...
embed
5761736_c0
5761736
prolog
0
Title: prolog - manual meanings Problem title: prolog - manual meanings Tags: prolog Problem: prolog - manual meanings I've read the manual from swi-prolog: union(+Set1, +Set2, -Set3) what do + and - mean ? Code signals: Set1, Set2, Set3
prolog - manual meanings prolog - manual meanings prolog Set1 Set2 Set3 prolog - manual meanings I've read the manual from swi-prolog: what do + and - mean ?
[ 0.0177001953125, 0.0267333984375, 0.0103759765625, -0.00116729736328125, -0.00689697265625, 0.022705078125, -0.00408935546875, 0.0194091796875, 0.00958251953125, -0.00567626953125, -0.0003814697265625, -0.01397705078125, 0.00439453125, -0.01043701171875, -0.009765625, -0.00711059570312...
[ 502, 4867, 23009, 91084, 7, 19943, 304, 363, 12301, 91, 2452, 3454, 2367, 54, 997, 136, 20, 29459 ]
[ 0.1705322265625, 0.251220703125, 0.2193603515625, 0.1748046875, 0.031097412109375, 0.1685791015625, 0.018157958984375, 0.07757568359375, 0.095458984375, 0.0035991668701171875, 0.154541015625, 0.145263671875, 0.0506591796875, 0.0499267578125, 0.19970703125, 0.1715087890625, 0.14025878...
embed
5611647_c0
5611647
prolog
0
Title: How to calculate length of list by prolog Problem title: How to calculate length of list by prolog Tags: prolog Problem: How to calculate length of list by prolog Code signals: How, List, Dev, Jon, Darin, Hans, Test, Richard, Mike, Chef, Bozho
How to calculate length of list by prolog How to calculate length of list by prolog prolog How List Dev Jon Darin Hans Test Richard Mike Chef Bozho How to calculate length of list by prolog l have a list following I want to calculate how many times every person appear and add his time step by step for example, the resu...
[ 0.010986328125, 0.01953125, 0.002777099609375, 0.0128173828125, -0.00958251953125, -0.01043701171875, 0.00011968612670898438, 0.0198974609375, 0.0245361328125, -0.05615234375, 0, -0.01953125, 0.00116729736328125, 0.0135498046875, 0.006744384765625, -0.0034332275390625, 0.017333984375...
[ 11249, 74481, 67, 140909, 111, 5303, 390, 502, 4867, 32036, 40317, 21240, 73, 15745, 8647, 22758, 41576, 53976, 92377, 497, 96, 25632, 3444, 5941, 20028, 11907, 3445, 108975, 15190, 1919, 1733, 29954, 16750 ]
[ 0.0467529296875, 0.189208984375, 0.06427001953125, 0.20849609375, 0.1248779296875, 0.247802734375, 0.09722900390625, 0.18017578125, 0.2462158203125, 0.1534423828125, 0.10028076171875, 0.019683837890625, 0.01045989990234375, 0.0941162109375, 0.09796142578125, 0.0638427734375, 0.043029...
embed
69742730_c0
69742730
prolog
0
Title: Directional graph in prolog Problem title: Directional graph in prolog Tags: prolog Problem: Directional graph in prolog I defined the edges, but how should I make it directional and get answers to all these questions. Code signals: Directional
Directional graph in prolog Directional graph in prolog prolog Directional Directional graph in prolog I defined the edges, but how should I make it directional and get answers to all these questions.
[ 0.0306396484375, 0.006927490234375, 0.000919342041015625, 0.0140380859375, -0.0228271484375, 0.0036468505859375, -0.025146484375, 0.01507568359375, -0.0157470703125, -0.0167236328125, -0.005340576171875, -0.00020313262939453125, -0.01025390625, 0.011962890625, 0.0167236328125, 0.035400...
[ 176774, 289, 41382, 23, 502, 4867, 87, 61924, 71, 121303, 7, 3642, 5608, 3249, 442, 48225, 35166, 17582 ]
[ 0.202880859375, 0.164794921875, 0.220458984375, 0.033538818359375, 0.1416015625, 0.2142333984375, 0.006298065185546875, 0.125732421875, 0.00659942626953125, 0.2083740234375, 0.043365478515625, 0.04339599609375, 0.042083740234375, 0.09271240234375, 0.033294677734375, 0.2039794921875, ...
embed
25579309_c1
25579309
prolog
1
[tos(a), 5, 12, tos(b), tos(c),1, tos(d), 2, 17, tos(e)], [tos(a), 5, 12, tos(b), tos(c), tos(d),1, 2, 17, tos(e)], [tos(a), 5, 12, tos(b), tos(c), tos(d), 2, 17, tos(e),1]]. *edit*Thanks to CapelliC for clarifying my question. Code signals: Prolog, How
[tos(a), 5, 12, tos(b), tos(c),1, tos(d), 2, 17, tos(e)], [tos(a), 5, 12, tos(b), tos(c), tos(d),1, 2, 17, tos(e)], [tos(a), 5, 12, tos(b), tos(c), tos(d), 2, 17, tos(e),1]]. *edit*Thanks to CapelliC for clarifying my question. Code signals: Prolog, How
[ 0.0233154296875, 0.019775390625, -0.0002460479736328125, 0.013427734375, -0.006500244140625, 0.007080078125, -0.029052734375, 0.01422119140625, -0.01165771484375, -0.05224609375, -0.01348876953125, -0.0021514892578125, -0.021240234375, 0.0184326171875, -0.01202392578125, -0.017578125, ...
[ 378, 1952, 11, 247, 190, 4, 427, 47, 7, 275, 238, 418, 71, 116, 21567, 13, 76172, 268, 5, 163118, 150, 17306, 28864, 26073, 12, 1250, 4867, 11249 ]
[ 0.0609130859375, 0.27197265625, 0.1019287109375, 0.07373046875, 0.158447265625, 0.048614501953125, 0.169189453125, 0.216552734375, 0.10626220703125, 0.0802001953125, 0.07598876953125, 0.059814453125, 0.1103515625, 0.0721435546875, 0.2020263671875, 0.07818603515625, 0.0728759765625, ...
embed
1739878_c0
1739878
prolog
0
Title: prolog pascal triangle Problem title: prolog pascal triangle Tags: pascals-triangle, prolog Problem: prolog pascal triangle hi is there anybody know how can i do the pascal nth row when i ask for :? pascal(2,Row). i get Row=[1,2,1] ?? please help me
prolog pascal triangle prolog pascal triangle pascals-triangle prolog prolog pascal triangle hi is there anybody know how can i do the pascal nth row when i ask for :? pascal(2,Row). i get Row=[1,2,1] ?? please help me
[ 0.013671875, 0.0040283203125, 0.02880859375, 0.0123291015625, -0.00115203857421875, 0.006195068359375, -0.002105712890625, 0.009765625, 0.005706787109375, -0.0169677734375, 0.016845703125, -0.0272216796875, -0.0128173828125, 0.00970458984375, -0.006988525390625, 0.00118255615234375, ...
[ 502, 4867, 452, 6827, 1927, 109217, 3996, 1274, 2685, 37873, 3714, 3642, 831, 17, 54, 70, 653, 927, 15555, 26458, 100, 54753, 4, 12724, 434, 2046, 96190, 1369, 133063, 76172, 24610, 22936, 4358 ]
[ 0.157958984375, 0.21875, 0.1654052734375, 0.2100830078125, 0.188720703125, 0.199462890625, 0.1571044921875, 0.048736572265625, 0.010589599609375, 0.046051025390625, 0.0648193359375, 0.0704345703125, 0.055755615234375, 0.03021240234375, 0.09344482421875, 0.03204345703125, 0.1441650390...
embed
16027344_c0
16027344
prolog
0
Title: Atan2 and Prolog Problem title: Atan2 and Prolog Tags: prolog Problem: Atan2 and Prolog Why does atan2(1,3). yield false ? I expected it to return an angle in radians as stated here: http://www.swi-prolog.org/man/arith.html Code signals: Atan2, Prolog
Atan2 and Prolog Atan2 and Prolog prolog Atan2 Prolog Atan2 and Prolog Why does atan2(1,3). yield false ? I expected it to return an angle in radians as stated here: http://www.swi-prolog.org/man/arith.html
[ 0.01361083984375, -0.0125732421875, -0.000804901123046875, -0.0025177001953125, -0.01409912109375, 0.0341796875, -0.00439453125, 0.00885009765625, -0.0191650390625, -0.016357421875, 0.0137939453125, 0.0201416015625, -0.0206298828125, 0.0133056640625, 0.017822265625, -0.005218505859375,...
[ 62, 1076, 304, 136, 1250, 4867, 502, 44084, 14602, 99, 66, 41600, 4, 21320, 11180, 19388, 98320, 84751, 442, 30646, 55291, 23, 4567, 10133, 2452, 3454, 669, 8962 ]
[ 0.061065673828125, 0.2113037109375, 0.2142333984375, 0.031219482421875, 0.124267578125, 0.2132568359375, 0.047607421875, 0.059814453125, 0.043426513671875, 0.127685546875, 0.206787109375, 0.04791259765625, 0.0740966796875, 0.1885986328125, 0.1571044921875, 0.213623046875, 0.266357421...
embed
21689912_c0
21689912
prolog
0
Title: How use Goal in SWI-Prolog Problem title: How use Goal in SWI-Prolog Tags: prolog Problem: How use Goal in SWI-Prolog In TurboPrologwe can use next construction: goal: father('Tom', X). How use same in SWI-Prolog? Code signals: How, Goal, SWI-Prolog, Tom
How use Goal in SWI-Prolog How use Goal in SWI-Prolog prolog How Goal SWI-Prolog Tom How use Goal in SWI-Prolog In TurboPrologwe can use next construction: How use same in SWI-Prolog?
[ 0.01251220703125, 0.0281982421875, 0.00543212890625, 0.003814697265625, -0.0233154296875, -0.000308990478515625, 0.0081787109375, -0.002532958984375, -0.003692626953125, -0.046142578125, 0.016845703125, -0.0194091796875, -0.0291748046875, -0.01507568359375, 0.01904296875, 0.01080322265...
[ 11249, 4527, 2016, 289, 23, 159, 38969, 10752, 4867, 9, 502, 8352, 102228, 1177, 831, 11737, 50961, 5701 ]
[ 0.0745849609375, 0.1279296875, 0.208740234375, 0.218994140625, 0.05908203125, 0.064453125, 0.2080078125, 0.11016845703125, 0.1910400390625, 0.040283203125, 0.10986328125, 0.104736328125, 0.165283203125, 0.0745849609375, 0.0100250244140625, 0.0379638671875, 0.17919921875, 0.11358642...
embed
10074623_c0
10074623
prolog
0
Title: append nested lists Problem title: append nested lists Tags: prolog Problem: append nested lists I want to append two lists say [1,2] and [3,4] to a single list as , [[1,2],[3,4]] . How could this be achieved in prolog. I always get it as [1,2,3,4] . Thanks
append nested lists append nested lists prolog append nested lists I want to append two lists say [1,2] and [3,4] to a single list as , [[1,2],[3,4]] . How could this be achieved in prolog. I always get it as [1,2,3,4] . Thanks
[ 0.005615234375, 0.00732421875, -0.00173187255859375, 0.0010833740234375, 0.00390625, 0.030517578125, -0.0086669921875, 0.00653076171875, 0.004425048828125, -0.042236328125, 0.0216064453125, -0.0206298828125, -0.006927490234375, 0.017333984375, 0.0069580078125, -0.021728515625, 0.0085...
[ 114689, 71, 8512, 5303, 7, 502, 4867, 87, 3444, 6626, 5154, 68252, 90173, 136, 82449, 47, 11001, 237, 133063, 11249, 5809, 903, 69307, 23, 11343, 2046, 442, 378, 4, 22362 ]
[ 0.2108154296875, 0.1700439453125, 0.267578125, 0.258056640625, 0.042388916015625, 0.1837158203125, 0.2249755859375, 0.021820068359375, 0.1314697265625, 0.1796875, 0.057586669921875, 0.0307769775390625, 0.11602783203125, 0.06719970703125, 0.259033203125, 0.110107421875, 0.172119140625...
embed
28659257_c1
28659257
prolog
1
YAP, Prolog, SWI-Prolog, EXISTENCE, ERROR, prolog:$command, Goal, user:cumulative, _D543, _D539, _131120, _D535, _D531, _131128, _D527, _D523, _131136, _D519, _D515, _131144, _D511, _D507, _131152, _D503, _D499, _131160, _D495, _D491, _131168, _D487, _D483, _131176
YAP, Prolog, SWI-Prolog, EXISTENCE, ERROR, prolog:$command, Goal, user:cumulative, _D543, _D539, _131120, _D535, _D531, _131128, _D527, _D523, _131136, _D519, _D515, _131144, _D511, _D507, _131152, _D503, _D499, _131160, _D495, _D491, _131168, _D487, _D483, _131176
[ 0.02880859375, 0.020263671875, 0.01165771484375, 0.0181884765625, -0.00145721435546875, 0.0157470703125, -0.015869140625, -0.0263671875, 0.01092529296875, -0.006378173828125, 0.01507568359375, 0.0087890625, -0.0274658203125, -0.0223388671875, 0.00102996826171875, 0.00396728515625, 0....
[ 128706, 1250, 4867, 159, 38969, 9, 10752, 29426, 35602, 139016, 151206, 24638, 502, 12, 4369, 277, 12018, 2016, 289, 38937, 10591, 202, 45023, 101, 397, 167316, 188758, 115468, 20840, 758, 5843, 5016, 81764, 3768, 3742, 131281, 2947, 1837, ...
[ 0.28125, 0.178955078125, 0.267578125, 0.055023193359375, 0.2191162109375, 0.03887939453125, 0.1707763671875, 0.1136474609375, 0.1458740234375, 0.1317138671875, 0.1580810546875, 0.1435546875, 0.1600341796875, 0.0162353515625, 0.0797119140625, 0.1072998046875, 0.2359619140625, 0.1828...
embed
15926034_c0
15926034
prolog
0
Title: How to merge lists in PROLOG? Problem title: How to merge lists in PROLOG? Tags: prolog Problem: How to merge lists in PROLOG? I need to merge two lists L1=[1,2,3] and L2=[a,b] like this: M=[1,a,2,b,3]. How can I do it in PROLOG please? Code signals: How, PROLOG
How to merge lists in PROLOG? How to merge lists in PROLOG? prolog How PROLOG How to merge lists in PROLOG? I need to merge two lists L1=[1,2,3] and L2=[a,b] like this: M=[1,a,2,b,3]. How can I do it in PROLOG please?
[ 0.00897216796875, 0.023681640625, 0.00164794921875, 0.01263427734375, -0.00653076171875, 0.01953125, -0.02197265625, 0.0037078857421875, 0.0067138671875, -0.02294921875, 0.01397705078125, -0.0059814453125, -0.0004444122314453125, -0.000804901123046875, 0.0087890625, -0.00775146484375, ...
[ 11249, 47, 42564, 5303, 7, 23, 10514, 47510, 502, 4867, 3871, 6626, 339, 418, 133063, 96386, 304, 275, 1884, 903, 276, 1369, 54, 22936 ]
[ 0.1051025390625, 0.0579833984375, 0.2587890625, 0.253662109375, 0.10614013671875, 0.0899658203125, 0.2037353515625, 0.27294921875, 0.1217041015625, 0.180908203125, 0.07659912109375, 0.110595703125, 0.06689453125, 0.01849365234375, 0.0589599609375, 0.09698486328125, 0.0963134765625, ...
embed
36000827_c1
36000827
prolog
1
, removeUni([X2,X3|Q],Uni,D), !. removeUni([X1,X2,X3|Q],Uni,[X1|D]):- X1 == X2, X2 == X3, removeUni([X2,X3|Q],Uni,D), !. removeUni([X1,X2,X3|Q],Uni,[X1,X2|D]):- X1 == X2, X2 < X3, removeUni([X3|Q],Uni,D), !. Code signals: Statement, Unique, NotUnique, _G1678, _G1708, Uni
, removeUni([X2,X3|Q],Uni,D), !. removeUni([X1,X2,X3|Q],Uni,[X1|D]):- X1 == X2, X2 == X3, removeUni([X2,X3|Q],Uni,D), !. removeUni([X1,X2,X3|Q],Uni,[X1,X2|D]):- X1 == X2, X2 < X3, removeUni([X3|Q],Uni,D), !. Code signals: Statement, Unique, NotUnique, _G1678, _G1708, Uni
[ -0.01519775390625, 0.019287109375, 0.01513671875, -0.01263427734375, -0.00921630859375, -0.021728515625, 0.006927490234375, -0.01300048828125, 0.01287841796875, 0.0128173828125, -0.006866455078125, 0.0306396484375, 0.032958984375, -0.0174560546875, -0.0198974609375, 0.013916015625, 0...
[ 6, 4, 87388, 85600, 132, 1542, 304, 363, 2737, 397, 247, 711, 5, 418, 2077, 9, 1193, 69112, 4426, 28864, 26073, 12, 22836, 11789, 944, 11205, 1062, 45602, 724, 2485, 19051, 2489, 8318 ]
[ 0.066650390625, 0.053619384765625, 0.270751953125, 0.296630859375, 0.07305908203125, 0.1534423828125, 0.19677734375, 0.2037353515625, 0.1611328125, 0.11572265625, 0.04205322265625, 0.1123046875, 0.07000732421875, 0.13330078125, 0.051788330078125, 0.020111083984375, 0.1358642578125, ...
embed
1525282_c0
1525282
prolog
0
Title: Prolog is vs = with lists Problem title: Prolog is vs = with lists Tags: unification, resolution, prolog Problem: Prolog is vs = with lists Why does this fail L is [1,2,3,4] , and this works: L = [1,2,3] ? But L is 1 , and L = 1 both work the same. Code signals: Prolog
Prolog is vs = with lists Prolog is vs = with lists unification resolution prolog Prolog Prolog is vs = with lists Why does this fail L is [1,2,3,4] , and this works: L = [1,2,3] ? But L is 1 , and L = 1 both work the same.
[ 0.0030975341796875, 0.0113525390625, 0.0145263671875, -0.024658203125, -0.001739501953125, -0.0181884765625, -0.008056640625, 0.002685546875, 0.00182342529296875, -0.0177001953125, 0.006805419921875, 0.01055908203125, 0.02392578125, 0.005706787109375, -0.007049560546875, -0.00805664062...
[ 1250, 4867, 83, 20209, 2203, 678, 5303, 51, 41274, 158839, 502, 44084, 14602, 903, 35782, 339, 133063, 82449, 43240, 68252, 155761, 268, 106, 136, 15044, 4488, 5701, 5 ]
[ 0.17626953125, 0.265869140625, 0.055816650390625, 0.2012939453125, 0.20654296875, 0.1282958984375, 0.2083740234375, 0.13037109375, 0.0948486328125, 0.18017578125, 0.11102294921875, 0.040985107421875, 0.007564544677734375, 0.0404052734375, 0.1932373046875, 0.14501953125, 0.09796142578...
embed
3186588_c0
3186588
prolog
0
Title: Prolog - Make an app that does nothing and runs forever Problem title: Prolog - Make an app that does nothing and runs forever Tags: prolog, loops, infinite Problem: Prolog - Make an app that does nothing and runs forever Any good ways to do this? Code signals: Prolog, Make
Prolog - Make an app that does nothing and runs forever Prolog - Make an app that does nothing and runs forever prolog loops infinite Prolog Make Prolog - Make an app that does nothing and runs forever Any good ways to do this?
[ 0.027099609375, 0.01806640625, 0.0020294189453125, 0.0019073486328125, -0.025146484375, 0.00872802734375, 0.017578125, -0.0093994140625, 0.01495361328125, -0.040283203125, -0.00112152099609375, 0.0032806396484375, -0.021728515625, 0.036376953125, 0.0198974609375, 0.014892578125, 0.02...
[ 1250, 4867, 26176, 4027, 450, 14602, 33720, 136, 127877, 136993, 20, 502, 40956, 7, 54241, 13, 4127, 48322, 54, 903 ]
[ 0.20849609375, 0.287353515625, 0.12322998046875, 0.21728515625, 0.061431884765625, 0.09979248046875, 0.1710205078125, 0.0537109375, 0.1624755859375, 0.181884765625, 0.007625579833984375, 0.156494140625, 0.19384765625, 0.042022705078125, 0.1409912109375, 0.053314208984375, 0.063842773...
embed
1445490_c0
1445490
prolog
0
Title: Expand a query into a list in prolog Problem title: Expand a query into a list in prolog Tags: prolog Problem: Expand a query into a list in prolog How to expand a query into a list? f(a,b). f(a,c). d(a.d). expand(f(a,X), Out) -----> Out=[b,c,d] Code signals: Expand, a.d, Out
Expand a query into a list in prolog Expand a query into a list in prolog prolog Expand a.d Out Expand a query into a list in prolog How to expand a query into a list?
[ 0.0419921875, 0.00799560546875, -0.0028076171875, 0.047119140625, -0.004119873046875, 0.012939453125, -0.01806640625, 0.0194091796875, -0.0011749267578125, -0.03125, 0.0086669921875, -0.020263671875, -0.018798828125, -0.01495361328125, -0.011474609375, 0.019287109375, 0.0103149414062...
[ 60075, 2940, 41, 1294, 3934, 5303, 502, 4867, 10, 23, 71, 13538, 71062 ]
[ 0.1368408203125, 0.13330078125, 0.153564453125, 0.140869140625, 0.1273193359375, 0.1943359375, 0.131103515625, 0.2000732421875, 0.053802490234375, 0.0186004638671875, 0.035125732421875, 0.168701171875, 0.2239990234375 ]
embed
5883212_c0
5883212
prolog
0
Title: Prolog string manipulation Problem title: Prolog string manipulation Tags: prolog Problem: Prolog string manipulation I have a string like 'pen,pencil,eraser' . How can I make this predicate. things(pen,pencil,eraser). Do you have any idea? ( I use prolog) Code signals: Prolog
Prolog string manipulation Prolog string manipulation prolog Prolog Prolog string manipulation I have a string like 'pen,pencil,eraser' . How can I make this predicate. Do you have any idea? ( I use prolog)
[ 0.0203857421875, 0.0025634765625, -0.00171661376953125, 0.010986328125, -0.01007080078125, 0.03271484375, 0.004974365234375, -0.0078125, 0.01055908203125, -0.031494140625, -0.01446533203125, -0.024169921875, -0.0164794921875, -0.00002849102020263672, 0.00726318359375, 0.003067016601562...
[ 1250, 4867, 79315, 45258, 502, 1363, 765, 1884, 2278, 13003, 18314, 56, 11249, 831, 3249, 903, 1653, 2063, 67, 6528, 4527 ]
[ 0.140869140625, 0.2392578125, 0.2413330078125, 0.2001953125, 0.097900390625, 0.00504302978515625, 0.0494384765625, 0.03857421875, 0.1845703125, 0.1927490234375, 0.1663818359375, 0.1904296875, 0.016143798828125, 0.011993408203125, 0.06787109375, 0.05059814453125, 0.1563720703125, 0....
embed
19399022_c0
19399022
prolog
0
Title: How to run prolog code? Problem title: How to run prolog code? Tags: prolog, compilation Problem: How to run prolog code? I am working on family tree in prolog. I don't have any idea how to compile and run this program. Please give me some basic steps to run it. Code signals: How
How to run prolog code? How to run prolog code? prolog compilation How How to run prolog code? I am working on family tree in prolog. I don't have any idea how to compile and run this program. Please give me some basic steps to run it.
[ 0.0228271484375, -0.0133056640625, -0.0059814453125, 0.01190185546875, -0.02197265625, 0.03125, 0.00148773193359375, 0.000010192394256591797, -0.01190185546875, -0.07666015625, -0.007232666015625, -0.002838134765625, -0.0206298828125, -0.003326416015625, 0.0125732421875, -0.01226806640...
[ 11249, 47, 11675, 502, 4867, 18151, 32, 98352, 1363, 20697, 98, 14449, 53201, 23, 6528, 3642, 9969, 1340, 136, 903, 1528, 30607, 163, 62822, 98441, 442 ]
[ 0.10980224609375, 0.1461181640625, 0.225830078125, 0.2191162109375, 0.28955078125, 0.254638671875, 0.004058837890625, 0.1832275390625, 0.042694091796875, 0.0635986328125, 0.004207611083984375, 0.05169677734375, 0.1788330078125, 0.005298614501953125, 0.041015625, 0.0555419921875, 0.13...
embed
59293747_c0
59293747
prolog
0
Title: how to compare elements of a lists in prolog Problem title: how to compare elements of a lists in prolog Tags: prolog Problem: how to compare elements of a lists in prolog how do you compare two lists to see if then are different ?- compare_lists(X,Y). Code signals: compare_lists
how to compare elements of a lists in prolog how to compare elements of a lists in prolog prolog compare_lists how to compare elements of a lists in prolog how do you compare two lists to see if then are different
[ 0.002166748046875, -0.0103759765625, -0.005706787109375, 0.0068359375, -0.0213623046875, 0.0130615234375, 0.0167236328125, 0.0111083984375, 0.016845703125, 0.003814697265625, 0.01904296875, 0.00634765625, 0.00860595703125, 0.01104736328125, 0.0064697265625, -0.01165771484375, 0.01831...
[ 3642, 47, 69101, 80854, 5303, 7, 502, 4867, 111, 6562, 6626, 1957, 2174, 12921 ]
[ 0.024932861328125, 0.033905029296875, 0.2017822265625, 0.177734375, 0.1929931640625, 0.050201416015625, 0.1322021484375, 0.189697265625, 0.0341796875, 0.200927734375, 0.03607177734375, 0.057708740234375, 0.0007686614990234375, 0.1314697265625 ]
embed
28786979_c0
28786979
prolog
0
Title: Prolog checking the database Problem title: Prolog checking the database Tags: prolog Problem: Prolog checking the database Is it possible to go through the database and check if any form of Predicate(Atom) exists by using the preicate isInData(Predicate,Atom)? Code signals: Prolog
Prolog checking the database Prolog checking the database prolog Prolog Prolog checking the database Is it possible to go through the database and check if any form of Predicate(Atom) exists by using the preicate isInData(Predicate,Atom)?
[ 0.026123046875, 0.0067138671875, 0.0040283203125, 0.0172119140625, -0.0042724609375, 0.0228271484375, 0.017578125, 0.00061798095703125, -0.00469970703125, -0.050537109375, 0.0133056640625, -0.01275634765625, 0, -0.02392578125, 0.0019683837890625, 0.01019287109375, 0.0250244140625, ...
[ 1250, 4867, 175199, 63399, 70, 502, 7722, 738, 8305, 12765, 2174, 3173, 7145, 2063, 67, 12078, 32316, 7, 17368, 479, 83, 4153, 137989, 19273, 18601 ]
[ 0.1669921875, 0.2401123046875, 0.1728515625, 0.2322998046875, 0.033966064453125, 0.11712646484375, 0.099853515625, 0.05181884765625, 0.07879638671875, 0.1668701171875, 0.0673828125, 0.1146240234375, 0.162109375, 0.1790771484375, 0.150390625, 0.23291015625, 0.1387939453125, 0.036132...
embed
6211518_c0
6211518
prolog
0
Title: Tutorial/example prolog binary-trees Problem title: Tutorial/example prolog binary-trees Tags: prolog, binary-tree Problem: Tutorial/example prolog binary-trees I am searching for a tutorial/example on creating and searching binary trees in prolog. please help thanks Code signals: Tutorial
Tutorial/example prolog binary-trees Tutorial/example prolog binary-trees prolog binary-tree Tutorial Tutorial/example prolog binary-trees I am searching for a tutorial/example on creating and searching binary trees in prolog. please help thanks
[ 0.05615234375, 0.0181884765625, -0.004119873046875, -0.00185394287109375, 0.005584716796875, 0.023193359375, -0.01373291015625, -0.021484375, 0.0031890869140625, -0.038330078125, -0.01190185546875, -0.0191650390625, -0.00189971923828125, 0.0233154296875, 0.0240478515625, 0.008056640625...
[ 183447, 3355, 11, 33209, 502, 4867, 2394, 6635, 2921, 90, 62600, 157318, 57143, 105233, 1360 ]
[ 0.15185546875, 0.0423583984375, 0.06683349609375, 0.0592041015625, 0.1533203125, 0.1959228515625, 0.158447265625, 0.105224609375, 0.2015380859375, 0.07666015625, 0.2249755859375, 0.126953125, 0.119384765625, 0.06298828125, 0.1903076171875 ]
embed
6669230_c0
6669230
prolog
0
Title: Prolog Cut Query Problem title: Prolog Cut Query Tags: prolog-cut, prolog Problem: Prolog Cut Query In Prolog using the cut. Why is the effect of the following query to return the following: ?- !,false. no yet this query returns the following: ?- !;false. yes Code signals: Prolog, Cut, Query
Prolog Cut Query Prolog Cut Query prolog-cut prolog Prolog Cut Query Prolog Cut Query In Prolog using the cut. Why is the effect of the following query to return the following: yet this query returns the following:
[ 0.04052734375, 0.03369140625, 0.012451171875, 0.01953125, -0.01116943359375, 0.010009765625, -0.002685546875, -0.004364013671875, 0.0038299560546875, -0.0093994140625, -0.0113525390625, -0.00640869140625, -0.009521484375, -0.00006103515625, 0.0086669921875, -0.00157928466796875, -0.0...
[ 1250, 4867, 3003, 18, 58836, 53, 502, 19774, 360, 17368, 70, 59226, 44084, 83, 21543, 25632, 41, 1294, 30646, 14373, 903 ]
[ 0.168701171875, 0.255126953125, 0.2261962890625, 0.128173828125, 0.2008056640625, 0.10137939453125, 0.12841796875, 0.2325439453125, 0.049835205078125, 0.1141357421875, 0.07318115234375, 0.2213134765625, 0.078125, 0.02459716796875, 0.1881103515625, 0.11163330078125, 0.1329345703125, ...
embed
21427425_c1
21427425
prolog
1
right behavior is like this: ?- insert([2,3], 1, Q). Q = [1, 2, 3] ; Q = [2, 1, 3] ; Q = [2, 3, 1]. So, the second checkable should actually be (fact "Inserting works" (run* [q] (insert 1 [2 3] q)) => '((1 2 3) (2 1 3) (2 3 1))) Code signals: Prolog, Translating, core.logic, Inserting, clojure-core.logic
right behavior is like this: ?- insert([2,3], 1, Q). Q = [1, 2, 3] ; Q = [2, 1, 3] ; Q = [2, 3, 1]. So, the second checkable should actually be (fact "Inserting works" (run* [q] (insert 1 [2 3] q)) => '((1 2 3) (2 1 3) (2 3 1))) Code signals: Prolog, Translating, core.logic, Inserting, clojure-core.logic
[ 0.00408935546875, -0.01239013671875, 0.0123291015625, 0.0206298828125, -0.02294921875, 0.01556396484375, -0.029296875, -0.035888671875, 0.0196533203125, -0.037841796875, 0.00830078125, -0.006622314453125, -0.01226806640625, -0.0115966796875, 0.004364013671875, 0.00860595703125, -0.00...
[ 7108, 123166, 83, 1884, 903, 705, 9, 183540, 132, 155761, 106, 2396, 2203, 116, 138, 304, 17932, 12765, 2886, 5608, 20653, 186, 114700, 4153, 2189, 1916, 43240, 16428, 1639, 864, 73, 33657, 8096, 44357, 41600, 8439, 4700, 32149, 28864, 26...
[ 0.2403564453125, 0.232177734375, 0.0179595947265625, 0.09521484375, 0.046112060546875, 0.054046630859375, 0.0268096923828125, 0.288330078125, 0.055419921875, 0.172607421875, 0.06353759765625, 0.16943359375, 0.05718994140625, 0.05242919921875, 0.2069091796875, 0.0518798828125, 0.15258...
embed
30914067_c0
30914067
prolog
0
Title: Get operator operands Problem title: Get operator operands Tags: list, operators, prolog Problem: Get operator operands I have list: List = [a=3, b=2, c=0]. For example, first element a=3 , how can I get value Left = a , Right = 3 . Left side is atom and right side is number. Code signals: Get, List
Get operator operands Get operator operands list operators prolog Get List Get operator operands I have list: For example, first element a=3 , how can I get value Left = a , Right = 3 . Left side is atom and right side is number.
[ 0.032470703125, -0.00738525390625, 0.0263671875, 0.0140380859375, 0.004241943359375, 0.01519775390625, 0.01092529296875, 0.0264892578125, 0.0022125244140625, -0.0164794921875, 0.01806640625, -0.0262451171875, 0.0038909912109375, -0.01025390625, 0.005859375, 0.009033203125, -0.0144653...
[ 20779, 39933, 6264, 2208, 7, 5303, 502, 4867, 32036, 87, 765, 1326, 27781, 5117, 12830, 10, 76067, 3642, 831, 2046, 34292, 636, 2480, 2203, 90911, 138, 5609, 34627, 7108, 83, 14012 ]
[ 0.1495361328125, 0.265380859375, 0.19482421875, 0.1856689453125, 0.0780029296875, 0.1741943359375, 0.09716796875, 0.174560546875, 0.1668701171875, 0.0027904510498046875, 0.025146484375, 0.03515625, 0.0226898193359375, 0.095703125, 0.1861572265625, 0.11029052734375, 0.193359375, 0.0...
embed
8351918_c0
8351918
prolog
0
Title: Could you recommend a NLP toolkit in Prolog? Problem title: Could you recommend a NLP toolkit in Prolog? Tags: nlp, prolog Problem: Could you recommend a NLP toolkit in Prolog? I need to parse or tokenize English sentences. Is there any NLP toolkit in Prolog? Thanks. Code signals: Could, NLP, Prolog
Could you recommend a NLP toolkit in Prolog? Could you recommend a NLP toolkit in Prolog? nlp prolog Could NLP Prolog Could you recommend a NLP toolkit in Prolog? I need to parse or tokenize English sentences. Is there any NLP toolkit in Prolog? Thanks.
[ 0.023193359375, 0.0296630859375, 0.0012359619140625, 0.00787353515625, 0.0135498046875, 0.024658203125, -0.00074005126953125, -0.0025634765625, -0.016845703125, -0.033935546875, -0.00072479248046875, 0.0037384033203125, -0.01025390625, -0.00933837890625, 0.0162353515625, 0.008117675781...
[ 191147, 67330, 10, 541, 37352, 55516, 9488, 23, 1250, 4867, 653, 26775, 502, 3871, 366, 184, 47, 1098, 20650, 14941, 149357, 2685, 2499, 5 ]
[ 0.11328125, 0.10296630859375, 0.08966064453125, 0.10687255859375, 0.272216796875, 0.1976318359375, 0.232177734375, 0.0872802734375, 0.169677734375, 0.24267578125, 0.0231170654296875, 0.19189453125, 0.145751953125, 0.06610107421875, 0.12353515625, 0.08172607421875, 0.07000732421875, ...
embed
13168178_c0
13168178
prolog
0
Title: printing matrix in a separate line Problem title: printing matrix in a separate line Tags: prolog Problem: printing matrix in a separate line I want to print matrix, each row in a separate line, for example ?- print_matrix([[a,b,c],[d,e,f]]). And i want to get [a,b,c] [d,e,f] Code signals: print_matrix
printing matrix in a separate line printing matrix in a separate line prolog print_matrix printing matrix in a separate line I want to print matrix, each row in a separate line, for example And i want to get
[ -0.0098876953125, -0.0037078857421875, 0.0205078125, -0.004364013671875, -0.00848388671875, 0.005462646484375, 0.00145721435546875, 0.0185546875, -0.0008087158203125, -0.00823974609375, -0.00341796875, -0.0264892578125, 0.004425048828125, -0.00836181640625, -0.0267333984375, 0.00747680...
[ 2448, 1916, 50944, 425, 23, 84797, 13315, 10, 502, 4867, 28412, 192, 87427, 3444, 12638, 15555, 27781, 2046 ]
[ 0.1396484375, 0.0634765625, 0.1646728515625, 0.0655517578125, 0.0963134765625, 0.1767578125, 0.1585693359375, 0.0254364013671875, 0.0977783203125, 0.13916015625, 0.1788330078125, 0.08355712890625, 0.13916015625, 0.053314208984375, 0.024566650390625, 0.12054443359375, 0.04006958007812...
embed
32342312_c0
32342312
prolog
0
Title: How can I start this program in prolog? Problem title: How can I start this program in prolog? Tags: expert-system, prolog Problem: How can I start this program in prolog? The source is here ( source ) I though was with bird(X). But I think I need something more. Thank you in advance. Code signals: How
How can I start this program in prolog? How can I start this program in prolog? expert-system prolog How How can I start this program in prolog? The source is here ( source ) I though was with bird(X). But I think I need something more. Thank you in advance.
[ 0.0018310546875, 0.00311279296875, -0.002105712890625, 0.0216064453125, -0.007598876953125, 0.021728515625, -0.005035400390625, 0.0074462890625, 0.001861572265625, -0.0810546875, 0.0125732421875, 0.0030975341796875, -0.0240478515625, -0.00506591796875, 0.0167236328125, -0.02392578125, ...
[ 11249, 831, 87, 4034, 903, 1528, 23, 502, 4867, 26808, 9, 16751, 31344, 3688, 21208, 678, 263, 71, 132, 1542, 5351, 3871, 1286, 129745 ]
[ 0.103515625, 0.1240234375, 0.0782470703125, 0.2200927734375, 0.1409912109375, 0.209228515625, 0.1494140625, 0.1805419921875, 0.26806640625, 0.224609375, 0.045318603515625, 0.1895751953125, 0.177978515625, 0.021728515625, 0.074462890625, 0.10791015625, 0.1864013671875, 0.09613037109...
embed
41280328_c0
41280328
prolog
0
Title: query prolog with php Problem title: query prolog with php Tags: php, prolog Problem: query prolog with php <body> <div id="content"> <?php Code signals: Parse, T_STRING, Sudoku, index.php, DOCTYPE, www.w3.org, Content-Type, utf-8, Soduku, style.css, Program, Files, x86, swipl-win.exe, test.pl, print_r
query prolog with php query prolog with php php prolog Parse T_STRING Sudoku index.php DOCTYPE www.w3.org Content-Type utf-8 Soduku style.css Program Files x86 swipl-win.exe test.pl print_r query prolog with php i am trying to make a sudoku game with php, html and prolog, the idea is to use prolog program to slove the ...
[ 0.026611328125, 0.01165771484375, 0.00811767578125, 0.0181884765625, -0.00860595703125, 0.0087890625, -0.011962890625, -0.010009765625, 0.005126953125, -0.054443359375, 0.0244140625, 0.00830078125, -0.01397705078125, 0.0036468505859375, 0.0242919921875, 0.01361083984375, 0.0087280273...
[ 41, 1294, 502, 4867, 678, 3958, 2392, 184, 384, 8545, 90345, 15334, 38067, 63262, 120959, 27143, 363, 1478, 70870, 196707, 17376, 1061, 693, 319, 20623, 4439, 7663, 42724, 15276, 2452, 2424, 9494, 46480, 3034, 28412, 42, 31577, 3249, 8932, ...
[ 0.143310546875, 0.1348876953125, 0.171142578125, 0.2442626953125, 0.09619140625, 0.25, 0.090087890625, 0.011077880859375, 0.07073974609375, 0.0210723876953125, 0.1968994140625, 0.1378173828125, 0.221435546875, 0.10107421875, 0.0699462890625, 0.128173828125, 0.08203125, 0.0593566894...
embed
66425561_c0
66425561
prolog
0
Title: Retaining values in Prolog Problem title: Retaining values in Prolog Tags: prolog, variable-assignment Problem: Retaining values in Prolog Can we say: Sum is 0. Sum is Sum + 2. in Prolog, if we want a value to be retained or want to keep making changes to that variable? Code signals: Retaining, Prolog, Sum
Retaining values in Prolog Retaining values in Prolog prolog variable-assignment Retaining Prolog Sum Retaining values in Prolog Can we say: in Prolog, if we want a value to be retained or want to keep making changes to that variable?
[ 0.017333984375, 0.015625, 0.024658203125, 0.01153564453125, -0.006744384765625, 0.01318359375, 0.00592041015625, 0.0137939453125, 0.021484375, 0.000759124755859375, 0.0062255859375, 0.012451171875, -0.00494384765625, -0.000682830810546875, 0.0400390625, 0.01263427734375, 0.0097045898...
[ 853, 102, 14653, 142424, 1250, 4867, 23, 502, 77336, 162, 31304, 36335, 5154, 2174, 3444, 34292, 47, 186, 10267, 122009, 707, 13695, 20662, 65572 ]
[ 0.098876953125, 0.1669921875, 0.060455322265625, 0.2012939453125, 0.1519775390625, 0.256103515625, 0.0538330078125, 0.0872802734375, 0.20849609375, 0.01214599609375, 0.1468505859375, 0.171875, 0.0916748046875, 0.04278564453125, 0.128662109375, 0.1976318359375, 0.04388427734375, 0.0...
embed
36522339_c0
36522339
prolog
0
Title: Split word in Prolog Problem title: Split word in Prolog Tags: string, character, split, prolog Problem: Split word in Prolog I am trying to split a word in characters in Prolog without using list. Is it possible? All the results from searches that I already saw use lists. Thanks Code signals: Split, Prolog
Split word in Prolog Split word in Prolog string character split prolog Split Prolog Split word in Prolog I am trying to split a word in characters in Prolog without using list. Is it possible? All the results from searches that I already saw use lists. Thanks
[ 0.001129150390625, 0.0024566650390625, -0.000362396240234375, 0.0196533203125, -0.0228271484375, 0.026123046875, 0.005950927734375, -0.00124359130859375, -0.006317138671875, -0.00732421875, -0.000037670135498046875, 0.003875732421875, -0.031982421875, 0.0157470703125, -0.005859375, 0.0...
[ 46474, 2565, 23, 1250, 4867, 79315, 62816, 65450, 502, 31577, 124850, 15490, 17368, 5303, 7722, 50339, 33938, 24124, 4527 ]
[ 0.2236328125, 0.1734619140625, 0.072021484375, 0.1614990234375, 0.2291259765625, 0.1138916015625, 0.10052490234375, 0.203125, 0.11956787109375, 0.05780029296875, 0.1490478515625, 0.033477783203125, 0.007221221923828125, 0.1368408203125, 0.08099365234375, 0.072021484375, 0.06530761718...
embed
5589155_c0
5589155
prolog
0
Title: Where should I start learning Prolog? Problem title: Where should I start learning Prolog? Tags: prolog Problem: Where should I start learning Prolog? I want to learn a bit of Prolog. Can anyone recommend a) a good, free implementation on Linux? And b) a good tutorial / cookbook? Code signals: Where, Prolog
Where should I start learning Prolog? Where should I start learning Prolog? prolog Where Prolog Where should I start learning Prolog? I want to learn a bit of Prolog. Can anyone recommend a) a good, free implementation on Linux? And b) a good tutorial / cookbook?
[ 0.0250244140625, 0.015869140625, 0.00946044921875, 0.01202392578125, -0.010009765625, 0.025390625, 0.009521484375, -0.016845703125, 0.00872802734375, -0.0361328125, 0.0133056640625, -0.0135498046875, -0.01104736328125, 0.019287109375, 0.0023956298828125, -0.00946044921875, -0.0196533...
[ 78662, 5608, 87, 4034, 52080, 1250, 4867, 502, 3444, 47, 30698, 4785, 111, 67330, 10, 4127, 4092, 208124, 98, 29908, 57143, 110309, 14137 ]
[ 0.12451171875, 0.1109619140625, 0.067626953125, 0.1533203125, 0.1715087890625, 0.2264404296875, 0.3193359375, 0.1671142578125, 0.05682373046875, 0.058624267578125, 0.142333984375, 0.10540771484375, 0.072998046875, 0.0511474609375, 0.004848480224609375, 0.03607177734375, 0.087890625, ...
embed
30260435_c0
30260435
prolog
0
Title: Define predicate in prolog Problem title: Define predicate in prolog Tags: list, prolog Problem: Define predicate in prolog I'm struggling with this one: Define predicate len_NM(L,N,M) which checks if a certain list of lists L contains at least N elements with length no less than M . Code signals: Define, len_NM
Define predicate in prolog Define predicate in prolog list prolog Define len_NM Define predicate in prolog I'm struggling with this one:
[ -0.01519775390625, 0.00872802734375, 0.005859375, 0.01068115234375, -0.00482177734375, 0.024169921875, 0.0240478515625, 0.0087890625, 0.0267333984375, -0.004425048828125, 0.01025390625, -0.0048828125, 0.01446533203125, -0.0137939453125, -0.00341796875, 0.016845703125, 0.031982421875,...
[ 262, 64552, 1653, 2063, 67, 502, 4867, 5303, 3098, 454, 70480, 23, 237875 ]
[ 0.017852783203125, 0.1412353515625, 0.1673583984375, 0.23876953125, 0.1424560546875, 0.1341552734375, 0.203369140625, 0.132080078125, 0.154052734375, 0.0182952880859375, 0.21826171875, 0.019622802734375, 0.10235595703125 ]
embed
40078740_c0
40078740
prolog
0
Title: Successor Arithmetic Prolog Mod function Problem title: Successor Arithmetic Prolog Mod function Tags: successor-arithmetics, prolog Problem: Successor Arithmetic Prolog Mod function How to write mod/3 function for successor arithmetic (Peano's Numbers) in prolog? Code signals: Successor, Arithmetic, Prolog, Mod
Successor Arithmetic Prolog Mod function Successor Arithmetic Prolog Mod function successor-arithmetics prolog Successor Arithmetic Prolog Mod Successor Arithmetic Prolog Mod function How to write mod/3 function for successor arithmetic (Peano's Numbers) in prolog?
[ 0.005096435546875, 0.003936767578125, 0.00543212890625, 0.005889892578125, 0.007720947265625, 0.017333984375, 0.0157470703125, 0.0233154296875, 0.001129150390625, -0.022705078125, -0.00360107421875, -0.005401611328125, -0.0009918212890625, -0.023681640625, 0.0220947265625, -0.005157470...
[ 144053, 748, 8962, 282, 1250, 4867, 16269, 32354, 1172, 39457, 42, 502, 33022, 2811, 18113, 187, 9523, 18144, 3922, 25, 103332 ]
[ 0.19775390625, 0.15283203125, 0.1282958984375, 0.08349609375, 0.1495361328125, 0.22314453125, 0.2359619140625, 0.211669921875, 0.0066375732421875, 0.21240234375, 0.11639404296875, 0.137451171875, 0.1397705078125, 0.21533203125, 0.2191162109375, 0.0068206787109375, 0.01551055908203125...
embed
27647635_c1
27647635
prolog
1
2.0, Xtest is C + Xhalf, Xtest \= C, !, format("~e/2.0 = ~20f\n",[Xhalf,Xtest]), erecur(C,Xhalf,E). erecur(C,X,X) :- Xhalf is X / 2.0, Xtest is C + Xhalf, Xtest = C, format("~e",[X]). Then: ?- efloat(1,X). X = 2.220446049250313e-16. Code signals: What, Prolog, BigDecimal, planck_float, planck_float_descent, Xhalf, Xtes...
2.0, Xtest is C + Xhalf, Xtest \= C, !, format("~e/2.0 = ~20f\n",[Xhalf,Xtest]), erecur(C,Xhalf,E). erecur(C,X,X) :- Xhalf is X / 2.0, Xtest is C + Xhalf, Xtest = C, format("~e",[X]). Then: ?- efloat(1,X). X = 2.220446049250313e-16. Code signals: What, Prolog, BigDecimal, planck_float, planck_float_descent, Xhalf, Xtes...
[ 0.013916015625, -0.01129150390625, 0.00726318359375, -0.0002880096435546875, 0.0208740234375, 0.014892578125, -0.00775146484375, -0.01104736328125, 0.0206298828125, 0.016845703125, 0.0113525390625, 0.004730224609375, -0.0172119140625, -0.000942230224609375, 0.021484375, -0.006042480468...
[ 16655, 1193, 6954, 83, 313, 997, 4200, 420, 6, 1369, 711, 4, 9384, 2306, 13, 64, 73011, 2203, 1549, 1542, 3657, 16820, 441, 647, 194, 15772, 248, 705, 9, 28, 52347, 257, 41187, 147758, 158332, 12977, 24291, 2681, 13528, 5, 28864, 2607...
[ 0.26123046875, 0.173095703125, 0.3251953125, 0.0843505859375, 0.076171875, 0.16064453125, 0.1783447265625, 0.16015625, 0.021148681640625, 0.0241851806640625, 0.085205078125, 0.03851318359375, 0.1962890625, 0.021881103515625, 0.0865478515625, 0.0172882080078125, 0.214111328125, 0.08...
embed
19731393_c0
19731393
prolog
0
Title: How to do an iteration by 3 Problem title: How to do an iteration by 3 Tags: prolog Problem: How to do an iteration by 3 I want to do a program that goes from 1 to 9 but iterating by 3 like this: for(i = 0; i < 9; i+=3); I only know: between(1,9,K),Z is K+3,between(K,Z,P) But this doesn't works. Code signals: Ho...
How to do an iteration by 3 How to do an iteration by 3 prolog How How to do an iteration by 3 I want to do a program that goes from 1 to 9 but iterating by 3 like this: I only know: But this doesn't works.
[ -0.0020904541015625, -0.00775146484375, -0.0189208984375, -0.0037841796875, -0.0186767578125, 0.0167236328125, -0.008056640625, 0.0186767578125, -0.00063323974609375, -0.07568359375, -0.000522613525390625, -0.01446533203125, -0.00775146484375, 0.00011205673217773438, 0.0067138671875, 0...
[ 11249, 47, 54, 142, 17, 720, 2320, 390, 138, 502, 4867, 3444, 1528, 60899, 1295, 106, 483, 1284, 67, 98767, 1884, 903, 4734, 3714, 4966, 22027, 18, 43240 ]
[ 0.107421875, 0.11126708984375, 0.1412353515625, 0.0943603515625, 0.1082763671875, 0.27001953125, 0.1571044921875, 0.16357421875, 0.271728515625, 0.1842041015625, 0.216552734375, 0.07830810546875, 0.162841796875, 0.055206298828125, 0.0626220703125, 0.06402587890625, 0.169677734375, ...
embed
28305624_c0
28305624
prolog
0
Title: what are the semantics of datalog and prolog? Problem title: what are the semantics of datalog and prolog? Tags: datalog, prolog Problem: what are the semantics of datalog and prolog? Does datalog operate on sets or multisets? Does the same apply to prolog as well? I wasn't able to find any documentations on tha...
what are the semantics of datalog and prolog? what are the semantics of datalog and prolog? datalog prolog what are the semantics of datalog and prolog? Does datalog operate on sets or multisets? Does the same apply to prolog as well? I wasn't able to find any documentations on that.
[ 0.0260009765625, 0.01251220703125, 0.0115966796875, 0.0322265625, -0.01080322265625, 0.03515625, 0.007598876953125, -0.008056640625, -0.00135040283203125, -0.01434326171875, -0.0004520416259765625, 0.0035247802734375, -0.006805419921875, -0.00860595703125, -0.0029296875, 0.005249023437...
[ 484, 109109, 7, 2053, 4867, 136, 502, 111, 160404, 98, 5423, 6024, 3509, 209806 ]
[ 0.14599609375, 0.18212890625, 0.06890869140625, 0.1173095703125, 0.21435546875, 0.0753173828125, 0.1629638671875, 0.003170013427734375, 0.1258544921875, 0.02093505859375, 0.1343994140625, 0.08001708984375, 0.1260986328125, 0.0965576171875 ]
embed
30355726_c0
30355726
prolog
0
Title: Prolog lists transforming Problem title: Prolog lists transforming Tags: prolog Problem: Prolog lists transforming I want to transform a list in this format: C=[via(A,B,C,D),via(G,T,H,U),via(J,O,L,P)] into the following: F=[(C,D),(H,U),(L,P)] The letters from F correspond to the letters from C. Code signals: Pro...
Prolog lists transforming Prolog lists transforming prolog Prolog Prolog lists transforming I want to transform a list in this format: into the following: The letters from F correspond to the letters from C.
[ 0.0189208984375, -0.0004673004150390625, 0.00518798828125, 0.01263427734375, 0.003936767578125, -0.004791259765625, -0.02587890625, 0.0052490234375, -0.00836181640625, -0.007598876953125, 0.004364013671875, -0.031494140625, -0.0286865234375, 0.01116943359375, -0.009521484375, 0.0042724...
[ 1250, 4867, 5303, 27198, 214, 502, 87, 3444, 10, 903, 9384, 3934, 25632, 120820, 1295, 563, 42518, 47, 313 ]
[ 0.1502685546875, 0.22607421875, 0.228515625, 0.2330322265625, 0.0638427734375, 0.10308837890625, 0.004955291748046875, 0.0987548828125, 0.0171356201171875, 0.012359619140625, 0.166748046875, 0.082763671875, 0.0791015625, 0.1572265625, 0.036376953125, 0.197998046875, 0.1519775390625, ...
embed
16898156_c0
16898156
prolog
0
Title: How to concatenate two atoms/strings? Problem title: How to concatenate two atoms/strings? Tags: prolog Problem: How to concatenate two atoms/strings? I'm trying to find out how to concatenate two atoms: A = 'my ', B = 'atom', How can I concatenate these two atoms so that the result is: 'my atom' ? Code signals:...
How to concatenate two atoms/strings? How to concatenate two atoms/strings? prolog How How to concatenate two atoms/strings? I'm trying to find out how to concatenate two atoms: How can I concatenate these two atoms so that the result is: ?
[ 0.0262451171875, 0.00024127960205078125, 0.002197265625, 0.0400390625, -0.00154876708984375, 0.02099609375, -0.00153350830078125, 0.018310546875, 0.0007171630859375, -0.049560546875, 0.015869140625, -0.00775146484375, 0.00176239013671875, -0.008544921875, -0.0086669921875, -0.020141601...
[ 11249, 47, 158, 33478, 76, 67, 6626, 34627, 7, 64, 91693, 32, 502, 4867, 31577, 7413, 1810, 3642, 831, 87, 6097, 221, 16750, 83, 12, 705 ]
[ 0.1219482421875, 0.099365234375, 0.12255859375, 0.1837158203125, 0.143798828125, 0.09039306640625, 0.1629638671875, 0.2210693359375, 0.0518798828125, 0.0809326171875, 0.1988525390625, 0.003368377685546875, 0.061767578125, 0.11029052734375, 0.04827880859375, 0.0221405029296875, 0.0182...
embed
56302041_c0
56302041
prolog
0
Title: Function to Reply a specific index value Problem title: Function to Reply a specific index value Tags: prolog Problem: Function to Reply a specific index value I want a Function to enter X, Y for a particular object and then give me a value in this X and Y. value(X,Y):-return saved value in(X,Y). Code signals: R...
Function to Reply a specific index value Function to Reply a specific index value prolog Reply Function to Reply a specific index value I want a Function to enter X, Y for a particular object and then give me a value in this X and Y. value(X,Y):-return saved value in(X,Y).
[ 0.0002956390380859375, 0.000698089599609375, 0.0120849609375, 0.01220703125, -0.01470947265625, 0.0086669921875, -0.003753662109375, -0.0029754638671875, 0.01300048828125, 0.0005340576171875, -0.01007080078125, 0.0019073486328125, -0.031982421875, 0.0162353515625, 0.033447265625, 0.003...
[ 28670, 10763, 47, 122813, 10, 29458, 63262, 34292, 502, 4867, 3444, 30957, 1193, 4, 990, 100, 17311, 36746, 8337, 163, 23, 903, 136, 1542, 1723, 65395, 19, 57, 4126 ]
[ 0.17919921875, 0.1522216796875, 0.1572265625, 0.266845703125, 0.068603515625, 0.241455078125, 0.22021484375, 0.227783203125, 0.1083984375, 0.1551513671875, 0.1439208984375, 0.1759033203125, 0.0733642578125, 0.0350341796875, 0.137939453125, 0.047515869140625, 0.1253662109375, 0.1633...
embed
63716046_c2
63716046
prolog
2
daughter]) ? creep Call: (14) parent(daughter, daughter) ? creep Fail: (14) parent(daughter, daughter) ? creep Fail: (13) isChild(daughter, daughter, [grandma, Code signals: Recursively, Prolog, Lineage, NewLineage, Call, _12442, lists:append, _12904, Exit, _13040, _13136, _13272, _13368, _13510, Fail, _13554, Redo, _...
daughter]) ? creep Call: (14) parent(daughter, daughter) ? creep Fail: (14) parent(daughter, daughter) ? creep Fail: (13) isChild(daughter, daughter, [grandma, Code signals: Recursively, Prolog, Lineage, NewLineage, Call, _12442, lists:append, _12904, Exit, _13040, _13136, _13272, _13368, _13510, Fail, _13554, Redo, _...
[ 0.010986328125, 0.009765625, 0.020263671875, 0.0223388671875, 0.00107574462890625, 0.0164794921875, 0.00946044921875, 0.008056640625, 0.0201416015625, -0.01123046875, -0.0306396484375, -0.003631591796875, -0.0267333984375, 0.035400390625, 0.0245361328125, -0.02392578125, 0.0135498046...
[ 76849, 268, 16, 705, 49512, 254, 26265, 12, 31203, 49129, 132, 85, 46526, 56, 4, 190355, 28261, 83, 441, 102656, 79139, 192, 28864, 26073, 7, 853, 48650, 5844, 1250, 4867, 16777, 4588, 2356, 93232, 1530, 161041, 5303, 9007, 3611, 117595, ...
[ 0.257568359375, 0.029876708984375, 0.024749755859375, 0.055023193359375, 0.1927490234375, 0.1356201171875, 0.18896484375, 0.025543212890625, 0.163818359375, 0.2083740234375, 0.0662841796875, 0.0989990234375, 0.1832275390625, 0.14306640625, 0.0601806640625, 0.1640625, 0.1243896484375,...
embed
7436614_c0
7436614
prolog
0
Title: Prolog length of a list Problem title: Prolog length of a list Tags: prolog, list Problem: Prolog length of a list How can I calculate the length of a list ?- size_sub([[b,a,g], [9,3,7,4], [6]], X). X = [3, 4, 1]. ?- size_sub([[c,g,e,w], [7]], X). X = [4, 1]. ?- size_sub([], X). X = []. Code signals: Prolog, siz...
Prolog length of a list Prolog length of a list prolog list Prolog size_sub Prolog length of a list How can I calculate the length of a list
[ 0.012939453125, 0.01513671875, 0.0281982421875, 0.0181884765625, -0.0234375, -0.006561279296875, 0.002960205078125, 0.02880859375, 0.03955078125, -0.02294921875, -0.00012874603271484375, 0.0018768310546875, 0.01422119140625, 0.01708984375, 0.007720947265625, -0.011474609375, 0.025512...
[ 1250, 4867, 140909, 111, 5303, 502, 13267, 22144, 11249, 831, 87, 74481, 67, 70, 10 ]
[ 0.16259765625, 0.250732421875, 0.2403564453125, 0.0943603515625, 0.2452392578125, 0.1138916015625, 0.1317138671875, 0.15380859375, 0.0089569091796875, 0.019866943359375, 0.011871337890625, 0.1773681640625, 0.0848388671875, 0.0462646484375, 0.01507568359375 ]
embed
20954389_c1
20954389
prolog
1
2013-03-15 true ; 2013-03-23 true ; 2013-03-23 true ; 2013-07-23 true ; 2013-07-23 true ; 2012-05-17 true ; 2012-05-17 true ; 2012-08-05 true ; 2012-08-05 true ; false. Another thing I don't get is why the dates are printed out twice. Thanks in advance. Code signals: dates, Creating, parse_time, iso_8601, DateCode, Dat...
2013-03-15 true ; 2013-03-23 true ; 2013-03-23 true ; 2013-07-23 true ; 2013-07-23 true ; 2012-05-17 true ; 2012-05-17 true ; 2012-08-05 true ; 2012-08-05 true ; false. Another thing I don't get is why the dates are printed out twice. Thanks in advance. Code signals: dates, Creating, parse_time, iso_8601, DateCode, Dat...
[ 0.01806640625, 0.0029144287109375, 0.00151824951171875, 0.0244140625, -0.0115966796875, 0.0028228759765625, -0.0108642578125, 0.027099609375, 0.01422119140625, 0.03515625, -0.0115966796875, -0.004730224609375, 0.005889892578125, 0.01080322265625, -0.0206298828125, -0.0023345947265625, ...
[ 1210, 37151, 1837, 29568, 2819, 3742, 44727, 1324, 52288, 2489, 47355, 8194, 98320, 5, 2301, 25, 18, 2046, 15400, 70, 112474, 621, 28412, 297, 1810, 186351, 22362, 23, 129745, 28864, 26073, 7, 12, 56781, 1916, 366, 184, 6032, 13882, 15276...
[ 0.200439453125, 0.130859375, 0.1307373046875, 0.1875, 0.0823974609375, 0.116455078125, 0.0931396484375, 0.1363525390625, 0.115966796875, 0.06524658203125, 0.1376953125, 0.1455078125, 0.2196044921875, 0.124267578125, 0.0667724609375, 0.05322265625, 0.0716552734375, 0.09954833984375,...
embed
13864793_c0
13864793
prolog
0
Title: How can i count atoms Prolog? Problem title: How can i count atoms Prolog? Tags: logic, prolog Problem: How can i count atoms Prolog? how can I solve this problem?? Input: count_atoms(T,Count) Output count_atoms(a(b,c(d,e),f),Count). Count = 4 ; I really have no idea... Please can you help me?? Code signals: How...
How can i count atoms Prolog? How can i count atoms Prolog? logic prolog How Prolog How can i count atoms Prolog? how can I solve this problem?? Input: count_atoms(T,Count) Output count_atoms(a(b,c(d,e),f),Count). Count = 4 ; I really have no idea... Please can you help me??
[ 0.015869140625, 0.011474609375, -0.00982666015625, 0.0224609375, -0.0032806396484375, 0.011474609375, -0.006317138671875, -0.00390625, -0.01092529296875, -0.0478515625, 0.003753662109375, -0.0250244140625, 0.0233154296875, 0.0238037109375, 0.030029296875, -0.00750732421875, -0.005554...
[ 11249, 831, 17, 54529, 34627, 7, 1250, 4867, 32, 62775, 502, 3642, 86869, 903, 2967, 4767, 360, 7077, 257, 28016, 618, 108210, 13538, 11, 275, 238, 71, 420, 2203, 201, 6183, 765, 110, 6528, 30607, 4358 ]
[ 0.1119384765625, 0.1102294921875, 0.1234130859375, 0.224853515625, 0.25341796875, 0.11083984375, 0.193359375, 0.252197265625, 0.00079345703125, 0.1292724609375, 0.1168212890625, 0.0767822265625, 0.1141357421875, 0.004364013671875, 0.0853271484375, 0.0231475830078125, 0.05474853515625...
embed
54054184_c0
54054184
prolog
0
Title: What is meant by the following two lines? Problem title: What is meant by the following two lines? Tags: prolog Problem: What is meant by the following two lines? adjacent(X, Y) :- X =:= Y+1. adjacent(X, Y) :- X =:= Y-1. What do these mean? I know what the operator \= means. Is it similar to that? Code signals: ...
What is meant by the following two lines? What is meant by the following two lines? prolog What Y-1 What is meant by the following two lines? What do these mean? I know what the operator \= means. Is it similar to that?
[ 0.00360107421875, -0.0108642578125, 0.007720947265625, 0.028076171875, 0.005706787109375, 0.011474609375, 0.01806640625, 0.02685546875, 0.0087890625, 0.005401611328125, -0.01373291015625, 0.011962890625, -0.00885009765625, 0.006500244140625, 0.0115966796875, 0.0001621246337890625, 0....
[ 4865, 83, 131148, 390, 25632, 6626, 124519, 502, 4867, 990, 5759, 54, 6097, 29459, 3714, 39933, 41872, 1369, 26950, 21373 ]
[ 0.05389404296875, 0.05535888671875, 0.1563720703125, 0.09967041015625, 0.1444091796875, 0.1204833984375, 0.1663818359375, 0.1552734375, 0.2066650390625, 0.1767578125, 0.1873779296875, 0.0268707275390625, 0.061981201171875, 0.1295166015625, 0.03546142578125, 0.2095947265625, 0.1346435...
embed
4769536_c0
4769536
prolog
0
Title: cut processing in prolog Problem title: cut processing in prolog Tags: prolog Problem: cut processing in prolog can somebody please explain the processing of the following command: max(X,Y,Max) :- X >= Y, !, Max = X ; Max = Y. I can't understand, what exactly does it mean ! in the middle, thanks in advance Code ...
cut processing in prolog cut processing in prolog prolog Max cut processing in prolog can somebody please explain the processing of the following command: I can't understand, what exactly does it mean ! in the middle, thanks in advance
[ 0.02587890625, 0.01708984375, 0.039306640625, 0.0159912109375, -0.00732421875, 0.0218505859375, 0.006988525390625, 0.0201416015625, 0.0004520416259765625, 0.006011962890625, -0.005279541015625, 0.005615234375, -0.001922607421875, -0.03662109375, 0.0191650390625, -0.00482177734375, -0...
[ 59226, 9433, 214, 23, 502, 4867, 9920, 176256, 22936, 73342, 111, 25632, 75101, 831, 18, 28219, 2367, 66161, 14602, 442, 29459, 711, 86991, 129745 ]
[ 0.259521484375, 0.177978515625, 0.08807373046875, 0.0992431640625, 0.1322021484375, 0.2044677734375, 0.20849609375, 0.0145111083984375, 0.008941650390625, 0.1473388671875, 0.009368896484375, 0.11968994140625, 0.229248046875, 0.047943115234375, 0.034393310546875, 0.112548828125, 0.042...
embed
9587121_c0
9587121
prolog
0
Title: Printing a list of IF conditions Problem title: Printing a list of IF conditions Tags: prolog Problem: Printing a list of IF conditions I have a number of Prolog conditions like this: if has(X,Y) then need(X,Z). Is there any way in which I could write a command to list all of these? Thanks in advance. Code signa...
Printing a list of IF conditions Printing a list of IF conditions prolog Printing Printing a list of IF conditions I have a number of Prolog conditions like this: Is there any way in which I could write a command to list all of these? Thanks in advance.
[ 0.01904296875, -0.0115966796875, -0.0037384033203125, 0.0228271484375, 0.0186767578125, 0.004058837890625, -0.00201416015625, 0.003021240234375, -0.004791259765625, 0.0103759765625, -0.000186920166015625, -0.026123046875, -0.0216064453125, 0.0191650390625, 0.003143310546875, 0.03149414...
[ 39754, 214, 5303, 55449, 27289, 10, 111, 502, 4867, 765, 14012, 1250, 1884, 903, 3917, 5809, 33022, 75101, 47, 756, 6097, 129745 ]
[ 0.198486328125, 0.06036376953125, 0.158447265625, 0.230712890625, 0.2425537109375, 0.007099151611328125, 0.04962158203125, 0.1263427734375, 0.2142333984375, 0.0165557861328125, 0.045074462890625, 0.1500244140625, 0.048919677734375, 0.0310211181640625, 0.028564453125, 0.0094680786132812...
embed
38376400_c0
38376400
prolog
0
Title: Swish import RDF Problem title: Swish import RDF Tags: swi-prolog-for-sharing, prolog, rdf, swi-prolog Problem: Swish import RDF Is it possible to import an rdf file from a URL into Swish? I.e. something like: myload:- load_rdf('www.myrdf.com'). Then I could query ?-rdf(A,B,C) Code signals: RDF, Swish, load_rdf,...
Swish import RDF Swish import RDF swi-prolog-for-sharing prolog rdf swi-prolog RDF Swish load_rdf www.myrdf.com Swish import RDF Is it possible to import an rdf file from a URL into Swish? I.e. something like: myload:- load_rdf('www.myrdf.com'). Then I could query ?-rdf(A,B,C)
[ 0.0024871826171875, 0.0220947265625, -0.007537841796875, 0.017333984375, -0.020263671875, -0.0135498046875, -0.0023345947265625, 0.0030975341796875, -0.0145263671875, -0.059814453125, 0.015869140625, -0.022216796875, -0.01446533203125, -0.02197265625, 0.0167236328125, -0.00196838378906...
[ 159, 114686, 24927, 627, 38997, 91, 2452, 3454, 4867, 2472, 2420, 2852, 502, 4216, 420, 72367, 1176, 442, 7722, 47, 11435, 1295, 31862, 3934, 759, 63033, 1574, 277, 5809, 41, 1294, 705, 284, 571, 441 ]
[ 0.143798828125, 0.31103515625, 0.2529296875, 0.1224365234375, 0.268798828125, 0.05560302734375, 0.220947265625, 0.09100341796875, 0.178955078125, 0.01263427734375, 0.10296630859375, 0.0797119140625, 0.08966064453125, 0.156982421875, 0.219970703125, 0.146240234375, 0.052276611328125, ...
embed
26856951_c2
26856951
prolog
2
1 SC1 = 3 SC2 = 1 SC1 = 3 SC2 = 1 SC1 = 3 SC2 = 1 SC1 = 3 SC2 = 2 % - number of matches for each player SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 yes % source_info Code signals: Counter, Player, Head, Tail, Counter1, Counter2, Symbol, StackCounter1, StackCounter2, SC1, SC2, Player...
1 SC1 = 3 SC2 = 1 SC1 = 3 SC2 = 1 SC1 = 3 SC2 = 1 SC1 = 3 SC2 = 2 % - number of matches for each player SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 SC1 = 0 SC2 = 0 yes % source_info Code signals: Counter, Player, Head, Tail, Counter1, Counter2, Symbol, StackCounter1, StackCounter2, SC1, SC2, Player...
[ -0.0030364990234375, 0.01361083984375, 0.01434326171875, 0.031005859375, 0.00164794921875, 0.0126953125, -0.004180908203125, 0.01171875, 0.0189208984375, -0.0038299560546875, 0.006011962890625, 0.01458740234375, 0.0181884765625, 0.007781982421875, 0.004486083984375, -0.0106201171875, ...
[ 106, 17715, 418, 2203, 138, 304, 116, 1745, 20, 14012, 14858, 100, 12638, 58585, 757, 72272, 31344, 7319, 28864, 26073, 7, 12, 197956, 4, 60560, 44816, 1218, 379, 131899, 6512, 2594, 108210, 56 ]
[ 0.09381103515625, 0.232421875, 0.1483154296875, 0.1236572265625, 0.2027587890625, 0.2291259765625, 0.05841064453125, 0.169189453125, 0.034759521484375, 0.1861572265625, 0.281982421875, 0.09521484375, 0.1392822265625, 0.2578125, 0.12255859375, 0.08612060546875, 0.1917724609375, 0.15...
embed
5949991_c0
5949991
prolog
0
Title: Prolog file manipulation Problem title: Prolog file manipulation Tags: file, predicate, prolog Problem: Prolog file manipulation I use swi prolog , I have a file like this, yeni(a,b,c). yeni(d,s,w). I try to make a new list which occur predicate column. Such as [a,d] [b,s] [c,w] Do you have any suggestion? Code ...
Prolog file manipulation Prolog file manipulation file predicate prolog Prolog Prolog file manipulation I use swi prolog , I have a file like this, I try to make a new list which occur predicate column. Such as Do you have any suggestion?
[ 0.0269775390625, -0.01092529296875, 0.0009918212890625, 0.01116943359375, -0.028564453125, 0.031982421875, 0.00518798828125, 0.016845703125, -0.0108642578125, -0.00982666015625, -0.0026397705078125, -0.006103515625, -0.03076171875, -0.0213623046875, -0.005767822265625, 0.0174560546875,...
[ 1250, 4867, 11435, 45258, 1363, 1653, 2063, 67, 502, 4527, 91, 2452, 765, 1884, 903, 9790, 3249, 3525, 5303, 74918, 3365, 316, 237, 199015 ]
[ 0.1678466796875, 0.23291015625, 0.1947021484375, 0.2137451171875, 0.033538818359375, 0.1717529296875, 0.212646484375, 0.06890869140625, 0.1419677734375, 0.061492919921875, 0.035675048828125, 0.198486328125, 0.004322052001953125, 0.03125, 0.006092071533203125, 0.0291595458984375, 0.01...
embed
65066544_c0
65066544
prolog
0
Title: Bracket Abstraction in Prolog Problem title: Bracket Abstraction in Prolog Tags: lambda, prolog Problem: Bracket Abstraction in Prolog The algorithm "A" according to Antoni Diller looks fairly simple: http://www.cantab.net/users/antoni.diller/brackets/intro.html Can we do this in Prolog? Code signals: Bracket, A...
Bracket Abstraction in Prolog Bracket Abstraction in Prolog lambda prolog Bracket Abstraction Prolog Bracket Abstraction in Prolog The algorithm "A" according to Antoni Diller looks fairly simple: http://www.cantab.net/users/antoni.diller/brackets/intro.html Can we do this in Prolog?
[ 0.00958251953125, -0.0003795623779296875, 0.00628662109375, -0.007232666015625, 0.004791259765625, -0.003448486328125, 0.0045166015625, 0.0107421875, 0.0142822265625, -0.011962890625, 0.004913330078125, -0.004547119140625, -0.02685546875, 0.01263427734375, 0.0125732421875, -0.020996093...
[ 6163, 27853, 233973, 1830, 1250, 4867, 23, 6492, 85, 502, 234873, 284, 42080, 11335, 603, 33342, 180663, 8781, 83738, 275, 33150, 2844, 143669, 4171, 54, 903 ]
[ 0.2056884765625, 0.232666015625, 0.237548828125, 0.0643310546875, 0.152587890625, 0.2437744140625, 0.041259765625, 0.11688232421875, 0.053375244140625, 0.08935546875, 0.2213134765625, 0.1446533203125, 0.0992431640625, 0.08514404296875, 0.1343994140625, 0.078857421875, 0.0183563232421...
embed
32937734_c0
32937734
prolog
0
Title: Can&#x27;t retractall()? Problem title: Can&#x27;t retractall()? Tags: prolog Problem: Can't retractall()? I have : :- dynamic blah/2. retractall(blah(_,_)). But I still get : No permission to modify static procedure `retractall/1' How can I delete all occurrence of blah() ? BTW it works in swipl console !! than...
Can&#x27;t retractall()? Can&#x27;t retractall()? prolog Can Can't retractall()? I have : But I still get : How can I delete all occurrence of blah() ? BTW it works in swipl console !! thanks
[ 0.01141357421875, -0.001007080078125, 0.027099609375, -0.00103759765625, 0.0003185272216796875, 0.000606536865234375, 0.0181884765625, 0.017822265625, -0.00102996826171875, -0.017578125, 0.00726318359375, 0.0015716552734375, -0.0145263671875, 0.0038299560546875, 0.0086669921875, -0.001...
[ 4171, 3768, 18, 41499, 238, 91569, 132, 502, 4867, 765, 7464, 2046, 11249, 831, 154109, 756, 74918, 42, 6620, 111, 9932, 127, 43240, 2452, 2424, 130250 ]
[ 0.13427734375, 0.074462890625, 0.122314453125, 0.2281494140625, 0.07574462890625, 0.28955078125, 0.106201171875, 0.1456298828125, 0.2086181640625, 0.0191497802734375, 0.056976318359375, 0.0268402099609375, 0.017364501953125, 0.054229736328125, 0.2197265625, 0.06842041015625, 0.084533...
embed
5202159_c0
5202159
prolog
0
Title: Prolog predicate check divisibility of numbers in a list Problem title: Prolog predicate check divisibility of numbers in a list Tags: prolog Problem: Prolog predicate check divisibility of numbers in a list example divisible([L1],X) :- L1 mod X =:= 0. query divisible([4,6,8,7],2). response [4,6,8] Any guidance?...
Prolog predicate check divisibility of numbers in a list Prolog predicate check divisibility of numbers in a list prolog Prolog Prolog predicate check divisibility of numbers in a list example query response Any guidance?
[ -0.005462646484375, -0.006072998046875, 0.00909423828125, -0.004180908203125, 0.0025482177734375, 0.0235595703125, 0.0027618408203125, 0.006927490234375, 0.00616455078125, -0.0184326171875, 0.003143310546875, -0.002593994140625, 0.01080322265625, -0.004547119140625, -0.0068359375, 0.01...
[ 1250, 4867, 1653, 2063, 12765, 45, 37712, 83259, 101935, 5303, 67, 23, 502, 27781, 41, 57553, 196219 ]
[ 0.135986328125, 0.201416015625, 0.12164306640625, 0.1636962890625, 0.1514892578125, 0.098876953125, 0.1568603515625, 0.10003662109375, 0.17431640625, 0.18408203125, 0.0134429931640625, 0.044708251953125, 0.1036376953125, 0.1068115234375, 0.06243896484375, 0.07012939453125, 0.11828613...
embed
19353198_c1
19353198
prolog
1
grade4(S4, S5, A4, A5, N+1). grade3(S3, S4, S5, A3, A4, A5, N):- \+ S3=A3, grade4(S4, S5, A4, A5, N). grade4(S4, S5, A4, A5, N):- S4=A4, grade5(S5, A5, N+1). grade4(S4, S5, A4, A5, N):- \+ S4=A4, grade5(S5, A5, N). grade5(S5, A5, N):- S5=A5, N is 1. grade5(S5, A5, N):- \+ S5=A5, N is 0. Code signals: Syntax, grade2, g...
grade4(S4, S5, A4, A5, N+1). grade3(S3, S4, S5, A3, A4, A5, N):- \+ S3=A3, grade4(S4, S5, A4, A5, N). grade4(S4, S5, A4, A5, N):- S4=A4, grade5(S5, A5, N+1). grade4(S4, S5, A4, A5, N):- \+ S4=A4, grade5(S5, A5, N). grade5(S5, A5, N):- S5=A5, N is 1. grade5(S5, A5, N):- \+ S5=A5, N is 0. Code signals: Syntax, grade2, g...
[ -0.014404296875, 0.0225830078125, 0.00445556640625, 0.01031494140625, -0.0118408203125, -0.02294921875, -0.0162353515625, 0.017822265625, 0.00909423828125, 0.0400390625, -0.00104522705078125, -0.01348876953125, -0.00396728515625, 0.0113525390625, -0.01434326171875, -0.005096435546875, ...
[ 44000, 617, 132, 294, 4, 159, 758, 62, 541, 21748, 194, 363, 2077, 9, 6, 1328, 1369, 284, 83, 615, 757, 5, 28864, 26073, 12, 19010, 86531, 304 ]
[ 0.271484375, 0.26611328125, 0.017669677734375, 0.1446533203125, 0.035858154296875, 0.149169921875, 0.2218017578125, 0.1490478515625, 0.1248779296875, 0.181884765625, 0.025970458984375, 0.2176513671875, 0.00531005859375, 0.012908935546875, 0.048675537109375, 0.16943359375, 0.081665039...
embed
50512673_c0
50512673
prolog
0
Title: Prolog variable as functor Problem title: Prolog variable as functor Tags: prolog Problem: Prolog variable as functor I want to create this prolog program: the user input - or +, if - the result is 3-2, else is 3+2. I wrote this program but the compiler gives me error. What can i do ? try(B):- read(A), B is A(3,...
Prolog variable as functor Prolog variable as functor prolog Prolog Prolog variable as functor I want to create this prolog program: the user input - or +, if - the result is 3-2, else is 3+2. I wrote this program but the compiler gives me error. What can i do ?
[ 0.0185546875, 0.004180908203125, -0.00191497802734375, 0.0025177001953125, 0.00927734375, 0.0223388671875, 0.00074005126953125, 0.00045013427734375, -0.00113677978515625, -0.034423828125, -0.000018835067749023438, -0.00885009765625, -0.01458740234375, -0.009033203125, 0.0137939453125, ...
[ 1250, 4867, 77336, 237, 7477, 18770, 502, 3444, 28282, 903, 1528, 38937, 107730, 20, 707, 997, 2174, 16750, 83, 151847, 37076, 138, 54651, 54397, 1284, 9969, 34759, 76199, 163, 18499, 831 ]
[ 0.1800537109375, 0.266357421875, 0.269775390625, 0.08642578125, 0.1961669921875, 0.19482421875, 0.174560546875, 0.09906005859375, 0.142333984375, 0.0290374755859375, 0.1805419921875, 0.1644287109375, 0.19970703125, 0.12493896484375, 0.033050537109375, 0.1754150390625, 0.1904296875, ...
embed
72973801_c0
72973801
prolog
0
Title: Seek to position in Prolog Problem title: Seek to position in Prolog Tags: swi-prolog, prolog Problem: Seek to position in Prolog Given this marker, what's the most efficient way of finding its position in a large binary file (~80Mb) metadata_marker("\xAB\xCD\xEFMaxMind.com"). Code signals: Seek, Prolog, metadat...
Seek to position in Prolog Seek to position in Prolog swi-prolog prolog Seek Prolog metadata_marker xEFMaxMind.com Seek to position in Prolog Given this marker, what's the most efficient way of finding its position in a large binary file (~80Mb)
[ 0.0203857421875, 0.01373291015625, 0.01214599609375, 0.00421142578125, -0.02978515625, 0.0244140625, 0.0068359375, 0.0113525390625, 0.0089111328125, -0.05224609375, 0.0260009765625, 0.0308837890625, -0.006744384765625, 0.00799560546875, 0.0257568359375, -0.0030059814453125, 0.0010604...
[ 503, 343, 47, 19069, 23, 1250, 4867, 91, 2452, 3454, 502, 23550, 10135, 10015, 56, 1022, 28482, 71346, 181123, 277, 903, 71323, 2684, 93766, 3917, 90791, 6863, 21334, 2394, 6635, 11435, 4836, 147197 ]
[ 0.1378173828125, 0.1329345703125, 0.1748046875, 0.2381591796875, 0.058380126953125, 0.1715087890625, 0.260986328125, 0.00504302978515625, 0.140625, 0.115478515625, 0.10687255859375, 0.1522216796875, 0.1409912109375, 0.15283203125, 0.035919189453125, 0.0618896484375, 0.1700439453125, ...
embed
65901043_c0
65901043
prolog
0
Title: Free Variable in Prolog Problem title: Free Variable in Prolog Tags: prolog, free-variable Problem: Free Variable in Prolog Can anyone explain the concept of free variables in Prolog. Is it similar to anonymous variables ? Or is there a difference. Also could be great if an example is given to explain. Code sign...
Free Variable in Prolog Free Variable in Prolog prolog free-variable Free Variable Prolog Free Variable in Prolog Can anyone explain the concept of free variables in Prolog. Is it similar to anonymous variables ? Or is there a difference. Also could be great if an example is given to explain.
[ 0.04052734375, 0.0096435546875, 0.00567626953125, 0.0072021484375, 0.009765625, -0.004913330078125, -0.0096435546875, 0.02880859375, -0.00604248046875, -0.00153350830078125, 0.00101470947265625, -0.0091552734375, -0.00445556640625, 0.026123046875, -0.004364013671875, 0.006561279296875,...
[ 5153, 84572, 2886, 1250, 4867, 23, 502, 4092, 21690, 73342, 23755, 77336, 7, 21373, 52184, 10821, 60212, 27781 ]
[ 0.202392578125, 0.217041015625, 0.162109375, 0.1358642578125, 0.2288818359375, 0.0235137939453125, 0.08050537109375, 0.2042236328125, 0.1707763671875, 0.1326904296875, 0.1434326171875, 0.28076171875, 0.1019287109375, 0.0478515625, 0.1385498046875, 0.05023193359375, 0.0821533203125, ...
embed
33072592_c0
33072592
prolog
0
Title: Compare lists of functors and unify variables Problem title: Compare lists of functors and unify variables Tags: expression-evaluation, unification, clpfd, prolog Problem: Compare lists of functors and unify variables Code signals: Compare, _G13544, _G13547, _G13553, _G13554, _G13559, _G13453, _G13430, _G13409, ...
Compare lists of functors and unify variables Compare lists of functors and unify variables expression-evaluation unification clpfd prolog Compare _G13544 _G13547 _G13553 _G13554 _G13559 _G13453 _G13430 _G13409 _G13355 _G13370 Equivalent Compare lists of functors and unify variables How can I verify if two lists repres...
[ 0.01104736328125, 0.01275634765625, 0.00823974609375, 0.0016326904296875, 0.004119873046875, -0.0172119140625, 0.003662109375, -0.0034637451171875, 0.024169921875, 0.01025390625, -0.007354736328125, 0.00274658203125, 0.0211181640625, 0.00274658203125, 0.0029754638671875, -0.01208496093...
[ 113307, 13, 5303, 7477, 18770, 136, 51, 40383, 77336, 125195, 159258, 41274, 33139, 39557, 71, 502, 4867, 171803, 188608, 158976, 163670, 160443, 154043, 114082, 1197, 6463, 104043, 71025, 145666, 85540, 831, 493, 2174, 6626, 33636, 5701, 76755...
[ 0.1842041015625, 0.018218994140625, 0.222900390625, 0.162841796875, 0.218994140625, 0.009857177734375, 0.1546630859375, 0.1602783203125, 0.21875, 0.1195068359375, 0.09100341796875, 0.07415771484375, 0.005218505859375, 0.039581298828125, 0.07049560546875, 0.05914306640625, 0.114257812...
embed
8218274_c0
8218274
prolog
0
Title: gprolog longest subset Problem title: gprolog longest subset Tags: prolog Problem: gprolog longest subset I have list of integers, I need to find the longest subset of ascending integers from the list. For example: [1,2,5,3,6,7,4] - longest subset would have been SS = [1,2,3,6,7] . Can anyone show me at least th...
gprolog longest subset gprolog longest subset prolog gprolog longest subset I have list of integers, I need to find the longest subset of ascending integers from the list. For example: [1,2,5,3,6,7,4] - longest subset would have been SS = [1,2,3,6,7] . Can anyone show me at least the main guides to achieve it.
[ 0.008056640625, 0.01312255859375, 0.00153350830078125, 0.005401611328125, -0.02294921875, 0.0050048828125, 0.002410888671875, 0.0174560546875, 0.01513671875, -0.028564453125, 0.01220703125, 0.0208740234375, -0.0125732421875, 0.00439453125, 0.0142822265625, -0.0027008056640625, 0.0074...
[ 706, 3454, 4867, 4989, 525, 1614, 3509, 502, 87, 765, 5303, 892, 26255, 3871, 47, 7413, 70, 111, 82800, 214, 1295, 27781, 68252, 71928, 363, 136555, 617, 2806, 2809, 29581, 2203, 155761, 4171, 35672, 7639, 163, 19713, 5201, 17997, 69307 ]
[ 0.0909423828125, 0.1861572265625, 0.233154296875, 0.192138671875, 0.186767578125, 0.2349853515625, 0.2398681640625, 0.1373291015625, 0.0273895263671875, 0.1192626953125, 0.1397705078125, 0.169921875, 0.15966796875, 0.0703125, 0.030609130859375, 0.1199951171875, 0.06243896484375, 0....
embed
26786318_c1
26786318
prolog
1
0. go(ZX,ZY,ZX,CY) :- CY is ZY - 1, not(wall(ZX,CY)), CY < 21, CY > 0. way :- entrance(X,Y) , east(S,K) , find_way( a(X,Y) , a(S,K) , [ ] ) . I have this: find_way(enter1(20,8),exit1(14,2), P). but when i use it, it fails. Can anybody tell me, how can I make it work, please? Code signals: Journey, Labyrinth, enter1, en...
0. go(ZX,ZY,ZX,CY) :- CY is ZY - 1, not(wall(ZX,CY)), CY < 21, CY > 0. way :- entrance(X,Y) , east(S,K) , find_way( a(X,Y) , a(S,K) , [ ] ) . I have this: find_way(enter1(20,8),exit1(14,2), P). but when i use it, it fails. Can anybody tell me, how can I make it work, please? Code signals: Journey, Labyrinth, enter1, en...
[ 0.004852294921875, 0.025390625, 0.0052490234375, -0.00347900390625, -0.0264892578125, 0.013916015625, -0.0289306640625, -0.0118408203125, 0.0220947265625, -0.033935546875, 0.0067138671875, 0.0177001953125, -0.0118408203125, 0.0169677734375, 0.0057373046875, 0.00098419189453125, 0.003...
[ 757, 738, 1511, 1542, 86823, 75298, 15772, 83, 106, 959, 66769, 4426, 21416, 3917, 14018, 3956, 1723, 4438, 605, 7413, 7514, 10, 4, 765, 903, 36126, 418, 132, 1549, 50490, 13, 23399, 2592, 10461, 436, 1284, 3229, 4527, 442, 35782, 7, ...
[ 0.1021728515625, 0.1566162109375, 0.07537841796875, 0.122314453125, 0.1544189453125, 0.1759033203125, 0.0182342529296875, 0.05816650390625, 0.0654296875, 0.099853515625, 0.164306640625, 0.03729248046875, 0.145751953125, 0.197998046875, 0.13818359375, 0.09814453125, 0.045654296875, ...
embed
59102140_c0
59102140
prolog
0
Title: Count nodes in prolog Problem title: Count nodes in prolog Tags: prolog Problem: Count nodes in prolog I tried to count all the nodes in the tree but there is a mistake in some where Count_tree(tree(_,Left,Right),Count):- Count_tree(Left,S1),Count_tree(Right,S2),Count is 1+S1+S2. This is my code.. Code signals: ...
Count nodes in prolog Count nodes in prolog prolog Count Count_tree Left Right Count nodes in prolog I tried to count all the nodes in the tree but there is a mistake in some where This is my code..
[ 0.0279541015625, 0.00665283203125, -0.00860595703125, -0.021728515625, 0.01214599609375, -0.0032501220703125, -0.03564453125, -0.0191650390625, 0.00469970703125, -0.0625, -0.022216796875, -0.04345703125, 0.028076171875, 0.030029296875, 0.03369140625, -0.00970458984375, 0.003341674804...
[ 108210, 110, 988, 23, 502, 4867, 62600, 2480, 90911, 37842, 54529, 53201, 121742, 18151 ]
[ 0.160400390625, 0.1705322265625, 0.1490478515625, 0.03472900390625, 0.13134765625, 0.1883544921875, 0.181396484375, 0.061370849609375, 0.08837890625, 0.0183258056640625, 0.143798828125, 0.1729736328125, 0.1094970703125, 0.09112548828125 ]
embed
14374676_c0
14374676
prolog
0
Title: why does foreach only loop once? Problem title: why does foreach only loop once? Tags: prolog Problem: why does foreach only loop once? The following code runs in SWI-Prolog: ?-foreach(member(X ,["1","2","3"]) ,(number_codes(Y,X),writeln(Y))). 1 false. ?- foreach(member(X ,["1","2","3"]) ,writeln(X)). [49] [50] ...
why does foreach only loop once? why does foreach only loop once? prolog number_codes why does foreach only loop once? The following code runs in SWI-Prolog:
[ 0.0262451171875, -0.0172119140625, 0.01409912109375, 0.013427734375, 0.0023193359375, -0.0050048828125, 0.0191650390625, 0.024169921875, 0.0086669921875, -0.0185546875, 0.01324462890625, -0.01446533203125, -0.012939453125, 0.00823974609375, 0.00714111328125, -0.0191650390625, 0.00196...
[ 15400, 14602, 100, 41581, 4734, 40956, 24145, 502, 4867, 14012, 40899, 25632, 18151, 127877, 23, 159, 38969, 9, 10752 ]
[ 0.1409912109375, 0.09185791015625, 0.159423828125, 0.30712890625, 0.1829833984375, 0.263671875, 0.2509765625, 0.140380859375, 0.2001953125, 0.09979248046875, 0.1431884765625, 0.08941650390625, 0.185546875, 0.1461181640625, 0.058868408203125, 0.068603515625, 0.20361328125, 0.0248260...
embed
61808204_c0
61808204
prolog
0
Title: Prolog (swi for sharing) Predicate to solve a puzzle Problem title: Prolog (swi for sharing) Predicate to solve a puzzle Tags: prolog Problem: Prolog (swi for sharing) Predicate to solve a puzzle I'm not sure how to even start to write a prolog predicate for a riddle. It gives statements of fact, but nothing mor...
Prolog (swi for sharing) Predicate to solve a puzzle Prolog (swi for sharing) Predicate to solve a puzzle prolog Prolog Predicate Prolog (swi for sharing) Predicate to solve a puzzle I'm not sure how to even start to write a prolog predicate for a riddle. It gives statements of fact, but nothing more.
[ 0.01348876953125, 0.01318359375, -0.01416015625, 0.0140380859375, -0.0220947265625, 0.0218505859375, -0.00811767578125, 0.00396728515625, 0.0047607421875, -0.016357421875, -0.0000743865966796875, 0.0054931640625, -0.0191650390625, 0.01446533203125, 0.0002918243408203125, 0.04296875, ...
[ 1250, 4867, 2452, 100, 53371, 7145, 2063, 67, 47, 86869, 10, 104192, 7, 502, 9077, 3642, 4034, 33022, 1653, 31351, 19298, 76199, 63805, 15824, 1284, 33720, 1286 ]
[ 0.19775390625, 0.2802734375, 0.1593017578125, 0.0928955078125, 0.155029296875, 0.1810302734375, 0.2481689453125, 0.1463623046875, 0.11932373046875, 0.206787109375, 0.0292205810546875, 0.2125244140625, 0.006702423095703125, 0.1907958984375, 0.033447265625, 0.002803802490234375, 0.0315...
embed
62976573_c0
62976573
prolog
0
Title: What is the rule for second cousin in prolog? Problem title: What is the rule for second cousin in prolog? Tags: prolog Problem: What is the rule for second cousin in prolog? I needed to do second cousin regarding donald ducks family tree. I only managed to get cousin's rules only cousin(X,Y):- uncle(Unc,X), fat...
What is the rule for second cousin in prolog? What is the rule for second cousin in prolog? prolog What Unc What is the rule for second cousin in prolog? I needed to do second cousin regarding donald ducks family tree. I only managed to get cousin's rules only
[ 0.0213623046875, -0.01171875, 0.006622314453125, 0.0279541015625, 0.00653076171875, 0.0264892578125, 0.0050048828125, 0.0096435546875, -0.003662109375, -0.0181884765625, 0.006256103515625, -0.016357421875, 0.00170135498046875, -0.00060272216796875, 0.0084228515625, -0.00007200241088867...
[ 4865, 83, 70, 79986, 100, 17932, 193429, 23, 502, 4867, 992, 238, 27245, 115, 22824, 14449, 53201, 91736 ]
[ 0.0367431640625, 0.0124969482421875, 0.0543212890625, 0.185791015625, 0.07244873046875, 0.2138671875, 0.2303466796875, 0.04693603515625, 0.1419677734375, 0.2125244140625, 0.0022125244140625, 0.027008056640625, 0.08935546875, 0.07647705078125, 0.10400390625, 0.005054473876953125, 0.10...
embed
54167697_c0
54167697
prolog
0
Title: variable = term compound prolog Problem title: variable = term compound prolog Tags: prolog Problem: variable = term compound prolog Is it possible in prolog to do an assignment like Variable = TermCompound? For example: X = token (a, b, c). And, if you can do it, from X is it possible to derive the arguments an...
variable = term compound prolog variable = term compound prolog prolog variable = term compound prolog Is it possible in prolog to do an assignment like Variable = TermCompound? For example: X = token (a, b, c). And, if you can do it, from X is it possible to derive the arguments and the functor of the compound term?
[ 0.0194091796875, 0.00726318359375, 0.005340576171875, 0.0157470703125, 0.002716064453125, -0.0025177001953125, 0.00005650520324707031, -0.0038909912109375, 0.01226806640625, -0.0380859375, 0.01239013671875, 0.01263427734375, -0.0084228515625, 0.0145263671875, 0.007293701171875, -0.0064...
[ 77336, 2203, 13579, 217773, 502, 4867, 442, 7722, 23, 54, 95486, 674, 1884, 84572, 2886, 2994, 39, 108161, 31, 7030, 1193, 47, 1098, 11, 876, 501, 831, 1295, 122, 5844, 10750, 136, 7477, 18770 ]
[ 0.306884765625, 0.06817626953125, 0.1556396484375, 0.251220703125, 0.145751953125, 0.2255859375, 0.032379150390625, 0.15087890625, 0.015838623046875, 0.047821044921875, 0.1920166015625, 0.09222412109375, 0.07061767578125, 0.1947021484375, 0.1771240234375, 0.1456298828125, 0.054138183...
embed
46675097_c0
46675097
prolog
0
Title: Best way to practise Datalog? Problem title: Best way to practise Datalog? Tags: pydatalog, prolog, logic, datalog Problem: Best way to practise Datalog? What is the best way to practice Datalog? Should I practice in pyDatalog? Or should I go with Prolog? (but isnt the syntax different for Datalog and Prolog?) T...
Best way to practise Datalog? Best way to practise Datalog? pydatalog prolog logic datalog Best Datalog Best way to practise Datalog? What is the best way to practice Datalog? Should I practice in pyDatalog? Or should I go with Prolog? (but isnt the syntax different for Datalog and Prolog?) Thank you.
[ 0.0311279296875, 0.019287109375, 0.005401611328125, 0.032958984375, -0.008056640625, 0.02001953125, 0.0111083984375, -0.01361083984375, 0.008056640625, -0.041748046875, -0.0037689208984375, -0.002532958984375, -0.0147705078125, 0.0032958984375, 0.000286102294921875, 0.01434326171875, ...
[ 11345, 3917, 47, 17823, 118, 184, 11809, 4867, 32, 17198, 10135, 502, 62775, 2053, 70, 2965, 41361, 151117, 23, 137989, 5608, 738, 678, 1250, 6002, 86531, 12921, 136, 5 ]
[ 0.1448974609375, 0.1142578125, 0.0677490234375, 0.1922607421875, 0.1591796875, 0.1156005859375, 0.1719970703125, 0.27197265625, 0.0272216796875, 0.140625, 0.116455078125, 0.1121826171875, 0.156005859375, 0.09912109375, 0.0091552734375, 0.141845703125, 0.2237548828125, 0.03765869140...
embed
8536792_c0
8536792
prolog
0
Title: Prolog custom operator to evaluate Problem title: Prolog custom operator to evaluate Tags: logic, prolog Problem: Prolog custom operator to evaluate I expect the following code to print out [9 4], but this isn't working :- op(20,xfx,i). i(X,Y, Z) :- Z=[X,Y]. main:- RESULT is 9 i 4, write(RESULT). Where am I gett...
Prolog custom operator to evaluate Prolog custom operator to evaluate logic prolog Prolog RESULT Prolog custom operator to evaluate I expect the following code to print out [9 4], but this isn't working Where am I getting wrong?
[ 0.0089111328125, -0.0101318359375, 0.013916015625, 0.005279541015625, -0.0162353515625, 0.017333984375, -0.017822265625, 0.0179443359375, 0.0032958984375, -0.024169921875, -0.00093841552734375, -0.0311279296875, -0.004669189453125, -0.031005859375, -0.01190185546875, -0.01397705078125,...
[ 1250, 4867, 114122, 39933, 151575, 13, 62775, 502, 218849, 41206, 25632, 18151, 28412, 1810, 1126, 201, 1284, 56112, 18, 20697, 44691 ]
[ 0.1590576171875, 0.23193359375, 0.2059326171875, 0.2425537109375, 0.20263671875, 0.07391357421875, 0.1341552734375, 0.10015869140625, 0.2802734375, 0.1336669921875, 0.08245849609375, 0.1676025390625, 0.1488037109375, 0.07568359375, 0.1859130859375, 0.1962890625, 0.0015707015991210938...
embed
33950142_c0
33950142
prolog
0
Title: prolog program logic wrong Problem title: prolog program logic wrong Tags: logic, prolog Problem: prolog program logic wrong I am new to the Prolog programming language. When I give input as fly(x,y), I want a value to be displayed. I was just trying to execute the following code:- fly(x,y):- t is 1.5, write(t)....
prolog program logic wrong prolog program logic wrong logic prolog prolog program logic wrong I am new to the Prolog programming language. When I give input as fly(x,y), I want a value to be displayed. I was just trying to execute the following code:- Can I know what's wrong with this code?
[ 0.0205078125, 0.017578125, 0.008056640625, -0.00555419921875, -0.006072998046875, 0.0002803802490234375, -0.0174560546875, 0.00433349609375, -0.000339508056640625, -0.0198974609375, -0.00189971923828125, -0.00848388671875, -0.004425048828125, -0.021728515625, 0.0260009765625, 0.0006141...
[ 502, 4867, 1528, 62775, 44691, 3525, 1250, 56037, 46876, 8337, 107730, 237, 12403, 425, 53, 3444, 34292, 186, 44116, 297, 31577, 71924, 25632, 18151, 4171, 3714, 678, 903 ]
[ 0.140869140625, 0.2257080078125, 0.1807861328125, 0.230224609375, 0.2037353515625, 0.03857421875, 0.1341552734375, 0.08056640625, 0.08428955078125, 0.082763671875, 0.1717529296875, 0.063720703125, 0.1968994140625, 0.032073974609375, 0.0863037109375, 0.09234619140625, 0.167724609375, ...
embed
21811888_c1
21811888
prolog
1
¤­®© п§лЄ ў®бЇЁв ­ЁҐ ”€Ћ ®вж த®¬ ®вҐж ­ ж-вм ®вж த­®© п§лЄ ®вж п§лЄЁ ®вж ”€Ћ ¬ вҐаЁ த®¬ ¬ вм ­ ж-вм ¬ вҐаЁ த­®© п§лЄ ¬ вҐаЁ п§лЄЁ ¬ вҐаЁ п§лЄ ¤Ґвбвў п§лЄ ­ з.иЄ®«л п§лЄ б।­Ґ© иЄ®«л а Ў®в ­ ж-вм б®бҐ¤Ґ© ®ЎйҐ­ЁҐ б б®бҐ¤п¬Ё ­ ж-вм ¤аг§Ґ© ®ЎйҐ­ЁҐ б ¤аг§мп¬Ё ¬ Ј §Ё­ ᥫмб®ўҐв ”ЂЏ ®ЎйҐ­ЁҐ б தЁвҐ«п¬Ё ®ЎйҐ­ЁҐ б бгЇ...
бЇЁв ­ЁҐ ”€Ћ ®вж த®¬ ®вҐж ­ ж-вм ®вж த­®© п§лЄ ®вж п§лЄЁ ®вж ”€Ћ ¬ вҐаЁ த®¬ ¬ вм ­ ж-вм ¬ вҐаЁ த­®© п§лЄ ¬ вҐаЁ п§лЄЁ ¬ вҐаЁ п§лЄ ¤Ґвбвў п§лЄ ­ з.иЄ®«л п§лЄ б।­Ґ© иЄ®«л а Ў®в ­ ж-вм б®бҐ¤Ґ© ®ЎйҐ­ЁҐ б б®бҐ¤п¬Ё ­ ж-вм ¤аг§Ґ© ®ЎйҐ­ЁҐ б ¤аг§мп¬Ё ¬ Ј §Ё­ ᥫмб®ўҐв ”ЂЏ ®ЎйҐ­ЁҐ б தЁвҐ«п¬Ё ®ЎйҐ­ЁҐ б бгЇагЈ®¬ ®ЎйҐ­Ё...
[ 0.0211181640625, -0.00171661376953125, -0.006378173828125, 0.0037994384765625, -0.0107421875, 0.02392578125, -0.01324462890625, 0.0101318359375, -0.0098876953125, -0.004241943359375, -0.0185546875, -0.028076171875, 0.002471923828125, -0.0133056640625, 0.00555419921875, -0.0044250488281...
[ 2917, 68909, 57498, 652, 231, 207363, 970, 8422, 94918, 105170, 861, 252, 7429, 28677, 36927, 6, 2637, 9, 130, 73131, 3707, 62970, 64845, 49, 2488, 210, 547, 3086, 35, 81598, 174895, 47926, 30224, 5360, 52279, 125671 ]
[ 0.1512451171875, 0.134765625, 0.19384765625, 0.2257080078125, 0.0919189453125, 0.2037353515625, 0.06884765625, 0.0828857421875, 0.1195068359375, 0.138671875, 0.156005859375, 0.117431640625, 0.128173828125, 0.1435546875, 0.1142578125, 0.06884765625, 0.117431640625, 0.08013916015625,...
embed
12939425_c0
12939425
prolog
0
Title: Prolog, access specific member of list? Problem title: Prolog, access specific member of list? Tags: prolog, list, unification Problem: Prolog, access specific member of list? Can anyone tell me how to access a specific member of a list in prolog? Say for example I need to access the 3rd or 4th element of a list...
Prolog, access specific member of list? Prolog, access specific member of list? prolog list unification Prolog Prolog, access specific member of list? Can anyone tell me how to access a specific member of a list in prolog? Say for example I need to access the 3rd or 4th element of a list passed into a rule?
[ 0.01177978515625, 0.006134033203125, 0.024658203125, 0.0037078857421875, -0.00726318359375, 0.0007476806640625, -0.0031890869140625, 0.019775390625, 0.0032501220703125, -0.00714111328125, 0.01123046875, -0.0167236328125, 0.007110595703125, -0.01611328125, -0.004058837890625, -0.0072021...
[ 1250, 4867, 17203, 29458, 32786, 111, 5303, 502, 51, 41274, 14192, 3642, 47, 3871, 138, 4216, 201, 927, 12830, 115081, 79986 ]
[ 0.171630859375, 0.28564453125, 0.2139892578125, 0.216064453125, 0.210205078125, 0.09063720703125, 0.196044921875, 0.13720703125, 0.0875244140625, 0.08746337890625, 0.055511474609375, 0.041900634765625, 0.0251312255859375, 0.0153350830078125, 0.06085205078125, 0.0789794921875, 0.05743...
embed
60621146_c0
60621146
prolog
0
Title: Prolog - Finding specific elements index Problem title: Prolog - Finding specific elements index Tags: prolog Problem: Prolog - Finding specific elements index helllo iam new to prolog and iam trying to make a function returns a specific elements index for example indexof (4,[3,4,5],X) X is 1 any help is really ...
Prolog - Finding specific elements index Prolog - Finding specific elements index prolog Prolog Finding Prolog - Finding specific elements index helllo iam new to prolog and iam trying to make a function returns a specific elements index for example indexof (4,[3,4,5],X) X is 1 any help is really appreciated
[ 0.01324462890625, -0.0038299560546875, -0.00555419921875, 0.00052642822265625, -0.0201416015625, 0.01806640625, 0.006988525390625, 0.000751495361328125, 0.0211181640625, -0.0224609375, 0.00555419921875, -0.0306396484375, -0.02294921875, 0.0069580078125, 0.01904296875, -0.00225830078125...
[ 1250, 4867, 26040, 29458, 80854, 63262, 214, 502, 33600, 365, 38359, 3525, 47, 31577, 3249, 32354, 30646, 27781, 4390, 9451, 363, 80389, 1542, 1193, 83, 106, 2499, 4358, 6183, 77947 ]
[ 0.15673828125, 0.253662109375, 0.09344482421875, 0.2216796875, 0.189453125, 0.2352294921875, 0.04766845703125, 0.12841796875, 0.031219482421875, 0.06378173828125, 0.120361328125, 0.06182861328125, 0.0014705657958984375, 0.068603515625, 0.040557861328125, 0.157470703125, 0.15417480468...
embed
724377_c0
724377
prolog
0
Title: prolog to SQL converter Problem title: prolog to SQL converter Tags: transpiler, prolog, sql Problem: prolog to SQL converter Without thinking to much, it seems to me that a large set of Prolog's functionality could be implemented as relational calculus (a.k.a. SQL). Has anyone heard of any tools to automaticall...
prolog to SQL converter prolog to SQL converter transpiler prolog sql SQL prolog to SQL converter Without thinking to much, it seems to me that a large set of Prolog's functionality could be implemented as relational calculus (a.k.a. SQL). Has anyone heard of any tools to automatically convert Prolog to SQL?
[ 0.0390625, -0.00189208984375, 0.01513671875, -0.0118408203125, -0.0167236328125, 0.01171875, -0.033447265625, -0.0047607421875, 0.0008544921875, -0.040283203125, 0.00007009506225585938, 0.01416015625, -0.01171875, -0.010498046875, 0.006805419921875, -0.01226806640625, -0.017822265625...
[ 502, 4867, 47, 80866, 172127, 3900, 5974, 56, 91, 99247, 47644, 5045, 37202, 21334, 5423, 1250, 123309, 2481, 5809, 29479, 237, 41911, 289, 44805, 223, 92, 35672, 49782, 2499, 72977, 191082, 96760 ]
[ 0.1690673828125, 0.2880859375, 0.129638671875, 0.27490234375, 0.20849609375, 0.056488037109375, 0.135498046875, 0.07818603515625, 0.0236663818359375, 0.2017822265625, 0.057525634765625, 0.029052734375, 0.08294677734375, 0.04656982421875, 0.040802001953125, 0.1669921875, 0.14172363281...
embed
60750115_c0
60750115
prolog
0
Title: Prolog - equal operator wrapping Problem title: Prolog - equal operator wrapping Tags: equals, prolog Problem: Prolog - equal operator wrapping equal(a, b) :- (a = b). I defined equal. 1 ?- [index]. true. 2 ?- equal(1, 1). false. 3 ?- 1 = 1. true. When I run equal(1, 1) it returns false. Why does it return false...
Prolog - equal operator wrapping Prolog - equal operator wrapping equals prolog Prolog Prolog - equal operator wrapping I defined equal. When I run it returns false. Why does it return false and how can i fix it?
[ 0.02783203125, 0.0196533203125, 0.0250244140625, -0.00787353515625, 0.00811767578125, -0.00616455078125, 0.007476806640625, -0.00537109375, -0.017822265625, -0.0223388671875, 0.00836181640625, 0.00665283203125, -0.00848388671875, 0.000797271728515625, 0.01806640625, -0.00775146484375, ...
[ 1250, 4867, 105950, 39933, 137565, 10366, 502, 87, 61924, 71, 11675, 442, 30646, 98320, 44084, 30022 ]
[ 0.1363525390625, 0.2183837890625, 0.26953125, 0.2149658203125, 0.167724609375, 0.11199951171875, 0.09197998046875, 0.0032806396484375, 0.18603515625, 0.0670166015625, 0.1282958984375, 0.0021839141845703125, 0.14111328125, 0.2015380859375, 0.031890869140625, 0.08941650390625 ]
embed
58366963_c0
58366963
prolog
0
Title: Checking all Members Of List Problem title: Checking all Members Of List Tags: prolog, meta-predicate Problem: Checking all Members Of List Let's say that I have the following list in my prolog: L=[10,11,2,3,5] Is there a way that we can check all the members of a list L to make sure that each member is less tha...
Checking all Members Of List Checking all Members Of List prolog meta-predicate Checking Members List Checking all Members Of List Let's say that I have the following list in my prolog: Is there a way that we can check all the members of a list L to make sure that each member is less than 5 ?
[ -0.00885009765625, -0.0142822265625, 0.007568359375, -0.00003600120544433594, -0.0137939453125, 0.0023040771484375, 0.01226806640625, 0.0008392333984375, 0.00958251953125, -0.0021209716796875, 0.0233154296875, 0.003997802734375, 0.0125732421875, 0.013916015625, -0.005889892578125, 0.01...
[ 38679, 214, 756, 74057, 7, 6619, 32036, 502, 4867, 23550, 19714, 2063, 25632, 5303, 3917, 831, 12765, 70, 43032, 111, 339, 3249, 9077, 12638, 32786, 83, 40715, 3501, 190 ]
[ 0.207763671875, 0.047210693359375, 0.1317138671875, 0.2301025390625, 0.068603515625, 0.18994140625, 0.1954345703125, 0.128173828125, 0.155029296875, 0.13671875, 0.07281494140625, 0.047332763671875, 0.026519775390625, 0.193115234375, 0.045440673828125, 0.020294189453125, 0.22631835937...
embed
75026740_c0
75026740
prolog
0
Title: number of digits in integer number using prolog Problem title: number of digits in integer number using prolog Tags: prolog Problem: number of digits in integer number using prolog can someone help me with this problem ? numofdig(A,B):- A>0, A is (A//10), succ(0,S), numofdig(A), B is S, write(B). this is my code...
number of digits in integer number using prolog number of digits in integer number using prolog prolog prolog number of digits in integer number using prolog can someone help me with this problem ? this is my code and its not working .
[ 0.00787353515625, 0.01458740234375, -0.016357421875, 0.0201416015625, -0.0084228515625, 0.02392578125, -0.015625, 0.01055908203125, -0.00182342529296875, -0.03076171875, -0.0120849609375, -0.0167236328125, -0.0164794921875, 0.007415771484375, 0.0233154296875, -0.0081787109375, 0.0019...
[ 14012, 111, 153939, 7, 23, 892, 1505, 17368, 502, 4867, 831, 22008, 4358, 163, 903, 2967, 705, 18151, 6863, 959, 20697 ]
[ 0.13330078125, 0.08282470703125, 0.213623046875, 0.088134765625, 0.10784912109375, 0.12274169921875, 0.12457275390625, 0.1181640625, 0.1826171875, 0.2039794921875, 0.022369384765625, 0.016510009765625, 0.08001708984375, 0.00603485107421875, 0.0025615692138671875, 0.056060791015625, 0...
embed
43012390_c3
43012390
prolog
3
? creep 35 Exit: (10) 3 is 2+1 ? creep 36 Exit: (9) elementAt([1, 2, 3, 4, 5, 6, 7], 3, 4) ? creep 37 Call: (9) 5 is 3+1 ? creep 38 Fail: (9) 5 is 3+1 ? creep 39 Redo: (12) elementAt([4, 5, 6, 7], _6836, _6554) ? creep 40 Call: (13) elementAt([5, 6, 7], _6836, Code signals: Trouble, Element, Tail, Call, _6554, _6836, ...
? creep 35 Exit: (10) 3 is 2+1 ? creep 36 Exit: (9) elementAt([1, 2, 3, 4, 5, 6, 7], 3, 4) ? creep 37 Call: (9) 5 is 3+1 ? creep 38 Fail: (9) 5 is 3+1 ? creep 39 Redo: (12) elementAt([4, 5, 6, 7], _6836, _6554) ? creep 40 Call: (13) elementAt([5, 6, 7], _6836, Code signals: Trouble, Element, Tail, Call, _6554, _6836, ...
[ 0.0059814453125, 0.0164794921875, -0.00872802734375, 0.0086669921875, -0.0007476806640625, 0.0289306640625, -0.0021514892578125, -0.0024261474609375, 0.0111083984375, -0.00095367431640625, 0.0218505859375, -0.00180816650390625, -0.0205078125, 0.00127410888671875, 0.018798828125, -0.010...
[ 705, 49512, 254, 2273, 5443, 217, 12, 17857, 138, 83, 116, 21748, 4039, 11438, 12830, 28848, 201, 190, 305, 361, 13956, 4669, 26265, 4520, 190355, 5606, 6096, 31, 23676, 617, 16028, 8659, 4, 12424, 134463, 1112, 28261, 758, 28864, 26073, ...
[ 0.091064453125, 0.2298583984375, 0.236083984375, 0.259765625, 0.1607666015625, 0.1444091796875, 0.03656005859375, 0.1544189453125, 0.195556640625, 0.11279296875, 0.081787109375, 0.21142578125, 0.2239990234375, 0.103271484375, 0.2161865234375, 0.119140625, 0.09423828125, 0.143066406...
embed
29880402_c0
29880402
prolog
0
Title: Prolog. How to print encoded a matrix? Problem title: Prolog. How to print encoded a matrix? Tags: prolog Problem: Prolog. How to print encoded a matrix? showEncoded :- map(_,Map), print_encoded(Map). Maybe this is a easy question, but prolog is a new programming language for me. Thanks in advance for your help....
Prolog. How to print encoded a matrix? Prolog. How to print encoded a matrix? prolog Prolog How print_encoded Map Prolog. How to print encoded a matrix? I have the next matrix: I want to print this matrix like this: -if the matrix element value is 0 -> print('~') -if the matrix element value is 1 -> print('#'). I tried...
[ 0.0152587890625, -0.007598876953125, 0.0169677734375, 0.02490234375, -0.0123291015625, -0.000396728515625, -0.0050048828125, 0.0250244140625, -0.00494384765625, -0.0028076171875, -0.00408935546875, -0.0263671875, 0.007720947265625, 0.021484375, -0.012939453125, 0.004425048828125, 0.0...
[ 1250, 4867, 11249, 47, 28412, 22, 40899, 71, 50944, 425, 10, 502, 66332, 48141, 42719, 11737, 3444, 903, 1884, 3190, 12830, 34292, 757, 2306, 106, 4904, 37842, 55300, 98320, 11907, 6032, 18151, 23468, 56037, 46876, 4358 ]
[ 0.1697998046875, 0.2294921875, 0.0650634765625, 0.024993896484375, 0.234130859375, 0.121337890625, 0.227783203125, 0.08477783203125, 0.186767578125, 0.133056640625, 0.0146484375, 0.1368408203125, 0.1800537109375, 0.095947265625, 0.200927734375, 0.0963134765625, 0.045379638671875, 0...
embed
62655926_c0
62655926
prolog
0
Title: Prolog, simple task Problem title: Prolog, simple task Tags: prolog Problem: Prolog, simple task I got list of facts: digit(0). digit(1). digit(2). digit(3). digit(4). digit(5). digit(6). digit(7). digit(8). digit(9). Now I have to create clause which will check whether given number as argument is single or doub...
Prolog, simple task Prolog, simple task prolog Prolog Prolog, simple task I got list of facts: digit(0). digit(1). digit(2). digit(3). digit(4). digit(5). digit(6). digit(7). digit(8). digit(9). Now I have to create clause which will check whether given number as argument is single or double-digit. How to do this?
[ 0.0125732421875, 0.006103515625, -0.01708984375, 0.010986328125, -0.0208740234375, 0.036376953125, -0.004608154296875, -0.0010833740234375, 0.00860595703125, -0.01171875, -0.006439208984375, -0.0185546875, -0.02978515625, -0.017822265625, -0.01263427734375, 0.0030670166015625, 0.0211...
[ 1250, 4867, 8781, 66211, 502, 87, 4163, 5303, 111, 15824, 7, 153939, 177609, 5, 27750, 40970, 69829, 99217, 124534, 169073, 36076, 50490, 222104, 14240, 765, 28282, 70731, 13, 1221, 12765, 36766, 34475, 14012, 237, 10750, 83, 11001, 707, 41...
[ 0.1533203125, 0.2529296875, 0.170654296875, 0.2135009765625, 0.0948486328125, 0.015350341796875, 0.0557861328125, 0.1590576171875, 0.0401611328125, 0.1728515625, 0.03424072265625, 0.177490234375, 0.170166015625, 0.00434112548828125, 0.0711669921875, 0.07391357421875, 0.06658935546875...
embed
16792047_c0
16792047
prolog
0
Title: List all relations from a module in SICStus Prolog Problem title: List all relations from a module in SICStus Prolog Tags: prolog, module, sicstus-prolog Problem: List all relations from a module in SICStus Prolog Is there any way to get the list of all relations defined in a loaded module in SICStus Prolog inte...
List all relations from a module in SICStus Prolog List all relations from a module in SICStus Prolog prolog module sicstus-prolog a List SICStus Prolog List all relations from a module in SICStus Prolog Is there any way to get the list of all relations defined in a loaded module in SICStus Prolog interpreter?
[ 0.0079345703125, 0.00286865234375, -0.006500244140625, 0.0216064453125, 0.000682830810546875, -0.001983642578125, 0.0087890625, 0.004486083984375, -0.004486083984375, -0.054931640625, 0.007232666015625, 0.01324462890625, -0.035400390625, -0.007080078125, 0.01708984375, 0.00927734375, ...
[ 32036, 756, 91582, 1295, 88996, 159, 102198, 2143, 1250, 4867, 23, 502, 26536, 18253, 3454, 47, 2046, 5303, 111, 61924, 72367, 29481, 56 ]
[ 0.15673828125, 0.1297607421875, 0.22509765625, 0.08343505859375, 0.203125, 0.06378173828125, 0.07464599609375, 0.179443359375, 0.09466552734375, 0.192626953125, 0.0297393798828125, 0.0709228515625, 0.06988525390625, 0.1875, 0.09393310546875, 0.004688262939453125, 0.049102783203125, ...
embed
10272044_c0
10272044
prolog
0
Title: Swi-Prolog - how to delete the second element (if exist) in a list? Problem title: Swi-Prolog - how to delete the second element (if exist) in a list? Tags: list, prolog Problem: Swi-Prolog - how to delete the second element (if exist) in a list? I need to write a program in swi-prolog that removes the second va...
Swi-Prolog - how to delete the second element (if exist) in a list? Swi-Prolog - how to delete the second element (if exist) in a list? list prolog Swi-Prolog Swi-Prolog - how to delete the second element (if exist) in a list? I need to write a program in swi-prolog that removes the second value of a list. thanks!
[ 0.01080322265625, 0.0211181640625, -0.0057373046875, 0.0228271484375, -0.00933837890625, 0.0302734375, -0.00811767578125, 0.01287841796875, -0.0072021484375, 0.00138092041015625, 0.031982421875, 0.006622314453125, -0.0206298828125, -0.0245361328125, 0.0074462890625, 0.00604248046875, ...
[ 105432, 9, 10752, 4867, 3642, 47, 154109, 70, 17932, 12830, 3190, 32316, 23, 5303, 10, 502, 3871, 33022, 1528, 91, 2452, 3454, 87388, 7, 34292, 111 ]
[ 0.1966552734375, 0.04913330078125, 0.1124267578125, 0.1981201171875, 0.1025390625, 0.10211181640625, 0.25, 0.02996826171875, 0.217041015625, 0.1990966796875, 0.0859375, 0.197998046875, 0.06982421875, 0.2044677734375, 0.028594970703125, 0.07373046875, 0.056304931640625, 0.0888671875...
embed
18224717_c0
18224717
prolog
0
Title: convert string to list in prolog Problem title: convert string to list in prolog Tags: prolog Problem: convert string to list in prolog I am a Prolog newbie and am stuck at parsing a string to a list. I have a string of the form 1..2...3..4 I wish to convert it into a list which looks like [1, _, _, 2, _, _, _, ...
convert string to list in prolog convert string to list in prolog prolog convert string to list in prolog I am a Prolog newbie and am stuck at parsing a string to a list. I have a string of the form I wish to convert it into a list which looks like How can I achieve this functionality?
[ -0.00238037109375, -0.00274658203125, -0.0047607421875, 0.0194091796875, -0.015625, 0.0240478515625, -0.0157470703125, -0.0159912109375, 0.0111083984375, -0.0264892578125, -0.006622314453125, 0.0004291534423828125, -0.0255126953125, -0.00634765625, -0.00128173828125, 0.0062255859375, ...
[ 96760, 79315, 47, 5303, 23, 502, 4867, 1250, 3525, 9014, 179933, 366, 6953, 3173, 32599, 3934, 10, 33342, 1884, 69307, 123309 ]
[ 0.1549072265625, 0.27392578125, 0.106201171875, 0.227294921875, 0.0714111328125, 0.1435546875, 0.23828125, 0.1279296875, 0.00897216796875, 0.08538818359375, 0.07373046875, 0.08721923828125, 0.0560302734375, 0.14013671875, 0.041412353515625, 0.0635986328125, 0.0172576904296875, 0.08...
embed
22964517_c0
22964517
prolog
0
Title: Prolog - How should I access a list of pairs? Problem title: Prolog - How should I access a list of pairs? Tags: prolog Problem: Prolog - How should I access a list of pairs? How do I access a list with pairs in Prolog? for example: List[(x1,x2),(x3,x4),(x5,x6)] How do I access x1 ? (x1,x2) is the head of the li...
Prolog - How should I access a list of pairs? Prolog - How should I access a list of pairs? prolog Prolog How List Prolog - How should I access a list of pairs? How do I access a list with pairs in Prolog? for example: List[(x1,x2),(x3,x4),(x5,x6)] How do I access x1 ? (x1,x2) is the head of the list? So what is x1?
[ 0.011962890625, 0.01556396484375, 0.0115966796875, 0.0169677734375, 0.00408935546875, 0.0257568359375, -0.0089111328125, 0.00286865234375, 0.009521484375, -0.032470703125, 0.02294921875, 0.0027313232421875, -0.007781982421875, -0.01080322265625, -0.003662109375, 0.0002002716064453125, ...
[ 1250, 4867, 11249, 5608, 87, 17203, 5303, 111, 80836, 7, 10, 502, 32036, 678, 23, 425, 418, 10461, 363, 29557, 758, 59690, 1022, 83, 70, 10336 ]
[ 0.1727294921875, 0.256103515625, 0.1021728515625, 0.04931640625, 0.04449462890625, 0.20703125, 0.2279052734375, 0.072265625, 0.2291259765625, 0.1043701171875, 0.011962890625, 0.1114501953125, 0.232666015625, 0.0765380859375, 0.012969970703125, 0.03619384765625, 0.047943115234375, 0...
embed
49154363_c0
49154363
prolog
0
Title: How to create a list of n copy of x? Problem title: How to create a list of n copy of x? Tags: prolog Problem: How to create a list of n copy of x? I'm trying to create simple procedure that would copy an element n-times into resulting list. What I've done so far is: cp(1, X, [X]). cp(N, X, D):- N > 0, N1 is N -...
How to create a list of n copy of x? How to create a list of n copy of x? prolog How How to create a list of n copy of x? I'm trying to create simple procedure that would copy an element n-times into resulting list. What I've done so far is:
[ 0.000713348388671875, 0.00830078125, -0.00168609619140625, 0.000640869140625, -0.00238037109375, 0.00994873046875, 0.00982666015625, 0.01068115234375, 0.0238037109375, -0.0458984375, 0.00457763671875, -0.01708984375, 0.0029144287109375, 0.01495361328125, -0.00830078125, 0.0054016113281...
[ 11249, 47, 28282, 10, 5303, 111, 653, 43658, 1022, 32, 502, 4867, 31577, 8781, 50491, 2806, 12830, 70141, 3934, 16750, 16940, 221, 2060, 83 ]
[ 0.0963134765625, 0.08453369140625, 0.1839599609375, 0.08282470703125, 0.216064453125, 0.1435546875, 0.1943359375, 0.254150390625, 0.1591796875, 0.0088043212890625, 0.07208251953125, 0.1279296875, 0.056976318359375, 0.07281494140625, 0.126953125, 0.0010862350463867188, 0.1226806640625...
embed
37500960_c0
37500960
prolog
0
Title: find failed predicate in prolog - automated debug mode? Problem title: find failed predicate in prolog - automated debug mode? Tags: prolog Problem: find failed predicate in prolog - automated debug mode? How to find if some predicate in long computation return fail ? Is it possible to do it using something like...
find failed predicate in prolog - automated debug mode? find failed predicate in prolog - automated debug mode? prolog find failed predicate in prolog - automated debug mode? How to find if some predicate in long computation return fail ? Is it possible to do it using something like debug mode ? I searched in google, b...
[ 0.000762939453125, -0.00069427490234375, 0.0179443359375, 0.010498046875, -0.010009765625, 0.01708984375, 0.004913330078125, 0.0263671875, -0.0034942626953125, -0.023681640625, 0.0128173828125, 0.005859375, 0.0059814453125, -0.00494384765625, 0.031982421875, 0.0024261474609375, 0.011...
[ 7413, 165523, 1653, 2063, 67, 502, 4867, 11408, 8, 85779, 13736, 23, 297, 11249, 47, 2174, 3060, 4989, 181135, 30646, 35782, 7722, 33938, 26484 ]
[ 0.1533203125, 0.23779296875, 0.1971435546875, 0.2322998046875, 0.12451171875, 0.1300048828125, 0.1982421875, 0.1253662109375, 0.1290283203125, 0.2137451171875, 0.12310791015625, 0.0280303955078125, 0.022003173828125, 0.00629425048828125, 0.0203857421875, 0.0809326171875, 0.0150299072...
embed
21314198_c0
21314198
prolog
0
Title: Prolog Program to output the last and the pre-last element of a list Problem title: Prolog Program to output the last and the pre-last element of a list Tags: prolog Problem: Prolog Program to output the last and the pre-last element of a list I need something like this last_And_prelast([5,a,d,2],A,B) that outpu...
Prolog Program to output the last and the pre-last element of a list Prolog Program to output the last and the pre-last element of a list prolog Prolog Program Prolog Program to output the last and the pre-last element of a list I need something like this last_And_prelast([5,a,d,2],A,B) that outputs A=d and B=2 thanks
[ 0.0186767578125, 0.0115966796875, -0.01708984375, 0.024169921875, -0.0167236328125, 0.0250244140625, -0.00592041015625, 0.01153564453125, 0.01806640625, -0.02734375, 0.01953125, -0.023193359375, 0.000926971435546875, 0.0036163330078125, -0.0002841949462890625, -0.01031494140625, 0.00...
[ 1250, 4867, 7663, 47, 140992, 70, 4568, 136, 479, 9, 19777, 12830, 5303, 111, 502, 3871, 9844, 1884, 903, 37839, 4692, 132, 758, 11, 71, 90173, 571, 62, 1369, 335, 55257, 45458 ]
[ 0.1630859375, 0.24658203125, 0.1951904296875, 0.04156494140625, 0.207763671875, 0.037109375, 0.18310546875, 0.1363525390625, 0.1793212890625, 0.024505615234375, 0.20361328125, 0.193603515625, 0.197265625, 0.030853271484375, 0.1221923828125, 0.109130859375, 0.031402587890625, 0.0359...
embed
10366638_c0
10366638
prolog
0
Title: prolog permutation function Problem title: prolog permutation function Tags: prolog Problem: prolog permutation function I'm new in Prolog. I know the recursion function of permutation, that is: per([],[]). per(L, [X|P]) :- del(X,L,L1),per(L1,P). I want to know the logic tree of this function in the final iterat...
prolog permutation function prolog permutation function prolog prolog permutation function I'm new in Prolog. I know the recursion function of permutation, that is: I want to know the logic tree of this function in the final iteration when we receive per([],[]) which element it back.
[ 0.008544921875, 0.01385498046875, 0.0126953125, 0.0002384185791015625, -0.01806640625, 0.0220947265625, -0.0289306640625, -0.01275634765625, 0.0107421875, -0.0281982421875, 0.017333984375, -0.0103759765625, 0.0045166015625, -0.0022430419921875, 0.005157470703125, 0.01177978515625, -0...
[ 502, 4867, 117, 561, 22062, 32354, 3525, 1250, 3714, 195625, 1830, 3444, 62775, 53201, 903, 2704, 17, 720, 3229, 53299, 132, 1065, 3129, 12830, 442, 4420 ]
[ 0.166748046875, 0.2548828125, 0.1767578125, 0.1915283203125, 0.11712646484375, 0.1737060546875, 0.07177734375, 0.18310546875, 0.10223388671875, 0.1893310546875, 0.109130859375, 0.079833984375, 0.1844482421875, 0.2208251953125, 0.02642822265625, 0.1607666015625, 0.004688262939453125, ...
embed
22250620_c0
22250620
prolog
0
Title: from OWL to Prolog code Problem title: from OWL to Prolog code Tags: owl, xsb, prolog Problem: from OWL to Prolog code I have a owl ontology and I would use prolog rules and XSB to make inference. I know that the THEA library helps to convert owl code into prolog but no examples are available . So could anybody ...
from OWL to Prolog code from OWL to Prolog code owl xsb prolog OWL Prolog from OWL to Prolog code I have a owl ontology and I would use prolog rules and XSB to make inference. I know that the THEA library helps to convert owl code into prolog but no examples are available . So could anybody help me. Thanks in advance.
[ 0.0216064453125, 0.0091552734375, -0.00185394287109375, -0.01495361328125, 0.004852294921875, 0.021240234375, 0.00830078125, -0.0103759765625, -0.0074462890625, -0.051025390625, 0.001861572265625, -0.0289306640625, 0.000347137451171875, 0.000743865966796875, 0.00848388671875, 0.0043334...
[ 1295, 180, 181280, 47, 1250, 4867, 18151, 36, 27751, 1022, 7, 275, 502, 3283, 25443, 2806, 4527, 91736, 1193, 36474, 53498, 6620, 23373, 284, 35773, 1294, 112397, 96760, 3934, 27781, 19882, 4358, 129745 ]
[ 0.0859375, 0.1099853515625, 0.255859375, 0.0989990234375, 0.1513671875, 0.2347412109375, 0.2037353515625, 0.094970703125, 0.2171630859375, 0.050140380859375, 0.04705810546875, 0.1231689453125, 0.13427734375, 0.0953369140625, 0.1160888671875, 0.0145416259765625, 0.0137939453125, 0.1...
embed
9624540_c0
9624540
prolog
0
Title: how implement a Random function in prolog? Problem title: how implement a Random function in prolog? Tags: random, prolog Problem: how implement a Random function in prolog? I try to implement a random function because random (1) does not work in Ciao Prolog System . Anyone could help me make a function that ret...
how implement a Random function in prolog? how implement a Random function in prolog? random prolog Random how implement a Random function in prolog? I try to implement a random function because random (1) does not work in Ciao Prolog System . Anyone could help me make a function that returns random values ​​from a lis...
[ 0.018798828125, 0.004119873046875, 0.0225830078125, -0.00146484375, -0.01080322265625, 0.0106201171875, -0.01177978515625, -0.001800537109375, -0.006561279296875, -0.037353515625, 0.0081787109375, -0.0031585693359375, -0.0283203125, 0.0024566650390625, 0.035888671875, 0.00384521484375,...
[ 3642, 29479, 10, 39643, 306, 32354, 23, 502, 4867, 96759, 9790, 798, 959, 4488, 107786, 1250, 12353, 4358, 3249, 30646, 142424, 1295, 5303 ]
[ 0.099365234375, 0.2340087890625, 0.06866455078125, 0.21435546875, 0.23291015625, 0.2437744140625, 0.0885009765625, 0.1566162109375, 0.2479248046875, 0.2381591796875, 0.038726806640625, 0.045623779296875, 0.0224456787109375, 0.0755615234375, 0.1827392578125, 0.11541748046875, 0.093139...
embed
43292565_c0
43292565
prolog
0
Title: How sorting list of string by length Problem title: How sorting list of string by length Tags: prolog Problem: How sorting list of string by length Hi i having a problem with sort list like: sort([p v q v r, p, p v q], R). expected result is R = [p, p v q, p v q v r] Is any built in sort in swi-prolog which allo...
How sorting list of string by length How sorting list of string by length prolog How How sorting list of string by length Hi i having a problem with sort list like: expected result is Is any built in sort in swi-prolog which allow me that or i have to write it myself.
[ -0.00421142578125, 0.016357421875, 0.011474609375, 0.007476806640625, -0.01446533203125, -0.018310546875, 0.003997802734375, 0.008056640625, 0.007720947265625, -0.029052734375, -0.00021839141845703125, -0.00933837890625, -0.0079345703125, -0.0032958984375, -0.0086669921875, -0.02819824...
[ 11249, 12096, 214, 5303, 111, 79315, 390, 140909, 502, 4867, 2673, 2967, 84751, 16750, 2499, 88303, 23, 91, 2452, 3454, 63769, 765, 33022, 35978 ]
[ 0.0977783203125, 0.1849365234375, 0.0775146484375, 0.181640625, 0.05047607421875, 0.229248046875, 0.0771484375, 0.1932373046875, 0.139892578125, 0.1839599609375, 0.004913330078125, 0.060791015625, 0.140380859375, 0.10107421875, 0.0209197998046875, 0.09375, 0.03900146484375, 0.00610...
embed
25439288_c0
25439288
prolog
0
Title: Partial Fraction in prolog Problem title: Partial Fraction in prolog Tags: prolog Problem: Partial Fraction in prolog I want to write a Prolog program to do partial fraction. e.g.:- input 2/(x+1)(x+2) output 2/(x+1)-2/(x+2). Is this possible in Prolog and what can I refer to write this program or are there any e...
Partial Fraction in prolog Partial Fraction in prolog prolog Partial Fraction Partial Fraction in prolog I want to write a Prolog program to do partial fraction. e.g.:- input 2/(x+1)(x+2) output 2/(x+1)-2/(x+2). Is this possible in Prolog and what can I refer to write this program or are there any example programs I ca...
[ 0.0030059814453125, 0.01275634765625, 0.0013275146484375, 0.00726318359375, -0.00182342529296875, 0.007720947265625, 0.003814697265625, -0.025146484375, 0.0032958984375, -0.0052490234375, -0.007110595703125, 0.006256103515625, -0.007293701171875, -0.006317138671875, 0.004364013671875, ...
[ 9148, 289, 7868, 10763, 23, 502, 4867, 3444, 33022, 1250, 1528, 47, 54, 2878, 175921, 107730, 116, 64, 21748, 54651, 140992, 45792, 903, 7722, 15005, 27781, 103391, 4527 ]
[ 0.21142578125, 0.1513671875, 0.25439453125, 0.150390625, 0.041351318359375, 0.162353515625, 0.25634765625, 0.07861328125, 0.1273193359375, 0.166748046875, 0.18505859375, 0.011566162109375, 0.090087890625, 0.2034912109375, 0.27490234375, 0.148193359375, 0.0718994140625, 0.0300598144...
embed
8015687_c0
8015687
prolog
0
Title: what does&quot; readin&quot; predicate in prolog mean? Problem title: what does&quot; readin&quot; predicate in prolog mean? Tags: prolog Problem: what does" readin" predicate in prolog mean? I have a question and I hope to help me: what does" readin" predicate in prolog do? I have searched in google but I have ...
what does&quot; readin&quot; predicate in prolog mean? what does&quot; readin&quot; predicate in prolog mean? prolog what does" readin" predicate in prolog mean? I have a question and I hope to help me: what does" readin" predicate in prolog do? I have searched in google but I have nothing could you explain it to me wi...
[ 0.01043701171875, -0.00092315673828125, 0.0211181640625, 0.024658203125, -0.00131988525390625, 0.0125732421875, 0.01251220703125, 0.0030364990234375, -0.0120849609375, -0.046142578125, 0.0252685546875, -0.0174560546875, -0.030517578125, -0.02197265625, 0.00750732421875, 0.0072631835937...
[ 2367, 14602, 12301, 73, 41502, 1653, 2063, 67, 23, 502, 4867, 29459, 15673, 4358, 54, 73342, 27781 ]
[ 0.06390380859375, 0.02685546875, 0.194091796875, 0.231201171875, 0.038848876953125, 0.1317138671875, 0.1787109375, 0.0755615234375, 0.049774169921875, 0.136474609375, 0.1873779296875, 0.102294921875, 0.0098876953125, 0.00653076171875, 0.06787109375, 0.0550537109375, 0.0341796875 ]
embed
1514781_c0
1514781
prolog
0
Title: prolog unification resolution Problem title: prolog unification resolution Tags: resolution, unification, prolog, exponentiation Problem: prolog unification resolution Why does this work: power(_,0,1) :- !. power(X,Y,Z) :- Y1 is Y - 1, power(X,Y1,Z1), Z is X * Z1. And this gives a stack overflow exception? power...
prolog unification resolution prolog unification resolution resolution unification prolog exponentiation prolog unification resolution Why does this work: And this gives a stack overflow exception?
[ 0.00506591796875, 0.005218505859375, 0.0206298828125, -0.0098876953125, 0.00518798828125, -0.03076171875, -0.0125732421875, 0.00640869140625, 0.020751953125, -0.0220947265625, 0.0054931640625, 0.0299072265625, -0.004425048828125, -0.006256103515625, 0.02490234375, 0.01434326171875, 0...
[ 502, 4867, 51, 41274, 158839, 78643, 21616, 2320, 44084, 14602, 903, 4488, 12, 3493, 76199, 177261, 645, 118664, 131527 ]
[ 0.1575927734375, 0.231201171875, 0.1820068359375, 0.1551513671875, 0.2359619140625, 0.15478515625, 0.09161376953125, 0.0299530029296875, 0.10003662109375, 0.12353515625, 0.18603515625, 0.1715087890625, 0.0196380615234375, 0.0283660888671875, 0.06573486328125, 0.1707763671875, 0.14074...
embed
20524529_c0
20524529
prolog
0
Title: Prolog: what is the - prefix in predicates / variables? Problem title: Prolog: what is the - prefix in predicates / variables? Tags: prolog, prefix Problem: Prolog: what is the - prefix in predicates / variables? Example: conditions([-on(a, b)]). I have searched tirelessly but fruitlessly for the meaning of this...
Prolog: what is the - prefix in predicates / variables? Prolog: what is the - prefix in predicates / variables? prolog prefix Prolog Prolog: what is the - prefix in predicates / variables? Example: I have searched tirelessly but fruitlessly for the meaning of this and the + prefix. You are my last hope.
[ 0.021728515625, 0.002044677734375, -0.00408935546875, -0.007537841796875, -0.002960205078125, 0.005340576171875, 0.00750732421875, 0.00634765625, -0.00762939453125, -0.0145263671875, 0.0013580322265625, -0.02001953125, -0.0142822265625, -0.029541015625, -0.005584716796875, 0.0122070312...
[ 1250, 4867, 2367, 83, 70, 20, 183114, 1653, 2063, 1636, 77336, 23, 248, 502, 765, 33938, 297, 9393, 91084, 903, 997, 2583, 621, 759, 4568, 15673 ]
[ 0.14599609375, 0.2034912109375, 0.052581787109375, 0.030181884765625, 0.035400390625, 0.1182861328125, 0.254150390625, 0.123779296875, 0.1376953125, 0.0732421875, 0.19189453125, 0.05499267578125, 0.023284912109375, 0.1263427734375, 0.006866455078125, 0.055572509765625, 0.001098632812...
embed