Skip to content

Instantly share code, notes, and snippets.

// use proc_macro2::TokenStream;
use quote::{ToTokens}; // 1.0.26;
use syn::{parse_quote, Ident, Item, ItemConst, ItemEnum, ItemFn, ItemStatic, Signature, Stmt}; // 2.0.11
/// input:
/// ```rs
/// #[alias(B, C)]
/// pub const A: u32 = 0;
/// ```
///

Prompt:

Given $a, b, c, d \in R$

Find a function $f(x)$ such that:

$f'(a) = 0$

$f'(c) = 0$

001

Which of the following would require the greatest amount of calories?

Heating $100\text{g}$ of water from $10\degree\text{C}$ to $50\degree\text{C}$.

002

A $\textcolor{#ff5555}{m}$ $\text{kg}$ weight-watcher wishes to climb a mountain to work off the equivalent of a large piece of chocolate cake rated at $\textcolor{#ff5555}{Q}$ $\text{(food) Calories}$.

  • How high must the person climb?
  • The acceleration due to gravity is $\textcolor{#ff5555}{g}$ $\frac{\text{m}}{\text{s}^2}$ and $1$ $\text{food Calorie}$ is $10^3$ $\text{Calories}$.