:-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元素的列表,顯示這個方程的零點。