https://github.com/axect/hep_cs
Study numerical algorithm
https://github.com/axect/hep_cs
c go julia mathematica matlab python
Last synced: 6 months ago
JSON representation
Study numerical algorithm
- Host: GitHub
- URL: https://github.com/axect/hep_cs
- Owner: Axect
- Created: 2017-07-03T05:19:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T08:47:37.000Z (over 8 years ago)
- Last Synced: 2025-07-19T10:05:43.984Z (6 months ago)
- Topics: c, go, julia, mathematica, matlab, python
- Language: Python
- Homepage:
- Size: 11.8 MB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HEP-COSMO Coding Study
Provided by Tae Geun Kim
## 1. Create Github Account
1. Install Git
* Ubuntu : sudo apt-get install git
* Windows : Just Search "Git windows" or "윈도우 Git"
2. Create Github account
* https://github.com
3. If you create account, then please email to me (edeftg@gmail.com) - Contain your ID.
## 2. Use Markdown
* Github can read markdown. Markdown is simple and great tool to explain code
* For example :
* Python
```python
import numpy as np
import pylab as plt
import seaborn as sns
import pandas as pd
class Derivative:
def __init__(self, f):
self.f = f
self.h = 1e-04
def Differentiate(self, x):
return (self.f(x+self.h) - self.f(x))/self.h
def __call__(self, x):
return Differentiate(x)
```
* Go
```go
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) string {
if x >= 0 {
return fmt.SPrint(math.Sqrt(x))
}
return Sqrt(-x) + "i"
}
```
* All of this code is written by Markdown. (And even this document also)
* You should learn markdown to use github
## 3. Git
1. Create repository at Github (No initialize)
2. Make some directory on your computer (e.g SM)
3. Make any files (e.g Higgs.txt)
4. Should initialize your folder as follows:
1. git init
2. git remote add Any_Name(e.g origin) https://github.com/Your_Github_ID/Repository_Name
3. git config --global user.name Your_Name
4. git config --global user.email Your_Email
5. git add Higgs.txt
6. git commit -am "Any_Message(Add some file or fix some file)"
7. git push Any_Name(From ii.) master
5. Now you can use git & github. Here is the brief manual:
* If you fix file only :
* git commit -am "Log_Message"
* git push Any_Name master
* If you add some file to directory :
* git add File_Name
* git commit -am "Log_Message"
* git push Any_Name master
## 4. (Optional) Python - Jupyter
1. Search "Anaconda" at Google.
2. Download Python3.6 ver Conda.
3. Export path? Y
4. When download finished, type "jupyter notebook"
* Windows : Search Anaconda prompt in your computer and type on that
* Linux : Just type on bash shell
## 5. (Optional) Go, Python - VSCode
1. Download VScode (Visual Studio Code)
2. Use it with various extensions