Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I do not know how to do B with my answer in A Problem 3: More plotting Grading criteria: code correctness. a. Draw a plot

image text in transcribedI do not know how to do B with my answer in A

Problem 3: More plotting Grading criteria: code correctness. a. Draw a plot of a hexagon in R2 with center (1,0) whose circumcircle has radius 1/2. In [68]: var('i') L = '[[(cos(pi*i/3)+2)/2, (sin(pi*i/3))/2] for i in range(6)] polygon2d(L, rgbcolor=(1,0,1)) b. Draw a plot in R of the surface of revolution obtained by obtaining the hexagon in part a around the z-axis. In [18]: 0.032 seconds var('i') hexa = [((cos(pi/3)+2)/2,(sin(pi/3))/2)] revolution_plot3d(hexa, trange(6)) --------------------------------- NameError Traceback (most recent call last) in (). 1 var('i') Problem 3: More plotting Grading criteria: code correctness. a. Draw a plot of a hexagon in R2 with center (1,0) whose circumcircle has radius 1/2. In [68]: var('i') L = '[[(cos(pi*i/3)+2)/2, (sin(pi*i/3))/2] for i in range(6)] polygon2d(L, rgbcolor=(1,0,1)) b. Draw a plot in R of the surface of revolution obtained by obtaining the hexagon in part a around the z-axis. In [18]: 0.032 seconds var('i') hexa = [((cos(pi/3)+2)/2,(sin(pi/3))/2)] revolution_plot3d(hexa, trange(6)) --------------------------------- NameError Traceback (most recent call last) in (). 1 var('i')

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions