JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, calc}

\begin{document}

\tikzset{
    phase/.style={rectangle, draw=orange!80!black, fill=orange!30, rounded corners, minimum width=2.5cm, minimum height=1cm, text width=2.3cm, align=center, font=\small\sffamily\bfseries},
    actor/.style={ellipse, draw=blue!80!black, fill=blue!20, minimum width=2cm, minimum height=1cm, text width=1.8cm, align=center, font=\small\sffamily},
    arrow/.style={-Stealth, thick, bend left=10},
    label/.style={font=\tiny\sffamily, midway, fill=white, inner sep=1pt}
}

\begin{tikzpicture}[node distance=2cm and 3cm]

    \node[phase] (prep) {Preparation Phase};
    \node[actor, below left=of prep] (ms1) {Member States};
    \node[actor, below right=of prep] (auc1) {African Union Commission};
    
    \node[phase, below=4cm of prep] (conduct) {Conducting Phase};
    \node[actor, left=of conduct] (chair) {Chairperson};
    \node[actor, right=of conduct] (hos) {Heads of State};
    \node[actor, below left=of conduct] (comm) {Committees};
    \node[actor, below right=of conduct] (obs) {Observers};
    
    \node[phase, below=4cm of conduct] (res) {Resolution Phase};
    
    \node[phase, below=2cm of res] (follow) {Follow-Up Phase};
    \node[actor, below left=of follow] (ms2) {Member States};
    \node[actor, below right=of follow] (auc2) {African Union Commission};

    \draw[arrow] (prep) to node[label] {Submits proposals} (ms1);
    \draw[arrow] (ms1) to node[label] {Proposals handed to} (auc1);
    \draw[arrow] (auc1) to node[label] {Organizes meeting} (conduct);
    \draw[arrow] (conduct) to node[label] {Chaired by} (chair);
    \draw[arrow] (chair) to node[label] {Engages with} (hos);
    \draw[arrow] (chair) to node[label] {Supported by} (comm);
    \draw[arrow] (chair) to node[label] {Includes} (obs);
    \draw[arrow] (conduct) to node[label] {Leads to} (res);
    \draw[arrow] (res) to node[label] {Adoption by} (ms2);
    \draw[arrow] (res) to node[label] {Monitored by} (auc2);
    \draw[arrow] (ms2) to node[label] {Implements actions} (follow);
    \draw[arrow] (auc2) to node[label] {Reports progress} (follow);

\end{tikzpicture}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees,shadows}

\begin{document}
\begin{tikzpicture}[
    mindmap,
    grow cyclic,
    every node/.style={concept, execute at begin node=\hskip0pt},
    level 1/.append style={level distance=4.5cm,sibling angle=60},
    level 2/.append style={level distance=3cm,sibling angle=45}
]
\node[concept color=blue!60, font=\Large\bfseries] {Key Innovations in Weaponry during WWII}
    child[concept color=red!60] { node {Radar}
        child { node {Enhanced air defense} }
        child { node {Improved naval operations} }
    }
    child[concept color=orange!60] { node {Atomic Bomb}
        child { node {Nuclear deterrence} }
        child { node {End of WWII} }
        child { node {Long-term geopolitical consequences} }
    }
    child[concept color=green!60] { node {Jet Engines}
        child { node {Faster aircraft} }
        child { node {Changed aerial combat dynamics} }
    }
    child[concept color=purple!60] { node {Codebreaking}
        child { node {Better strategy planning} }
        child { node {Shortened the war} }
    }
    child[concept color=yellow!60] { node {Assault Rifles}
        child { node {Redefined infantry combat} }
        child { node {Increased firepower and mobility} }
    }
    child[concept color=cyan!60] { node {Rockets and Missiles}
        child { node {Introduction of ballistic missile technology} }
        child { node {Early space exploration advancements} }
    };
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning}

