Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by 4tangent

  1. 4tangent

    Simplifying arithmetic phrases

    Have you solved this problem yet? John
  2. 4tangent

    How to implement all_different in SWI-Prolog

    I think your base case is OK The next line needs squared brackets to make it a list format. The third line - you should not mix lists [H|T] with non-lists H,T. The third line also needs reworking. You could look at using the "member" predicate to look for duplication. Cheers John
  3. 4tangent

    multiply 2 number

    OK thank you.I don't see what your problem is ; perhaps I am missing something. You have a fact that says multLista([],1). then you ask multLista([],R) ? and it says R = 1. Why is that a surprise? Regards John
  4. 4tangent

    multiply 2 number

    Hi there Which type of prolog are you using? Regards John

Part and Inventory Search

Back
Top