Info
This question is closed. Reopen it to edit or answer.
Test Question; derivative using diff
8 views (last 30 days)
Show older comments
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 Comment
Jan
on 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.
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!