-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Conditional statements in Julia | ||
# Navendu Pottekkat | 2020 | Apache-2.0 License | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
if true | ||
println("It's true!") | ||
else | ||
println("It's false!") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Functions in Julia | ||
# Navendu Pottekkat | 2020 | Apache-2.0 License | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
function vol_sphere(r) | ||
# Julia allows Unicode names (in UTF-8 encoding) | ||
# Either "pi" or the symbol π can be used | ||
return 4/3*pi*r^3 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Hello World! in Julia | ||
# Navendu Pottekkat | 2020 | Apache-2.0 License | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
println("Hello World!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# for loops in Julia | ||
# Navendu Pottekkat | 2020 | Apache-2.0 License | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
for i in 1:5 | ||
print(i, ", ") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<p align="center"> | ||
<img src="./logo.svg"> | ||
</p> | ||
|
||
# Julia |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.