Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132934 views
License: OTHER

Introduction to Sage Assignment


Note 1: Below each question, click on the horizontal gray line. This will create a new input cell. Type your answer directly into this Sage worksheet, and click "Run."


Note 2: If you opened the PDF, please open the .sagews file and put your answers there.


Question 0

Watch the lecture video here.

Did you watch the video? [Type yes or no.]

Question 1

Compute the following in Sage. Make sure you have enough parentheses to get the order of operations right.

Part a

12+547\displaystyle\frac{12+5}{4-7}

Part b

42×51(7+4)\displaystyle 4^{2\times 5-1}-(7+4)

Question 2

Find decimal approximations for the following expressions using Sage.

Part a

5sin(37)\displaystyle \sqrt{5\sin(3^7)}

Part b

log2(arcsin(13))\displaystyle\log_{2}\left(\arcsin\left(\frac{1}{3}\right)\right)

Part c

cos(π7)ln(12)\displaystyle \cos\left(\frac{\pi}{7}\right)-\ln(12)

Part d

12008+2e4/3\displaystyle\sqrt[8]{1200}+2\cdot e^{4/3}

Question 3

Consider the functions

f(x)=3x25x+1f(x)=3x^2-5x+1g(t)=2t19t2+4g(t)=\frac{2t-1}{9t^2+4}

Part a

Define ff and gg in Sage. Don't forget you need explicit multiplications, and use plenty of parentheses.

Part b

Calculate f(8)f(8)

Part c

Calculate f(x+h)f(x)h\displaystyle\frac{f(x+h)-f(x)}{h}

[Hint: don't forget to declare hh to be a variable]

Part d

Calculate g(21)g(21)

Part e

Calculate g(t12)g(t-12)

Notes

  • Each lab assignment is worth 5 points.

  • The assignment will be graded in class, although you may choose to work on the assignment before class.

This material was developed by Aaron Tresham at the University of Hawaii at Hilo and is Creative Commons License
licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.