Explain any three applications of a couple.
Answers
Explanation:
Suppose we want to compute all of the deviations of a list of numbers. A deviation is the distance from the number to the mean of the list, in other words x−μ. Here is naïve approach to the problem.
len :: Fractional b => [a] -> b
len [] = 0
len (_ : xs) = 1 + (len xs)
average :: Fractional a => [a] -> a
average xs = (sum xs) / (len xs)
deviations :: Fractional a => [a] -> [a]
deviations xs = map (subtract (average xs)) xs
This is fine, but it traverses the list three times. Once for sum, once for len, and once for map. We can improve this situation by computing the sum and len simultaneously.
average' :: Fractional a => [a] -> (a, a)
average' [] = (0, 0)
average' (x : xs) = (x + sum, 1 + len)
where (sum, len) = average' xs
average :: Fractional a => [a] -> a
average xs = sum / len
where (sum, len) = average' xs
deviations :: Fractional a => [a] -> [a]
deviations xs = map (subtract (average xs)) xs
Here we only have to travese the list twice. Once for average’ and once for map.
Can we do even better? Can we compute this with just a single traversal? If you think it’s possible, try to write it. If you think it’s impossible, why?
Read this short post and understand how trace computes repMin. I’ve also posted my own notes on circular programming.
Come up with an appropriate type for deviations’. We’ve put in a, b, c, d type parameters as a placeholder. You should replace these with the appropriate types.
Write deviations’ so that deviations only traverses the list once. You should only write deviations’ and no other recursive helper functions. Our definition of trace is slightly different than the article; we don’t use the unnecessary tuple in the input. This is a superficial difference. (Hint: You may have to use a lazy pattern match.)
Answer:
In mechanics, a couple is a system of forces with a resultant (a.k.a. net or sum) moment but no resultant force.[1]
A better term is force couple or pure moment. Its effect is to create rotation without translation, or more generally without any acceleration of the centre of mass. In rigid body mechanics, force couples are free vectors, meaning their effects on a body are independent of the point of application.
The resultant moment of a couple is called a torque. This is not to be confused with the term torque as it is used in physics, where it is merely a synonym of moment.[2] Instead, torque is a special case of moment. Torque has special properties that moment does not have, in particular the property of being independent of reference point, as described below.
Explanation:
Hope this may help u plz mark me as a brainlist and yaa plz follow me
Thank you