Skip to article frontmatterSkip to article content

This is the mean of some random numbers using numpy.

import numpy as np
mean = np.mean(np.random.normal(size=100))
print(f"{mean=}")
θ=0f(x,θ)dθ\theta = \int_0^\infty f(x,\theta)d\theta

Use a LaTeX\LaTeX macro.

A=XTYA = X \trans Y

Here’s a tabset

R
Python
fizz_buzz <- function(fbnums = 1:50) {
  output <- dplyr::case_when(
    fbnums %% 15 == 0 ~ "FizzBuzz",
    fbnums %% 3 == 0 ~ "Fizz",
    fbnums %% 5 == 0 ~ "Buzz",
    TRUE ~ as.character(fbnums)
  )
  print(output)
}

fizz_buzz(3)

Program 1:fizz_buzz definition in R