1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/julia_course.git synced 2024-09-14 12:47:20 +00:00
Julia_Course/day-3/tasks.jl
2024-05-15 02:54:36 +02:00

61 lines
1.5 KiB
Julia

### A Pluto.jl notebook ###
# v0.19.42
using Markdown
using InteractiveUtils
# ╔═╡ 392c0b6d-a652-4fea-91d0-a1c2a428c3e7
md"""
# Read CSV file
Read the CSV file `resources/fitting_task_data.csv` into a dataframe.
Make sure you use some keyword arguments to be able to parse the table data in the right way.
Create a new dataframe `data` that contains only two columns `t` and `h` that include the errors in them.
You can optionally add units to the column values.
Make sure you import needed Packages!
"""
# ╔═╡ 19248cb7-ba33-4ec7-940c-2ac3b754becf
# Your code starts here
# ╔═╡ afbef99d-39cb-4e6f-8333-c818e49142ef
md"""
# Scatter plot
Plot the height `h` against the time `t` in the dataframe `data` using a `scatter` plot.
Make sure you have labels, errorbars and a title.
Save your figure in the directory `resources`.
"""
# ╔═╡ a7b70109-4fb0-47db-8f1f-575bd5d6d94e
# Your code starts here
# ╔═╡ c060139e-10bf-4e08-903a-7f4b1ad7d1f2
md"""
# Fitting
Fit the data to the following model:
$h(t, a) = \frac{1}{2} a t^2$
The fit should give you the value for $a$.
Now plot the fit result with the determined value of $a$.
"""
# ╔═╡ 86d29117-9c0d-43f2-a1f5-51ef83dbe84c
# Your code starts here
# ╔═╡ Cell order:
# ╟─392c0b6d-a652-4fea-91d0-a1c2a428c3e7
# ╠═19248cb7-ba33-4ec7-940c-2ac3b754becf
# ╟─afbef99d-39cb-4e6f-8333-c818e49142ef
# ╠═a7b70109-4fb0-47db-8f1f-575bd5d6d94e
# ╟─c060139e-10bf-4e08-903a-7f4b1ad7d1f2
# ╠═86d29117-9c0d-43f2-a1f5-51ef83dbe84c