You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
249 B

# # Rational numbers
#
# In julia rational numbers can be constructed with the `//` operator.
# Lets define two rational numbers, `x` and `y`:
x = 1 // 3
#-
y = 2 // 5
# When adding `x` and `y` together we obtain a new rational number:
z = x + y