Compare commits

..

12 Commits

Author SHA1 Message Date
7bc3520855
Convert "Zeno's Furniture" to typst
Some checks failed
CI / Typos (pull_request) Successful in 2m44s
CI / Typst formatting (pull_request) Successful in 4m26s
CI / Build (pull_request) Failing after 12m56s
2025-01-23 13:31:21 -08:00
f89ec34a63
Convert "Gallery" to typst 2025-01-23 13:15:34 -08:00
de13c46a18
Convert "Odd Dice" to typst 2025-01-23 13:15:34 -08:00
db7ea36df9
Convert "Travellers" to typst 2025-01-23 13:15:34 -08:00
8b796b36e8
Convert "Regex" to typst 2025-01-23 13:15:34 -08:00
65737c9da6
Convert "Prime Factors" to typst 2025-01-23 13:15:34 -08:00
151d05ea3a
Convert "Partition Products" to typst 2025-01-23 13:15:34 -08:00
eef1aa5c0e
Convert "Mario Kart" to typst 2025-01-23 13:15:34 -08:00
5cdd35ea72
Convert "Fuse Timers" to typst 2025-01-23 13:15:34 -08:00
8494666394
Convert "fmod" to typst 2025-01-23 13:15:34 -08:00
e8224846ab
Convert "A Familiar Concept" to typst 2025-01-23 13:15:34 -08:00
b9751385d1 Added if_solutions methods
All checks were successful
CI / Typst formatting (push) Successful in 9s
CI / Typos (push) Successful in 17s
CI / Build (push) Successful in 15m19s
Reviewed-on: #5
Co-authored-by: Mark <mark@betalupi.com>
Co-committed-by: Mark <mark@betalupi.com>
2025-01-23 13:08:50 -08:00
6 changed files with 144 additions and 159 deletions

View File

@ -137,7 +137,11 @@
}
}
#let notsolution(content) = {
#let if_solutions(content) = {
if show_solutions { content }
}
#let if_no_solutions(content) = {
if not show_solutions { content }
}

View File

