Home >

l3fp

Advertisement
  • Converting lengths with lengthconvert and l3fp

    Converting lengths with lengthconvert and l3fpOctober 3

    The package lengthconvert "uses the modul l3fp to convert the length". But its conversions are totally off the charts: \documentclass{article} \usepackage{lengthconvert} \begin{document} \the\textheight \Convert[unit = mm]{\textheight} \Convert[

  • l3fp keeping trailing zero in math calcJuly 28

    I would like to keep the trailing zeros when the data, used for internal calculations with l3fp, are printed. For example: \documentclass{article} \usepackage{siunitx} \usepackage{expl3} \pagestyle{empty} \ExplSyntaxOn \NewDocumentCommand{\calcnumd}{

  • Factorial (or, even better, binomial coefficient) function

    Factorial (or, even better, binomial coefficient) functionFebruary 22

    Is there a function in l3fp for calculating factorials or, even better, binomial coefficients directly? --------------Solutions------------- edited 2015-11-05 because recent versions of xint do not load xinttools anymore. added note 2015-11-05: there

  • l3fp "Number too big" errorJanuary 20

    Consider the following example: \documentclass{article} \usepackage{pstricks-add} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff \newcommand*\SideLength[1]{\calc{sqrt(#1)}} \newcommand*\Angle[1]{\calc{asin(1/sqrt(#1))}

  • Store results of a calculation automatically under a new macro nameDecember 1

    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 values are stored more user friendly. Because of LaTeX'

  • Regular Expression for logical implication?September 14

    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 replacements, and then evaluating them using \fp_eval

  • Symbolic functions: changing catcodes and \tl_rescan:nnAugust 27

    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 then like to calculate the value of the function. Th

  • Iterative method to solve nonlinear equationsAugust 17

    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 is decimal logarithm, and Re is a given number.

  • How can I define NaN in LaTeX3November 25

    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. \ExplSyntaxOn \fp_new:N \mynumber \fp_new:N \pi_half \fp_d

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.289 s.