Skip to content

Commit

Permalink
[create-pull-request] automated change (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Christ <[email protected]>
  • Loading branch information
github-actions[bot] and BeastyBlacksmith authored Oct 28, 2023
1 parent 4e70749 commit b6ae2e3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 27 deletions.
11 changes: 0 additions & 11 deletions episodes/05_Write_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,6 @@ Pkg.instantiate()

````
Activating project at `~/projects/trebuchet`
Precompiling project...
 ✓ OpenSSL_jll
 ✓ OpenSSL
 ✓ HTTP
 ✓ WebSockets
 ✓ WebIO
 ✓ JSExpr
 ✓ Trebuchet
7 dependencies successfully precompiled in 416 seconds. 160 already precompiled.
3 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions
````

Importing the package under its modified name
Expand Down
30 changes: 15 additions & 15 deletions episodes/07_Loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ Trebuchet( rand() * 500, rand() * pi/2 )

````output
2-element Trebuchet:
199.20577943788413
1.3175676282878894
376.178140632858
1.202932191168969
````

will give her a Trebuchet with a weight between 0 and 500 and a release angle between 0 and pi/2 radians at random.
Expand All @@ -121,9 +121,9 @@ distances = [shoot_distance(Trebuchet(rand() * 500, rand() * pi / 2), env) for _

````output
3-element Vector{Float64}:
109.63015948619828
26.241893505479297
42.721289252273955
116.46124636135293
52.7811798347779
104.89623248181303
````

This is called an _array comprehension_.
Expand All @@ -138,16 +138,16 @@ distances = [(w,a) => shoot_distance(Trebuchet(w, a), env) for (w, a) in zip(wei

````output
10-element Vector{Pair{Tuple{Float64, Float64}, Float64}}:
(190.20671680295277, 0.46833555853995784) => 105.35107143909875
(478.1865359891392, 0.5300556485613425) => 118.30720084397312
(486.93150499743587, 0.3266640654580006) => 109.46465880298848
(482.14935572302176, 0.12719150178861877) => 84.4818142924443
(19.24228958100732, 1.1311868010145723) => 3.0834927704117057
(233.70715374384997, 0.9844292611959172) => 92.48538338520068
(322.8906658023918, 0.3793433438873054) => 110.49554634124097
(70.71586061650947, 1.3112085094572539) => 33.712397304286064
(369.04715755142337, 0.7897355893853809) => 112.25274271811487
(417.9989625732521, 1.3286071027399737) => 47.89370694935854
(407.1030550189028, 0.3891512578388659) => 112.09184022880909
(129.3962122859022, 0.47410570172882877) => 97.15862611465982
(460.1656325336061, 0.985034729119892) => 99.11003543196146
(110.51399719143818, 1.1558775471416098) => 61.0114196763061
(265.81455100189766, 0.8247629754893243) => 104.58648053317526
(96.13278884246179, 0.27533670195930326) => 77.83567463291564
(12.485336793085056, 0.9864156252374033) => 0.6815707596179541
(352.3464102053692, 1.2580446062583366) => 59.37739417570197
(391.36673118879764, 1.195168563100913) => 73.94484391737066
(477.81826452742524, 0.048738054505380206) => 69.01930432439035
````

### Gradient descent
Expand Down
2 changes: 1 addition & 1 deletion episodes/10_Adding_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end
````

````output
Test.DefaultTestSet("Test arithmetic equalities", Any[], 1, false, false, true, 1.698245666140703e9, 1.698245666189045e9, false)
Test.DefaultTestSet("Test arithmetic equalities", Any[], 1, false, false, true, 1.698515973154304e9, 1.698515973191453e9, false)
````

With this Melissa can run her test using the pkg mode of the REPL:
Expand Down

0 comments on commit b6ae2e3

Please sign in to comment.