\begin{document}
\begin{tikzpicture}[
    node distance = 1.5cm and 2cm,
    block/.style = {rectangle, draw, fill=blue!20, 
                    text width=5em, text centered, rounded corners, minimum height=3em},
    line/.style = {draw, -latex', line width=1pt},
    cloud/.style = {draw, ellipse, fill=red!20, minimum height=2em}
]

% Define nodes
\node[cloud] (grid) {Main Grid Power};
\node[block, right=of grid] (ats) {ATS};
\node[block, below=of grid] (generator) {Diesel Generator};
\node[block, right=of ats] (ups) {UPS};
\node[block, below=of ups] (battery) {Battery Bank};
\node[block, right=of ups] (inverter) {Power Inverter};
\node[block, right=of inverter] (panel) {Distribution Panel};
\node[block, above=of panel] (monitor) {Power Monitoring System};
\node[block, below=of panel] (surge) {Surge Protector};

% Connect nodes
\path[line] (grid) -- (ats);
\path[line] (generator) |- (ats);
\path[line] (ats) -- (ups);
\path[line] (ups) -- (inverter);
\path[line] (battery) -- (ups);
\path[line] (inverter) -- (panel);
\path[line] (panel) -- (surge);
\path[line] (monitor) -- (panel);

% Add labels
\node[text width=8em, align=center, below=0.5cm of generator] {\small Secondary power source};
\node[text width=8em, align=center, below=0.5cm of battery] {\small Energy storage};
\node[text width=8em, align=center, above=0.5cm of ups] {\small Short-term backup};
\node[text width=8em, align=center, above=0.5cm of inverter] {\small DC to AC conversion};
\node[text width=8em, align=center, right=0.5cm of panel] {\small To broadcasting equipment};

% Title
\node[font=\large\bfseries, above=1cm of monitor] {Backup Power System for Continuous News Broadcasting};

\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, calc}

\begin{document}

\begin{tikzpicture}[
    node distance = 2cm and 3cm,
    every node/.style = {font=\sffamily\small},
    metric/.style = {draw, fill=yellow!20, rounded corners, minimum width=2.5cm, minimum height=1cm},
    main/.style = {draw, fill=red!20, rounded corners, minimum width=4cm, minimum height=1.5cm},
    arrow/.style = {-Latex, thick, blue}
]

% Main node
\node[main] (overall) {Overall Performance};

% Metric nodes
\node[metric, above left=of overall] (goals) {Goals Scored};
\node[metric, left=of overall] (assists) {Assists};
\node[metric, below left=of overall] (pass) {Pass Accuracy};
\node[metric, above right=of overall] (tackles) {Tackles};
\node[metric, right=of overall] (interceptions) {Interceptions};
\node[metric, below right=of overall] (fitness) {Fitness Level};
\node[metric, below=of overall] (distance) {Distance Covered};

% Arrows and labels
\foreach \from/\to/\label in {
    overall/goals/number,
    overall/assists/number,
    overall/pass/\%,
    overall/tackles/number,
    overall/interceptions/number,
    overall/fitness/\%,
    overall/distance/km
} {
    \draw[arrow] (\from) -- (\to) node[midway, fill=white, font=\tiny] {Measured in \label};
}

% Title
\node[align=center, font=\Large\bfseries, text width=12cm] at ($(overall)+(0,4)$) 
    {Player Performance Statistics:\\A Detailed Comparison of Match Performance Metrics Over a Season};

\end{tikzpicture}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows.meta, calc, positioning}

\begin{document}

\begin{tikzpicture}[
    node distance = 4cm,
    every node/.style = {draw, rounded corners, font=\sffamily, align=center, minimum width=2.5cm, minimum height=2cm},
    stage/.style = {fill=cyan!20},
    transition/.style = {-Stealth, thick, draw=orange!80!black},
    label/.style = {font=\footnotesize\itshape, fill=none, draw=none, text=purple}
]

% Nodes
\node[stage] (egg) {Egg Stage\\[2ex]\footnotesize 12-36 eggs};
\node[stage, right=of egg] (incubation) {Incubation\\[2ex]\footnotesize 55-60 days};
\node[stage, below right=of incubation] (hatchling) {Hatchlings\\[2ex]\footnotesize 18-24 inches};
\node[stage, below left=of hatchling] (juvenile) {Juvenile Stage\\[2ex]\footnotesize Rapid growth};
\node[stage, left=of juvenile] (maturation) {Sexual Maturity\\[2ex]\footnotesize 3-5 years old};
\node[stage, above left=of maturation] (adult) {Adult Stage\\[2ex]\footnotesize 12-19 feet};
\node[stage, above=of egg] (reproduction) {Reproduction};

% Edges
\draw[transition] (egg) to node[label, above] {Incubation} (incubation);
\draw[transition] (incubation) to node[label, right] {Hatching} (hatchling);
\draw[transition] (hatchling) to node[label, below] {Growth} (juvenile);
\draw[transition] (juvenile) to node[label, below] {Maturing} (maturation);
\draw[transition] (maturation) to node[label, left] {Mature} (adult);
\draw[transition] (adult) to node[label, above] {Mating} (reproduction);
\draw[transition] (reproduction) to node[label, right] {Egg Laying} (egg);

