Spring 2019 HW1 MAT 331

Spring 2019 HW1 MAT 331
Homework 1: MAT 331
Due: 11:59pm, Feb 5, 2019
Collaboration policy: You are welcome to work with others on this homework assignment. But
the code and explanations you turn in should actually be written by you. In particular, you should
not submit code that you copied from an email a friend sent you.
Submission instructions: You will submit the assignment in Blackboard, as Homework 1 in
the Assignments tab. You will submit a single Jupyter .ipynb notebook file for each of problems
2,3,4 below. For Problem 2, name the file problem2_{your NetID}.ipynb, and similarly for
the other problems. For instance, if I was submitting the homework, I would upload three files:
problem2_bdozier.ipynb, problem3_bdozier.ipynb, problem4_bdozier.ipynb.
Each file should include all the code you used to complete the problem. Do not include scratch
work that turned out to be unnecessary. When we test your code, we will run every cell in order,
and no error messages should be produced.
If you have a reason that your submission cannot conform to all the above criteria, please send
me an email and we will work something out.
1. (Nothing to turn in) Figure out a way to use SageMath with Jupyter outside of the classroom.
Here are some options:
(Recommended) Download SageMath 8.6 for your personal computer. Your
Computer will need to be reasonably modern, and you will need several GB of free disk
space. It is available for Mac, Windows, and Linux. See the “Useful resources” section of
the website for the download link.
Use SageMath via the online server Cocalc.com. With a free account, you should
be able to do everything you need, but it may not be very fast. You can also pay for an
upgraded account. By default Cocalc uses its own customized version of Jupyter, but
you should use it with Plain Jupyter (aka Classic Jupyter). To do this, once you have
created a project, but before adding files to it, click the Settings tab, and then go to the
Plain Jupyter section, and click the Plain Jupyter Server link. The page you get should
look quite similar to what we use in class. When you make a new file with the button
near the upper right, there will be a long list of options - you should select “SageMath
8.6”.
2. Draw a double helix picture figure like the one in Figure 1. It does not have to be exactly
the same, but make sure that the two curves winding around each other are different colors.
Don’t worry about what the numbers on the axes are, or how many times the curves wind
around each other.
Page 1 of 2
Spring 2019 HW1 MAT 331
Figure 1: Double helix
3. Find the sum of all postive integers less than 10, 000 that are multiples of both 3 and 7.
4. Write a function that takes in an integer and determines whether it is a prime (i.e. has no
divisors other than 1 and itself). There is a built in function is_prime that does this, but
don’t use it or any other built-in functions. Use your function to determine whether 2
19 1
is prime. Include in your Jupyter notebook a “Markdown” cell that contains a short written
explanation of the algorithm you are using to test whether numbers are prime.

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:[email protected]

微信:codinghelp

原文地址:https://www.cnblogs.com/wxyst/p/10353930.html

时间: 2024-10-07 16:02:12

Spring 2019 HW1 MAT 331的相关文章

STAT 440 - Spring 2019 - Midterm Project

STAT 440 - Spring 2019 - Midterm ProjectRecall that you may use your notes, books, or even the internet to help answer these questions, but all of thework should be your own and you should not ask anyone for help or about any details related to the c

CS560/460 Spring 2019

CS560/460 Spring 2019Programming Assignment 1(Due February 12, 2019 by 11:59pm) 1.Geometric Primitives Drawing Description: The line drawing function is the basic function provided by many graphics tools, such as the MS Word, power point, etc. A numb

CS530, Spring 2019, Program Assignment

CS530, Spring 2019, Program Assignment #226 Feb 2019You and your team shall develop, test, and deliver a disassembler program for theXE variant of the SIC/XE family of machines.XE DISASSEMBLER REQUIREMENTS:The XE disassembler program shall open an XE

CS 105 – Intro to Computing Non-Tech Spring 2019

CS 105 – Intro to Computing Non-Tech Spring 2019Page 1 of 3MP 7 – Extra CreditIn this MP, you will create 3 simple functions in one module. It is VERY important you name the moduleand the functions exactly as you are instructed. If the names are not

Math 353/DSC 301, Spring 2019, Final Exam

Math 353/DSC 301, Spring 2019, Final ExamPlease remember to write down your name and student ID. This is the take-home portion whichhas four problems. Only independently-finished and fully-justified answer will receive full credit.1. [11 = 3 + 2 + 4

The second curriculum design experiment report in spring 2019

2019年第二次课程设计实验报告 一.实验项目名称 贪吃蛇 二.实验项目功能描述 1.小蛇的移动 玩家可以通过 W A S D控制小蛇的上左下右移动,通过函数改变小蛇部位的位置 2.判断游戏失败 当小蛇与边框或自生发生碰撞时,游戏就算失败 四.实现界面展示 五.代码托管链接 https://gitee.com/The-king-of-the-apocalypse/two_storehouse 六.实验总结 问题:对于像这种分区式的,工作明确的函数问题,如何保证他们的相互协调发展 解决办法:暂时无

CSCI3180 – Principles of Programming Languages

CSCI3180 – Principles of Programming Languages – Spring 2019Assignment 1 - Human Resources Management System in FORTRAN and COBOLDeadline: Feb 03, 2019 (Sunday) 23:591 IntroductionIn this assignment, you have to implement a system for processing empl

EE 519: Speech Recognition and Processing for Multimedia

Out: Mar 30 2019Due: Apr 13 2019EE 519: Speech Recognition andProcessing for MultimediaSpring 2019Homework 5There are 2 problems in this homework, with several questions. Please make sure to show the details of working foreach question. Answers witho

seminar information (Email template)

The following is an email example of seminar information **************** Dear all, It is a pleasure to intoduce our next speaker for our Spring 2019 IoB seminar series, Prof. *** from the University of Oxford.   Prof *****'s research focuses on immu