How to Average in Prolog (2017)

Viewed 38
This article discusses methods of calculating averages in Prolog, emphasizing the use of recursion while avoiding new predicates. The approach is quirky and noted for potentially complicating what could be simpler implementations, which has led to mixed reactions among readers. While some find the constraints and the prescribed methods make Prolog seem tedious, others are curious about the effectiveness of these methods versus more straightforward solutions. Comments from users suggest both approaches may yield similar results, yet there is interest in understanding performance differences.
0 Answers