% Cycle label
\node[font=\Large\bfseries, text=teal, rotate=45] at ($(incubation)!0.5!(juvenile)$) {Life Cycle of\\Burmese Python};

\end{tikzpicture}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, shapes, positioning, quotes}

\begin{document}

\begin{tikzpicture}[
    node distance = 1.5cm and 3cm,
    box/.style = {
        draw, 
        rectangle, 
        rounded corners, 
        minimum width=2.5cm, 
        minimum height=1.5cm, 
        align=center,
        font=\sffamily\small,
        fill=cyan!20
    },
    arr/.style = {
        -Stealth,
        thick,
        blue!50!black
    }
]

% Nodes
\node[box] (aid) {Humanitarian\\Aid};
\node[box, below left=of aid] (funding) {Funding};
\node[box, below right=of aid] (ngo) {Local NGOs};
\node[box, below=of funding] (logistics) {Logistics};
\node[box, below=of ngo] (centers) {Distribution\\Centers};
\node[box, below left=of logistics] (supply) {Food Supply};
\node[box, left=of supply] (farming) {Local Farming};
\node[box, below=of centers] (beneficiaries) {Beneficiaries};

% Edges
\draw[arr] (aid) to["Provides"] (funding);
\draw[arr] (aid) to["Partners with"] (ngo);
\draw[arr] (funding) to["Supports"] (logistics);
\draw[arr] (logistics) to["Transports"] (supply);
\draw[arr] (ngo) to["Assists"] (centers);
\draw[arr] (supply) to["Delivers to"] (centers);
\draw[arr] (centers) to["Distributes to"] (beneficiaries);
\draw[arr] (farming) to["Supplements"] (supply);

% Legend
\node[draw, rectangle, rounded corners, fill=white, text opacity=1, 
      minimum width=5cm, anchor=north west] 
at (current bounding box.north east) {
    \begin{tabular}{l}
        \textbf{Food Chain in War-Torn Countries} \\
        Showing the role of humanitarian \\
        aid in stabilizing food supply
    \end{tabular}
};

\end{tikzpicture}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning}

\begin{document}

\begin{tikzpicture}[
    node distance = 2cm and 3cm,
    galaxy/.style = {rectangle, rounded corners, draw=blue!50, fill=blue!20, thick, minimum size=1cm},
    feature/.style = {rectangle, draw=green!50, fill=green!20, thick, minimum size=1cm},
    detail/.style = {ellipse, draw=red!50, fill=red!20, thick, minimum size=0.8cm},
    line/.style = {draw, -latex', line width=0.8pt}
]

% Main galaxy nodes
\node[galaxy] (elliptical) {Elliptical Galaxy};
\node[galaxy, below=of elliptical] (spiral) {Spiral Galaxy};
\node[galaxy, below=of spiral] (irregular) {Irregular Galaxy};

% Feature nodes
\node[feature, right=of elliptical] (star_pop) {Star Population};
\node[feature, below=of star_pop] (shape) {Shape};
\node[feature, below=of shape] (size) {Size and Mass};

% Detail nodes for Elliptical
\node[detail, right=of star_pop] (ell_stars) {Old Stars};
\node[detail, right=of shape] (ell_shape) {Spherical/Oval};
\node[detail, right=of size] (ell_size) {Varies Greatly};

% Detail nodes for Spiral
\node[detail, right=of ell_stars] (spiral_stars) {Old and Young Stars};
\node[detail, right=of ell_shape] (spiral_shape) {Disc with Arms};
\node[detail, right=of ell_size] (spiral_size) {Medium to Large};

% Detail nodes for Irregular
\node[detail, right=of spiral_stars] (irr_stars) {Young Stars};
\node[detail, right=of spiral_shape] (irr_shape) {No Regular Shape};
\node[detail, right=of spiral_size] (irr_size) {Relatively Small};

% Connections
\foreach \i in {elliptical,spiral,irregular}
    \foreach \j in {star_pop,shape,size}
        \draw[line] (\i) -- (\j);

\draw[line] (star_pop) -- (ell_stars);
\draw[line] (star_pop) -- (spiral_stars);
\draw[line] (star_pop) -- (irr_stars);

\draw[line] (shape) -- (ell_shape);
\draw[line] (shape) -- (spiral_shape);
\draw[line] (shape) -- (irr_shape);

\draw[line] (size) -- (ell_size);
\draw[line] (size) -- (spiral_size);
\draw[line] (size) -- (irr_size);

\end{tikzpicture}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}

