Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 4) Function of Interest (10 pts): Consider the following function. where bracket equals x if x > 0 and is 0 otherwise; it is
Task 4) Function of Interest (10 pts): Consider the following function. where bracket equals x if x > 0 and is 0 otherwise; it is called the Macaulay bracket. This is the slope of a beam at any location x. Here the beam is of length L with a moment of inertiaI that supports a point load W at a distance a from the left end, as illustrated in the figure below al For a simply supported beam, which is what is to be considered for this homework problem, one has L-a 0AGEI Write a MatLab function for this function, calling it a3fn.m. It must have the interface a3fn General Description This function returns the value of theta using the function: Calling Syntax f = a3fn(x) Input Argument scalar A positive number. Return Argument scalar Solution to the function. Additional Specifications and Notes This function must check to ensure that only one scalar argument is input. Furthermore, this argument must be positive, i.e., x>0. If not, a meaningful error message must be issued. Task 4) Function of Interest (10 pts): Consider the following function. where bracket equals x if x > 0 and is 0 otherwise; it is called the Macaulay bracket. This is the slope of a beam at any location x. Here the beam is of length L with a moment of inertiaI that supports a point load W at a distance a from the left end, as illustrated in the figure below al For a simply supported beam, which is what is to be considered for this homework problem, one has L-a 0AGEI Write a MatLab function for this function, calling it a3fn.m. It must have the interface a3fn General Description This function returns the value of theta using the function: Calling Syntax f = a3fn(x) Input Argument scalar A positive number. Return Argument scalar Solution to the function. Additional Specifications and Notes This function must check to ensure that only one scalar argument is input. Furthermore, this argument must be positive, i.e., x>0. If not, a meaningful error message must be issued
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started