Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

undefined Create 4 user defined local functions myspiral, myspirals, mydistance, mydistances, that carry out the work described below. The function named myspiral should take one

image text in transcribedundefined

Create 4 user defined local functions myspiral, myspirals, mydistance, mydistances, that carry out the work described below. The function named myspiral should take one parameter t, and return two vectors, x,y that are filled with the xycoords for the parametric equations shown below. For this problem we are also practicing using while loops, so you should use a while loop to calculate each of the values in the x and y vectors that are returned. cos(1) max(1) + sin(t) max(t) For this The function named myspirals should take one parameter t and return three vectors, x,y,z that are filled with the xyzcoords for the parametric equations shown below. problem we are also practicing using while loops, so you should use a while loop to calculate each of the values in the x, y, and z vectors that are returned. x = sin(t) sin(641) y = sin(1) cos(641) 2 = cos(1) The function named mydistance should take two parameters, X and y and return the distance of the line described by those xycoords. Your mydistance function should use the pythagorean formula to calc the distance in 2D and return the sum of the lengths of each line segment as shown below. The mydistance function should use a while loop to calculate the sum of the lengths of each line segment. The function named mydistances should take three parameters, x,y,z and return the distance of the line described by those xyzcoords. Your mydistances function should use the pythagorean formula to calc the distance in 3D and return the sum of the lengths of each line segment, similar to mydistance (above) except in 3D. The mydistance function should use a while loop to calculate the sum of the lengths of each line segment. peza. Create a domain t such that @

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

Students also viewed these Databases questions

Question

=+1. What are the three basic categories of reports? [LO-1]

Answered: 1 week ago