\begin{document}

\begin{tikzpicture}[
    mindmap,
    grow cyclic,
    every node/.style={concept, execute at begin node=\hskip0pt},
    level 1/.append style={level distance=4.5cm,sibling angle=60},
    level 2/.append style={level distance=3cm,sibling angle=45},
    font=\sffamily
]

\node[concept color=orange!70, text=white] {Monthly Budget\\Breakdown}
    child[concept color=blue!60] { node {Phone Case}
        child { node {OtterBox} }
        child { node {Spigen} }
        child { node {UAG} }
    }
    child[concept color=green!60] { node {Screen\\Protector}
        child { node {ZAGG} }
        child { node {amFilm} }
        child { node {Belkin} }
    }
    child[concept color=red!60] { node {Apps \&\\Subscriptions}
        child { node {Task Manager} }
        child { node {Health Tracker} }
        child { node {Spotify} }
        child { node {Netflix} }
    }
    child[concept color=purple!60] { node {Data Plan}
        child { node {Verizon} }
        child { node {AT\&T} }
        child { node {T-Mobile} }
    }
    child[concept color=yellow!70, text=black] { node {Accessories}
        child { node {Anker} }
        child { node {Belkin} }
        child { node {Sony} }
        child { node {JBL} }
    }
    child[concept color=cyan!60] { node {Insurance}
        child { node {AppleCare+} }
        child { node {SquareTrade} }
    };

\end{tikzpicture}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, positioning, quotes}

\definecolor{nodecolor}{RGB}{51,153,255}
\definecolor{edgecolor}{RGB}{255,128,0}

\begin{document}
\begin{tikzpicture}[
    node distance = 4cm,
    every node/.style = {circle, draw=nodecolor, fill=nodecolor!20, font=\sffamily\bfseries, minimum size=2cm},
    every edge/.style = {draw=edgecolor, -Stealth, thick},
    every edge quotes/.style = {auto, text=black, font=\sffamily\small\itshape, inner sep=2pt, pos=0.5}
]

\node (1) {Ingredients};
\node (2) [right=of 1] {Suppliers};
\node (3) [below right=of 2] {Fast Food Chains};
\node (4) [below left=of 3] {Customers};
\node (5) [left=of 4] {Waste Management};
\node (6) [above left=of 5] {Recycling Plants};

\path
    (1) edge["supply ingredients"] (2)
    (2) edge["sell produce"] (3)
    (3) edge["serve food"] (4)
    (4) edge["create waste"] (5)
    (5) edge["collect waste"] (6)
    (6) edge["supply raw materials"] (1);

\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgf-pie}
\usepackage{pgfplots}
\usepackage{booktabs}

\definecolor{hackneydarkgreen}{RGB}{0,105,60}
\definecolor{hackneygreen}{RGB}{0,166,81}
\definecolor{hackneyorange}{RGB}{243,146,0}
\definecolor{hackneyyellow}{RGB}{255,221,0}

\begin{document}
\begin{tikzpicture}
\pie[
    color={hackneydarkgreen,hackneygreen,hackneyorange,hackneyyellow},
    radius=2,
    text=legend
]{32/Education, 28/Environment, 24/Youth, 16/Health}
\end{tikzpicture}

