as4.pdf - CPSC 312 Functional and Logic Programming Fall 2017 Assignment Four Lists Relations Due 11:59pm Tuesday 3 October 2017 Submit solution to

as4.pdf - CPSC 312 Functional and Logic Programming Fall...

This preview shows page 1 - 2 out of 3 pages.

CPSC 312 Functional and Logic Programming Fall 2017 Assignment Four: Lists, Relations Due: 11:59pm, Tuesday 3 October 2017. Submit solution to Canvas You may do this question in a group of size 1, 2 or 3. Make sure you all understand and can explain your solution. The next midterm will assume that you have seen the solution to all of the questions. Do as many questions 1-3 as there are people in your group. Submit your answers in text files to Canvas. Use proper sentences in your answers. Make sure you name(s), student number(s) is at the top of each file. You need to hand in your program that runs with SWI Prolog (including the intended interpretation for all symbols). Question One (a) Write a program deriv ( E , X , DE ) which is true when the DE is the derivative of expression E with respect to algebraic variable X , where an algebraic variable is just a constant. DE does not need to be in a simplified form. You can assume that E is an arithmetic expression consisting of (at least) numbers, algebraic variables, addition and multiplication. You can assume that E and X are ground (contain no logical variables) when called.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '09

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes