Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Test Question; derivative using diff
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Jan
2017 年 6 月 1 日
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.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!