\begin{tikzpicture}
\begin{axis}[
    width=8cm,
    height=6cm,
    ybar,
    bar width=7pt,
    xlabel={},
    ylabel={Expense (£1000)},
    symbolic x coords={Education,Environment,Youth,Health},
    xtick=data,
    xticklabel style={rotate=45,anchor=east},
    ymajorgrids=true,
    ymin=0,
    ymax=40,
    scaled y ticks=false,
    enlarge x limits=0.2,
]
\addplot[fill=hackneydarkgreen] coordinates {
    (Education,30) (Environment,30) (Youth,25) (Health,15)
};
\addplot[fill=hackneygreen] coordinates {
    (Education,25) (Environment,20) (Youth,20) (Health,10)
};
\addplot[fill=hackneyorange] coordinates {
    (Education,25) (Environment,20) (Youth,15) (Health,15)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{skins}

\definecolor{questioncolor}{RGB}{0,100,0}

\begin{document}

\begin{tcolorbox}[
    enhanced,
    colback=white,
    colframe=questioncolor,
    boxrule=1pt,
    arc=5pt,
    outer arc=5pt,
    drop fuzzy shadow=questioncolor,
]
\color{questioncolor}
\sffamily

In a musical ensemble, the energy-momentum tensor $T^{\mu\nu}$ of a string instrument player is given by:

\[T^{\mu\nu} = \begin{pmatrix}
E & p_x & p_y & p_z \\
p_x & \sigma_{xx} & \sigma_{xy} & \sigma_{xz} \\
p_y & \sigma_{yx} & \sigma_{yy} & \sigma_{yz} \\
p_z & \sigma_{zx} & \sigma_{zy} & \sigma_{zz}
\end{pmatrix}\]

where $E$ represents the player's energy, $p_i$ are momentum components, and $\sigma_{ij}$ are stress tensor components. To optimize instrument placement and reduce physical strain, you need to minimize the trace of the stress tensor. If $\sigma_{xx} = 3$, $\sigma_{yy} = 2$, and $\sigma_{zz} = 1$ (all in arbitrary units), calculate the trace of the stress tensor.

\end{tcolorbox}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{tikz}

\definecolor{questionbg}{RGB}{240,248,255}
\definecolor{questionborder}{RGB}{70,130,180}

\begin{document}

\begin{tcolorbox}[
    colback=questionbg,
    colframe=questionborder,
    arc=10pt,
    boxrule=1.5pt,
    fontupper=\large\sffamily
]
As a Gnawa music enthusiast and record collector, you've compiled a dataset of 100 Gnawa song durations (in minutes) from your collection. The mean duration is 7.5 minutes, and the standard deviation is 2 minutes. Assuming the durations follow a normal distribution, what percentage of songs in your collection are between 5.5 and 9.5 minutes long?

\vspace{10pt}

\centering
\begin{tikzpicture}
\draw[->] (-3,0) -- (3,0) node[right] {Duration (minutes)};
\draw[->] (0,0) -- (0,2) node[above] {Frequency};
\draw[scale=1, domain=-3:3, smooth, variable=\x, blue, thick] plot ({\x}, {1.5*exp(-(\x)^2/2)});
\draw (0,0) node[below] {7.5} -- (0,2);
\draw (-1,0) node[below] {5.5} -- (-1,1.14);
\draw (1,0) node[below] {9.5} -- (1,1.14);
\end{tikzpicture}
\end{tcolorbox}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb,xcolor,tikz}

\definecolor{customblue}{RGB}{0,70,140}

\begin{document}
\begin{tikzpicture}
\node[draw=customblue,line width=2pt,rounded corners,fill=white,inner sep=20pt] {
\begin{minipage}{0.9\textwidth}
\color{customblue}
\large
A ship's hull can be modeled by the function $f(x) = 3\sqrt{x}$ for $0 \leq x \leq 16$, where $x$ is measured in meters from the bow of the ship and $f(x)$ represents half the width of the ship at point $x$. Calculate the volume of the ship's hull using integral calculus, assuming the hull is symmetric about its central axis.

\vspace{1em}

\begin{center}
\begin{tikzpicture}[scale=0.4]
\draw[->] (0,0) -- (17,0) node[right] {$x$};
\draw[->] (0,0) -- (0,13) node[above] {$y$};
\draw[thick, customblue] plot[domain=0:16, samples=100] (\x,{3*sqrt(\x)});
\node[right] at (8,10) {$f(x)=3\sqrt{x}$};
\end{tikzpicture}
\end{center}
\end{minipage}
};
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{skins}

\definecolor{questionbg}{RGB}{250,247,240}
\definecolor{questionframe}{RGB}{184,134,11}

\begin{document}

\begin{tcolorbox}[
    enhanced,
    colback=questionbg,
    colframe=questionframe,
    arc=8pt,
    boxrule=1.2pt,
    fontupper=\large\sffamily,
    drop fuzzy shadow=questionframe
]
Consider a classic Indian cinema camera lens with a spherical surface described by the metric tensor $g_{ij}$ in spherical coordinates $(r, \theta, \phi)$:

\vspace{0.5em}

\[\color{blue}g_{ij} = \begin{pmatrix}
1 & 0 & 0 \\
0 & r^2 & 0 \\
0 & 0 & r^2\sin^2\theta
\end{pmatrix}\]

