Question: * THIS IS A TASK IN ERLANG PROGRAMMING LANGUAGE * I only need help with the third bullet point that I have highlighted in bold

* THIS IS A TASK IN ERLANG PROGRAMMING LANGUAGE

* I only need help with the third bullet point that I have highlighted in bold

Create a module file named functions.erl. In this module, write the following functions. Make sure your module name is functions, and that you export each of these functions.

  • A function named add that takes three arguments, and returns the sum of all three parameters.
  • A function named makelist that takes three arguments, and returns a list consisting of the arguments (in the order that they appear in the function call).
  • A function named third that takes one argument (a list), and returns the third element of the list.
  • A function named quadratic that takes four arguments call them A, B, C, and X and returns the value of ax2 + bx + c. Note this is not finding the value of a root, just evaluate the value of ax2 + bx + c.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!