Test Question; derivative using diff
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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 Kommentar
Jan
am 1 Jun. 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.
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!