\vspace{0.5em}

Determine the non-zero components of the Riemann curvature tensor $R^i_{jkl}$ for this lens surface.
\end{tcolorbox}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb,tikz,xcolor}
\usepackage[most]{tcolorbox}
\usetikzlibrary{patterns}

\definecolor{customblue}{RGB}{70,130,180}
\definecolor{custompink}{RGB}{255,182,193}

\begin{document}
\begin{tcolorbox}[
    enhanced,
    colback=custompink!30,
    colframe=customblue,
    boxrule=1pt,
    arc=5mm,
    fontupper=\sffamily\Large,
    drop fuzzy shadow
]
A traditional adobe house in Santa Fe has a rectangular floor plan measuring 30 feet by 40 feet. The house includes a circular kiva (a ceremonial room) with a diameter of 12 feet. Calculate the total area of the floor plan, excluding the kiva.

\vspace{1em}

\begin{tikzpicture}[scale=0.15]
    \fill[pattern=north west lines, pattern color=gray!40] (0,0) rectangle (40,30);
    \fill[white] (20,15) circle (6);
    \draw[thick] (0,0) rectangle (40,30);
    \draw[thick] (20,15) circle (6);
    \node[below] at (20,0) {40 ft};
    \node[left] at (0,15) {30 ft};
    \node[above right] at (20,15) {12 ft};
\end{tikzpicture}
\end{tcolorbox}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{skins}

\definecolor{questioncolor}{RGB}{0,100,0}

\begin{document}

\begin{tcolorbox}[
    enhanced,
    colback=white,
    colframe=questioncolor,
    arc=0pt,
    outer arc=0pt,
    leftrule=3pt,
    rightrule=3pt,
    toprule=1pt,
    bottomrule=1pt,
    left=10pt,
    right=10pt,
    top=10pt,
    bottom=10pt,
    boxsep=0pt,
    fontupper=\color{questioncolor}\sffamily
]
Consider a transformation from a fitness metric space $(x_1, x_2, x_3)$ representing (weight lifted in kg, body fat percentage, muscle mass in kg) to a supplement ingredient ratio space $(y_1, y_2, y_3)$ representing (protein percentage, creatine percentage, BCAA percentage) in a popular pre-workout supplement. The transformation is given by:

\begin{align*}
y_1 &= \ln(x_1) + \frac{x_2}{x_3} \\[6pt]
y_2 &= e^{x_2} - \sqrt{x_1x_3} \\[6pt]
y_3 &= \frac{x_1x_2}{x_3} + \sin(x_3)
\end{align*}

Evaluate the Jacobian determinant of this transformation at the point $(x_1, x_2, x_3) = (100, 15, 50)$.
\end{tcolorbox}

\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{amsmath,amssymb,xcolor,tikz}
\usepackage[most]{tcolorbox}

\begin{document}

\begin{tcolorbox}[
    enhanced,
    colback=yellow!10,
    colframe=orange!50!black,
    boxrule=1pt,
    arc=4mm,
    title={\textcolor{orange!50!black}{\Large Math Question}},
    fonttitle=\bfseries
]

\begin{minipage}{0.9\linewidth}
As a JavaScript newbie, you're tasked with implementing a simple linear regression algorithm. You have the following data points:

\begin{center}
\begin{tikzpicture}[scale=0.8]
\draw[->] (0,0) -- (6,0) node[right] {$x$};
\draw[->] (0,0) -- (0,7) node[above] {$y$};

\foreach \x/\y [count=\i] in {1/2,2/3,3/5,4/4,5/6} {
    \fill[red] (\x,\y) circle (2pt);
    \node[above right, font=\footnotesize] at (\x,\y) {$(\x,\y)$};
}

\foreach \x in {1,...,5} {
    \draw (\x,0.1) -- (\x,-0.1) node[below, font=\footnotesize] {$\x$};
}

\foreach \y in {1,...,6} {
    \draw (0.1,\y) -- (-0.1,\y) node[left, font=\footnotesize] {$\y$};
}
\end{tikzpicture}
\end{center}

Calculate the slope ($m$) of the best-fit line using the formula:

\begin{equation*}
m = \frac{n\sum{xy} - \sum{x}\sum{y}}{n\sum{x^2} - (\sum{x})^2}
\end{equation*}

Where $n$ is the number of data points. Round your answer to two decimal places.
\end{minipage}

\end{tcolorbox}

\end{document}