Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago