Skip to content

Commit

Permalink
Demo: add variable to Math code example
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 23, 2024
1 parent b64defe commit a4bf8b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions demo/demo.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ from your Markdown code.
## Math

.sourceresult
If we try to calculate the **surface** of a circle of **radius 8**,
we'll find out it's **.multiply {.pow {8} to:{2}} by:{.pi}**
.var {radius} {8}

If we try to calculate the **surface** of a circle of **radius .radius**,
we'll find out it's **.multiply {.pow {.radius} to:{2}} by:{.pi}**

## Scripting {#scripting-basic}

Expand Down

0 comments on commit a4bf8b1

Please sign in to comment.