Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Test Question; derivative using diff
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Jan
el 1 de Jun. de 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.
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!