:-consult(words.pl). % words is basically a big database of the
% 30.000 most used words in the english language
topsolution([], _, P) :- %basecase, in case the given list of letters is
我正在做一些练习来学习Prolog编程。然而,我无法弄清楚如何做到这一点: I need to solve this equation with a prolog program (click here). 我已经写代码: solveQuadratic([], []). solveQuadratic([a,b,c], Result) :- “结果”必须是与2,1或0元素的列表,显示这个方程的零点。