Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1-Write a function to calculate the area of a circle, given the radius. Notice that the formula is s=r^2, where s is the area and
1-Write a function to calculate the area of a circle, given the radius. Notice that the formula is s=r^2, where s is the area and r is the radius. (In R, is represented as pi.)
2-Write a function to multiply each element of a vector by the average of the vector, given a vector.
3-Write a function to raise each element of a vector to its n-th power, given the vector and the n. Make the default of n to be 2.
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