Difference between revisions of "EGR 224/Spring 2024/Lab 01"

From PrattWiki
Jump to navigation Jump to search
(Maple)
(Maple)
 
(2 intermediate revisions by the same user not shown)
Line 39: Line 39:
  
 
==== Open the Pundit page for the assignment ====
 
==== Open the Pundit page for the assignment ====
* In another tab in the same browser, go to [[Homework 0|Homework 0]]
+
* In another tab in the same browser, go to [[Homework 0|Homework 0]].  Go through each of the problems and their solutions to make sure you have a good idea how they work.
  
 
=== At the end of lab ===
 
=== At the end of lab ===
Line 50: Line 50:
  
 
== Maple ==
 
== Maple ==
 +
The book for assignments is [https://cad.eecs.umich.edu/ Circuit Analysis and Design' by Ulaby et at.  It is a free download from their website.
 
* Go to the [[Maple#Duke_Container]] page and follow the directions to reserve a Maple container for the semester.
 
* Go to the [[Maple#Duke_Container]] page and follow the directions to reserve a Maple container for the semester.
 
* Go to the [[Maple/Initialization and Documentation]] page to learn about initializing a Maple worksheet (i.e. adding the <code>restart</code> command at the top) and producing documentation.
 
* Go to the [[Maple/Initialization and Documentation]] page to learn about initializing a Maple worksheet (i.e. adding the <code>restart</code> command at the top) and producing documentation.
 
* Go to the [[Maple/Simultaneous Equations]] page to learn about setting up and solving linear algebra systems.
 
* Go to the [[Maple/Simultaneous Equations]] page to learn about setting up and solving linear algebra systems.
 +
When each worksheet is completed, you can save it and then you can export it as a PDF in Maple (the Export As under file).

Latest revision as of 21:30, 16 January 2024

Introduction

Lab 1 has two separate parts, and each part has a set-up phase and a use phase. The goal for this lab is to have access to Python via Google Co-Lab and to Maple via a Duke container.

Google Colab

At The Beginning of Lab

Create / Log-in to a Google Account

Log-in to Google Drive

Log-in to Google Colab

  • In another tab in the same browser, go to https://colab.research.google.com
    • In the Colab tab, click File and select "New notebook" - among other things, if you haven't gone here before, this will create a "Colab Notebooks" folder in your Google Drive

Get files from My Google Drive on your computer

Expand and upload the HW00soln folder to Your Google Drive

  • On your computer:
    • Find and open the HW00soln.zip file
      • On Windows, click the "Extract all" icon at the top of the page when you open the file -- keep track of where it extracts the file to
      • On macOS,
  • In the Google Drive tab, double-click on the "Colab Notebooks" folder to open it
    • Right-click in the blank space and select "Folder Upload"
    • Go find where you extracted the "HW00soln" folder and drag it into the "Colab Notebooks" folder

Open and run the findfits.ipynb notebook

  • In the Google Drive tab, double-click on "Colab Notebooks" then "HW00soln" then "findfits.ipynb" -- Google Colab should automatically open a new tab with the "findfits.ipynb" notebook.
    • If your browser tries to open findfits.ipynb but says there's no way to preview it instead of opening Google Colab, try this:
      • At the top of the "no preview" page there should be a box with a down arrow on the right side
      • Click the down arrow to add apps
      • Scroll down in that window a little and Google Colaboratory should be there - click on it
      • Uninstall it, then install it
      • When you go back to the window, that box at the top will have "Open in Colaboratory" in it
  • In the "findfits.ipynb" tab, click "Runtime" and select "Run all". As the notebook is running, it should ask if you will permit your notebook to access your Google Drive files. You should allow it to...

Open the Pundit page for the assignment

  • In another tab in the same browser, go to Homework 0. Go through each of the problems and their solutions to make sure you have a good idea how they work.

At the end of lab


Maple

The book for assignments is [https://cad.eecs.umich.edu/ Circuit Analysis and Design' by Ulaby et at. It is a free download from their website.

When each worksheet is completed, you can save it and then you can export it as a PDF in Maple (the Export As under file).