{"id":22354327,"url":"https://github.com/jonmagic/linear-algebra-refresher-course","last_synced_at":"2025-03-26T12:40:41.022Z","repository":{"id":66375222,"uuid":"67573435","full_name":"jonmagic/linear-algebra-refresher-course","owner":"jonmagic","description":"My notes and code from taking the linear algebra refresher course on Udacity","archived":false,"fork":false,"pushed_at":"2016-09-07T05:02:08.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T13:43:46.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmagic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-07T04:57:29.000Z","updated_at":"2021-06-29T21:35:42.000Z","dependencies_parsed_at":"2023-02-22T02:30:20.116Z","dependency_job_id":null,"html_url":"https://github.com/jonmagic/linear-algebra-refresher-course","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flinear-algebra-refresher-course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flinear-algebra-refresher-course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flinear-algebra-refresher-course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Flinear-algebra-refresher-course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmagic","download_url":"https://codeload.github.com/jonmagic/linear-algebra-refresher-course/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245658961,"owners_count":20651517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T13:12:20.100Z","updated_at":"2025-03-26T12:40:41.018Z","avatar_url":"https://github.com/jonmagic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear Algebra Refresher Course\n\nMy notes and code for the [linear algebra refresher course on Udacity](https://classroom.udacity.com/courses/ud953).\n\n## Run Tests\n\n```bash\n$ script/test\n```\n\n## Setup For Quizzes\n\n```bash\n$ irb\n```\n\n```ruby\nrequire_relative \"lib/larc\"\nrequire \"matrix\"\n```\n\n## 1. Vectors\n\n### Quiz: Plus, minus, scalar multiplication\n\n```ruby\nLarc::Vector[8.218, -9.341] + Larc::Vector[-1.129, 2.111]\nVector[8.218, -9.341] + Vector[-1.129, 2.111]\n\nLarc::Vector[7.119, 8.215] - Larc::Vector[-8.223, 0.878]\nVector[7.119, 8.215] - Vector[-8.223, 0.878]\n\nLarc::Vector[1.671, -1.012, -0.318] * 7.41\nVector[1.671, -1.012, -0.318] * 7.41\n```\n\n### Quiz: Coding dot product and radians/degrees\n\n```ruby\nLarc::Vector[7.887, 4.138].inner_product(Larc::Vector[-8.802, 6.776])\nVector[7.887, 4.138].inner_product(Vector[-8.802, 6.776])\n\nLarc::Vector[-5.955, -4.904, -1.874].inner_product(Larc::Vector[-4.496, -8.755, 7.103])\nVector[-5.955, -4.904, -1.874].inner_product(Vector[-4.496, -8.755, 7.103])\n\nLarc::Vector[3.183, -7.627].radians(Larc::Vector[-2.668, 5.319])\nVector[3.183, -7.627].angle_with(Vector[-2.668, 5.319])\n\nLarc::Vector[7.35, 0.221, 5.188].degrees(Larc::Vector[2.751, 8.259, 3.985])\n(Vector[7.35, 0.221, 5.188].angle_with(Vector[2.751, 8.259, 3.985]) * (180 / Math::PI)).round(3)\n```\n\n### Quiz: Checking for parallelism and orthogonality\n\n```ruby\nLarc::Vector[-7.579, -7.88].parallel(Larc::Vector[22.737, 23.64])\nLarc::Vector[-7.579, -7.88].orthogonal(Larc::Vector[22.737, 23.64])\n\nLarc::Vector[-2.029, 9.97, 4.172].parallel(Larc::Vector[-9.231, -6.639, -7.245])\nLarc::Vector[-2.029, 9.97, 4.172].orthogonal(Larc::Vector[-9.231, -6.639, -7.245])\n\nLarc::Vector[-2.328, -7.284, -1.214].parallel(Larc::Vector[-1.821, 1.072, -2.94])\nLarc::Vector[-2.328, -7.284, -1.214].orthogonal(Larc::Vector[-1.821, 1.072, -2.94])\n\nLarc::Vector[2.118, 4.827].parallel(Larc::Vector[0, 0])\nLarc::Vector[2.118, 4.827].orthogonal(Larc::Vector[0, 0])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Flinear-algebra-refresher-course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmagic%2Flinear-algebra-refresher-course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Flinear-algebra-refresher-course/lists"}