@ -126,7 +126,7 @@ Fill the following tropical addition and multiplication tables
#let col = 10mm
#notsolution(
#if_no_solutions(
table(
columns: (1fr, 1fr),
align: center,

View File

@ -63,7 +63,7 @@ where all exponents represent repeated tropical multiplication.
Draw a graph of the tropical polynomial $f(x) = x^2 #tp 1x #tp 4$. \
#hint([$1x$ is not equal to $x$.])
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution([
$f(x) = min(2x , 1+x, 4)$, which looks like:
@ -132,7 +132,7 @@ How can we use the graph to determine these roots?
Graph $f(x) = -2x^2 #tp x #tp 8$. \
#hint([Use half scale. 1 box = 2 units.])
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution([
#graphgrid({
@ -210,7 +210,7 @@ and always produces $7$ for sufficiently large inputs.
#problem()
Graph $f(x) = 1x^2 #tp 3x #tp 5$.
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution([
The graphs of all three terms intersect at the same point:
@ -261,7 +261,7 @@ How are the roots of $f$ related to its coefficients?
#problem()
Graph $f(x) = 2x^2 #tp 4x #tp 4$.
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution(
graphgrid({

View File

@ -10,7 +10,7 @@ Consider the polynomial $f(x) = x^3 #tp x^2 #tp 3x #tp 6$. \
- use this graph to find the roots of $f$
- write (and expand) a product of linear factors with the same graph as $f$.
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution([
- Roots are 1, 2, and 3.
@ -48,7 +48,7 @@ Consider the polynomial $f(x) = x^3 #tp x^2 #tp 6x #tp 6$. \
- use this graph to find the roots of $f$
- write (and expand) a product of linear factors with the same graph as $f$.
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution([
- Roots are 1, 2.5, and 2.5.
@ -82,7 +82,7 @@ Consider the polynomial $f(x) = x^3 #tp 6x^2 #tp 6x #tp 6$. \
- use this graph to find the roots of $f$
- write (and expand) a product of linear factors with the same graph as $f$.
#notsolution(graphgrid(none))
#if_no_solutions(graphgrid(none))
#solution([
- Roots are 2, 2, and 2.

View File

@ -1,150 +0,0 @@
\documentclass[
solutions,
singlenumbering,
nopagenumber
]{../../../lib/tex/ormc_handout}
\usepackage{../../../lib/tex/macros}
\makeatletter
\newcommand{\thisone}{
\if@solutions
{\color{red} $\Leftarrow$ \texttt{this one}}
\else\fi
}
\title{Zeno's Furniture}
\uptitlel{Warm Ups}
\uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
Zeno Furniture sells exactly five types of furniture:
\begin{itemize}
\item Footstools
\item Hutches
\item Sideboards
\item Tables
\item Vanities
\end{itemize}
Irene buys four items, each of a different type,
and each made of exactly one kind of wood:
\begin{itemize}
\item Maple
\item Oak
\item Pine
\item Rosewood
\end{itemize}
The following conditions govern Irene's purchases:
\begin{itemize}
\item Any vanity she buys is Maple.
\item Any rosewood item she buys is a sideboard.
\item If she buys a vanity, she does not buy a footstool.
\item If she buys a footstool, she also buys a table made of the same material.
\item Irene does not buy an oak table.
\item Exactly two of the items she buys are made of the same kind of wood.
\end{itemize}
\problem{}
Which one of the following could be an accurate
list of the items Irene buys? \par
\begin{itemize}
\item maple footstool, maple hutch, rosewood sideboard, maple table
\item oak hutch, rosewood sideboard, pine table, oak vanity
\item rosewood hutch, maple sideboard, oak table, maple vanity
\item pine footstool, rosewood sideboard, pine table, maple vanity
\item maple footstool, pine hutch, oak sideboard, maple table \thisone{}
\end{itemize}
\vfill
\problem{}
If Irene buys one item made of rosewood and two items made
of maple, then which one of the following pairs could be two
of the items she buys?
\begin{itemize}
\item a rosewood sideboard and an oak footstool
\item an oak hutch and a pine sideboard
\item an oak hutch and a maple table \thisone{}
\item a maple sideboard and a maple vanity
\item a maple hutch and a maple table
\end{itemize}
\vfill
\pagebreak
\problem{}
Which one of the following is a complete and accurate list
of all the woods any footstool that Irene buys could be made of?
\begin{itemize}
\item maple, oak
\item maple, pine \thisone{}
\item maple, rosewood
\item maple, oak, pine
\item maple, oak, pine, rosewood
\end{itemize}
\vfill
\problem{}
Suppose Irene buys a footstool. Then which one of the following
is a complete and accurate list of items and any one of which she
could buy in maple?
\begin{itemize}
\item footstool, hutch, sideboard, table, vanity
\item footstool, hutch, sideboard, table \thisone{}
\item footstool, hutch, sideboard
\item footstool, hutch
\item footstool
\end{itemize}
\vfill
\problem{}
Which one of the following cannot be the two items Irene
buys that are made of the same wood as each other?
\begin{itemize}
\item footstool, hutch \thisone{}
\item hutch, sideboard
\item hutch, table
\item sideboard, vanity
\item table, vanity
\end{itemize}
\vfill
\pagebreak
\problem{}
If Irene does not buy an item made of maple, then each of the
following must be true except...
\begin{itemize}
\item Irene buys a footstool
\item Irene buys a pine hutch \thisone{}
\item Irene buys a rosewood sideboard
\item Irene buys exactly one item made of oak
\item Irene buys exactly two items made of pine
\end{itemize}
\vfill
\problem{}
Suppose the condition that Irene does not buy an oak table is
replaced with the condition that she does not buy a pine table.
If all the other conditions hold as originally given, which of the
following cannot be true?
\begin{itemize}
\item Irene buys an oak footstool.
\item Irene buys a hutch and a table made of the same wood.
\item Irene buys a vanity, but she does not buy an oak table.
\item Irene buys a maple table and an oak hutch.
\item Irene buys a rosewood sideboard and exactly two items made of pine. \thisone{}
\end{itemize}
\vfill
\pagebreak
\end{document}

View File

@ -0,0 +1,131 @@
#import "@local/handout:0.1.0": *
#show: doc => handout(
doc,
quarter: link(
"https://betalupi.com/handouts",
"betalupi.com/handouts",
),
title: [Warm-Up: Zeno's Furniture],
by: "Mark",
)
#let thisone = if_solutions(
text(fill: ored, [#sym.arrow.l.double.long `this one`]),
)
Zeno's Furniture sells exactly five types of furniture: \
Footstools, Hutches, Sideboards, Tables, and Vanities.
#v(3mm)
Each can be made of exactly one kind of wood: \
Maple, Oak, Pine, or Rosewood
#v(3mm)
Irene buys four items, each of a different type. \
The following conditions govern Irene's purchases:
- Any vanity she buys is Maple.
- Any rosewood item she buys is a sideboard.
- If she buys a vanity, she does not buy a footstool.
- If she buys a footstool, she also buys a table made of the same material.
- Irene does not buy an oak table.
- Exactly two of the items she buys are made of the same kind of wood.
#v(5mm)
#problem()
Which one of the following could be an accurate
list of the items Irene buys? \
- maple footstool, maple hutch, rosewood sideboard, maple table
- oak hutch, rosewood sideboard, pine table, oak vanity
- rosewood hutch, maple sideboard, oak table, maple vanity
- pine footstool, rosewood sideboard, pine table, maple vanity
- maple footstool, pine hutch, oak sideboard, maple table #thisone
#v(1fr)
#problem()
If Irene buys one item made of rosewood and two items made
of maple, then which one of the following pairs could be two
of the items she buys?
- a rosewood sideboard and an oak footstool
- an oak hutch and a pine sideboard
- an oak hutch and a maple table #thisone
- a maple sideboard and a maple vanity
- a maple hutch and a maple table
#v(1fr)
#pagebreak()
#problem()
Which one of the following is a complete and accurate list
of all the woods any footstool that Irene buys could be made of?
- maple, oak
- maple, pine #thisone
- maple, rosewood
- maple, oak, pine
- maple, oak, pine, rosewood
#v(1fr)
#problem()
Suppose Irene buys a footstool. Then which one of the following
is a complete and accurate list of items and any one of which she
could buy in maple?
- footstool, hutch, sideboard, table, vanity
- footstool, hutch, sideboard, table #thisone
- footstool, hutch, sideboard
- footstool, hutch
- footstool
#v(1fr)
#problem()
Which one of the following cannot be the two items Irene
buys that are made of the same wood as each other?
- footstool, hutch #thisone
- hutch, sideboard
- hutch, table
- sideboard, vanity
- table, vanity
#v(1fr)
#pagebreak()
#problem()
If Irene does not buy an item made of maple, then each of the
following must be true except...
- Irene buys a footstool
- Irene buys a pine hutch #thisone
- Irene buys a rosewood sideboard
- Irene buys exactly one item made of oak
- Irene buys exactly two items made of pine
#v(1fr)
#problem()
Suppose the condition that Irene does not buy an oak table is
replaced with the condition that she does not buy a pine table.
If all the other conditions hold as originally given, which of the
following cannot be true?
- Irene buys an oak footstool.
- Irene buys a hutch and a table made of the same wood.
- Irene buys a vanity, but she does not buy an oak table.
- Irene buys a maple table and an oak hutch.
- Irene buys a rosewood sideboard and exactly two items made of pine. #thisone
#v(1fr)