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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. michaela1

    fractions

    Hi I am trying to write predicates to process the following simplify([[1,2,3], plus, [3,4,5]],X). X = [5,7,15] any tips welcome? below is my code so far 1 2/3 + 3 4/5 5/3 + 19/5 (25+57)/15 = 82/15 = 5 7/15 format [1,2,3] to 5/3 multiply ([1,2,3],[3,0,0], [X,Y,Z]). X=[5] Y=[0] Z=[0]...
  2. michaela1

    lists

    Hi I am trying to teach myself prolog and as I am totally new to this I thought some help wouldn't be a bad idea. My first challenge is to write a prolog predicate that takes two arguments. The first is a list and the predicate should return the list reversed as the second argument. e.g...

Part and Inventory Search

Back
Top