Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Test Question; derivative using diff

8 vues (au cours des 30 derniers jours)
Hiba Azwar
Hiba Azwar le 1 Juin 2017
Clôturé : John D'Errico le 1 Juin 2017
Do not know where to begin with this question!! Please assist!
Write a function called sinhx, which calculates the hyperbolic sine, where y= (e^x -e^x)/2 . The function has three possible inputs: A, x and y and one output: dydx. The aim of the function is to calculate the derivative and this can be done using the diff function.
Include a statement in your function to ensure that if the user only enters the first two inputs, then y is defined in the function as y = Asinh(x).
Include a statement in your function to ensure that if the user only enters the first input, then y is defined in the function as y = Asinh(x) and x is specified as a vector of 50 equally spaced points between 0 and pi.
Finish your function with end and suppress all outputs.
  1 commentaire
Jan
Jan le 1 Juin 2017
Does "Asinh(x)" mean "A * sinh(x)"? y is defined in the function sinh() by calling y = A * sinh(x)", but now sinh does not take the input A anymore? y is the output, but defined as input also? You should calculate y but actually you want the derivative using the diff function? This is such a strange question, that I seriously suggest:
Go to your professor and ask for a clear question.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by