Part of the LaTeX3 bundle to handle Floating-point operations
9
votes
1answer
163 views
Store results of a calculation automatically under a new macro name
As I am now accessing values from tables via a macro to make dynamic references in the text (see here) and make calculations with it, I need a way to make the resulting variables under which the ...
1
vote
1answer
166 views
Regular Expression for logical implication?
I am massively unfamiliar with the usage and syntax of regular expressions so the following problem is making my brain bleed.
Background:
I am taking logical expressions, parsing them, making some ...
4
votes
1answer
82 views
Symbolic functions: changing catcodes and \tl_rescan:nn
The goal is to have the user input (for the sake of argument) a linear function in one variable, for example 2*x+3 along with the variable (this isn't crucial) and a value for the variable. I would ...
10
votes
2answers
745 views
Iterative method to solve nonlinear equations
I am trying to solve the following equation (coming from fluid dynamics) using TeX.
1/sqrt(lambda) = 2 * log(Re * sqrt(lambda)) - 0.8
where lambda is the unknown, sqrt means "square root", the log ...
9
votes
1answer
492 views
How can I define NaN in LaTeX3
LaTeX3 l3fp offers a way to check if a variable has a an infinite value. The following code defines a number and then sets its value to π/2. It then calculates tan(π/2) to get a large result.
...