Here's a Julia program that demonstrates several key features of the language:
# Import plotting package
using Plots
# 1. Multiple Dispatch and Type System
struct Circle
radius::Float64
end
Here's a Julia program that demonstrates several key features of the language:
# Import plotting package
using Plots
# 1. Multiple Dispatch and Type System
struct Circle
radius::Float64
end
# Corrected code based on column label error in previous attempt | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
# Define the data | |
data = { | |
'Model': ['M1', 'M1', 'M1 Pro', 'M1 Pro', 'M1 Max', 'M1 Max', 'M1 Ultra', 'M1 Ultra', | |
'M2', 'M2', 'M2 Pro', 'M2 Pro', 'M2 Max', 'M2 Max', 'M2 Ultra', 'M2 Ultra', | |
'M3', 'M3', 'M3 Pro', 'M3 Pro', 'M3 Max', 'M3 Max', 'M3 Ultra', 'M3 Ultra'], | |
'BW_GB_s': [68, 68, 200, 200, 400, 400, 800, 800, 100, 100, 200, 200, 400, 400, 800, 800, 100, 100, 150, 150, 300, 400, 800, 800], |
### Keybase proof | |
I hereby claim: | |
* I am jakehemmerle on github. | |
* I am jakehemmerle (https://keybase.io/jakehemmerle) on keybase. | |
* I have a public key whose fingerprint is C3AA 89FE 42B9 7125 4FEA 03EE ACD6 30AC 0C03 98B6 | |
To claim this, I am signing this object: |