Test Quarto Capabilities

Images

Failed to load JPG image

Python

Import numpy, define Python function, and print Fibonnacci sequence.

Code
# label: fig-polar
# fig-cap: "A line plot on a polar axis"

import numpy as np;

def mm_fib(n):
    return (np.matrix([[2,1],[1,1]])**(n//2))[0,(n+1)%2]

print([mm_fib(i) for i in range(20)])
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181]

R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. Quarto supports R Markdown & Knit

{r cars} summary(cars)