首页 >
> 详细

Assignment 1

MACM 204

Fall 2020

The purpose of this assignment is to learn the basics of Maple: how to input formulas, how to graph

functions, solve equations, calculate derivatives and integrals, and to program some loops.

The assignment is due Tuesday September 29th at 11:00am. Do all calculations in Maple in a single

worksheet. Separate clearly your solutions for each question (use text headings Question 1, Question 2,

... ). Export the worksheet as PDF and upload a single PDF file to the Crowdmark link that you

received by e-mail.

Write the assignment number, course number, your name and student number on top of the Maple

worksheet.

Question 1

Consider the function Construct a plot of [ ] on the same

graph for the domain .

Read the help page for ?plot,options. Using the appropriate options, create a legend for the

plot, and add a title.

Question 2

Using the evalf command, calculate the following values to 20 decimal places.

, =1.648..., 1.912..., ... and ...

Question 3

Consider the polynomials and and

Graph each separately on a suitable domain for so that we can see all real roots.

Now factor the polynomials using the factor command.

Why does the factor command not factor them into linear factors?

Now, using solve, solve for the roots. Using Maple, verify that the 4 roots of the polynomial g are

correct.

Now, using fsolve, solve for numerical approximations of the roots, including the complex roots.

Read the help page for ?fsolve to find out how to get the complex roots.

Question 4

Shown in the plot below is a plot of on the domain -2.5 < < 2. Shown also

is the line tangent to at .

Use Maple to reproduce the plot. Do this by using the diff and eval commands to compute the slope

of at so you can determine the equation for the tangent line.

Now express the area enclosed by the tangent line and as a definite integral.

Evaluate the definite integral using Maple.

Question 5

Consider the two equations and which are the equations of an elliptic curve

and a circle. Graph the two curves together using the implicitplot command in the plots package.

Improve the smoothness of the plot using the grid option. The circle will appear distorted. Find out

from ?plot,options how to scale the axes so that the circle looks like a circle (so that the plot looks

like the figure below).

You can read off from the plot roughly where the curves intersect.

Use Maple to calculate the intersection points accurately.

Do this by solving two equations simultaneously.

Question 6

Calculate the following antiderivatives in Maple.

(i) (ii) (iii) .

To check that the results are correct, use Maple to differentiate each antiderivative.

Question 7

Suppose you are given a Maple list L of numbers which are the roots of a polynomial . Write a

Maple for loop that constructs the polynomial. For example, if L = then the value of

should be the polynomial .

Question 8

Using a Maple loop, and the isprime command, find the first prime .

Question 9

Consider the odd primes 3, 5, 7, 11, 13, 17, 19, etc.

Let S be the odd primes congruent to 1 mod 4 and T be the odd primes congruent to 3 mod 4.

So S = 5, 13, 17, 29, etc. and T = 3, 7, 11, 19, 23, etc.

Suppose we go through the odd primes in order counting the number of primes in S and T.

So at the first step S = { } and T = {3} so T has more primes than S.

At the second step S = {5} and T = {3} so S and T have the same number of primes.

At the third step S = {5} and T = {3,7} so T has more primes than S again.

Here is a little table counting the size of S and T for the first 10 primes

Prime 3 5 7 11 13 17 19 23 29 31

|S| 0 1 1 1 2 3 3 3 4 4

|T| 1 1 2 3 3 3 4 5 5 6

Notice that for the first 10 primes. Does it ever happen that ? Yes, it does.

When? How often?

Using the builtin nextprime command write a loop that counts and for primes up to 10^6

and prints out the the first time and, at the end, how often

Question 10

Let . Recall that the value of A may be approximated by the Trapezoidal rule on n

intervals of width using the formula

.

For and , calculate using Maple to 10 decimal places by using

Maple's integration command. Now using a Maple loop, calculate and using 10 digit

arithmetic (the default) .

联系我们

- QQ：99515681
- 邮箱：99515681@qq.com
- 工作时间：8:00-23:00
- 微信：codinghelp

- Cits1001留学生语言代做、Java语言程序调试、Java实验编程代写调 2020-10-26
- 代写cfrm 542实验程序、R课程编程代做、代写program程序语言代做 2020-10-26
- Math2392语言代做、代写r课程程序、R实验编程代做帮做spss|代做r 2020-10-26
- 代做comp10002程序、代写systems编程语言、Web/Html实验 2020-10-26
- Math2392编程代写、Data留学生程序代做、Sql编程语言代写代写py 2020-10-26
- Cse 320实验代做、代写programming课程、C/C++程序实验代 2020-10-25
- Infs2200语言代写、代做sql留学生程序、Sql编程语言代做代做pro 2020-10-25
- Data留学生编程代写、代做c++课程编程、Python，Java语言程序代 2020-10-25
- Program留学生编程代做、Matlab课程编程代做、代写matlab编程 2020-10-25
- 代做software课程、Python，C++，Java编程设计代写、代做d 2020-10-25
- Csc361留学生程序代做、Python实验编程代写、Programming 2020-10-25
- Cits1401语言代写、代做python课程程序、Python语言编程调试 2020-10-25
- 代写msba7003课程、Java编程语言调试、Python，C++程序实验 2020-10-25
- Algorithms课程编程代写、代做python语言、代写java，C++ 2020-10-25
- 代做msba7003程序、Python，C++语言程序代写、代写java课程 2020-10-25
- Data Structures代做、C++,Java编程语言代写、Algor 2020-10-25
- 代写msba7003编程、代做analysis程序语言、代做java，Pyt 2020-10-25
- Csse2310实验程序代写、代做c++，Python，Java编程语言 帮 2020-10-25
- 代写csse2310编程、代做programming程序、代做c++实验编程 2020-10-25
- 代做java程序|代做java程序|代写留学生pr... 2020-10-25