Questions tagged [function]
The function tag has no summary.
73 questions
6 votes
3 answers
128 views
\tikzmath defined functions sometimes won't parse in \addplot, producing spurious errors
This is my first post so the graph may not appear and/or the format may look weird. Apologies if that is so. The graph is produced when the line \addplot[red, thick] {myexp(x,4)}; is commented out ...
-1 votes
1 answer
111 views
Graph a piecewise defined function [closed]
$$ \begin{array}{c|c} \hline \text{t} & \text{C(t)} \\ \hline 0 \le t \le 3 & 7 \\ \hline 3 < t \le 8 & 7 + t \\ \hline 8 < t \le 28 & 18 \\ ...
3 votes
3 answers
265 views
draw sign function
I need to know how to draw a function's sign in general. This example I drew by hand covers what I need. Guided by this post reference post , I created this code, \usepackage[spanish,english]{...
-1 votes
2 answers
90 views
Problem calling function
I am getting an l.697 \pist_demo_print:n { leaf } problem with using \documentclass[a4paper,12pt]{article} \ExplSyntaxOn \cs_new_protected:Nn \pist_demo_print:n { %% Define a new message ...
1 vote
1 answer
117 views
How do I plot graphs like these? [closed]
I wish to know how to plot graphs like these. How can I choose which points to label, how to write the dotted lines there, positioning the axes, and the filled circles and unfilled circle used in the ...
0 votes
1 answer
66 views
How to use \pgfmathdeclarefunction inside a \foreach loop?
i'm tring to make a loop, i which each iteration defines a pgf function with a dynamic parameter. This code gives the error '! Illegal parameter number in definition of \pgffor@body.' Any help would ...
3 votes
3 answers
144 views
How to simplify usage of various argument types in latex functions (with TikZ and tkz-euclide)
I want to wrote a function that draw a rectangle, divides it into x parts vertically and y parts horizontally and then fill selected smaller rectangles. Here is the code: \documentclass{article} \...
5 votes
1 answer
135 views
Why do we need \fp_new_function:n?
According to the l3 interface document, \fp_new_function:n {⟨identifier⟩} Declares the ⟨identifier⟩ as a function, which allows it to be used in floating point expressions. ... If the declaration was ...
3 votes
3 answers
167 views
Is it possible to print non-sequential output?
I'm taking a course at university that is taught by 3 professors. Each of these professors teaches a part of the program that is totally separate from the other two. I was wondering if it was possible ...
4 votes
2 answers
191 views
How to use \pgfmathdeclarefunction in beamer?
I like using pgfmathdeclarefunction for writing functions that I reuse multiple times in the same tikzpicture. But now I realized that it does not seem to work well with \documentclass{beamer}, as ...
0 votes
0 answers
82 views
Centered environment (even when exceeding linewidth) for any environment (including verbatim environments!)
I often want to have special environments (equations,code,etc...) that exceeds the line width used in the main text. I managed for example for a box with code: \documentclass{article} \usepackage{...
6 votes
4 answers
999 views
How to write a function in LATEX whose value is different in [0,1/3), [1/3,1/2) ...? [closed]
I am writing a presentation to present my understanding of a research paper and I am new to LATEX. The professors at my uni didn't told anyone to write in LATEX but its very useful, I have read. I am ...
2 votes
1 answer
103 views
Create a table with \newcommand where the values are input as the argument?
I would like to create \newcommand function whose arguments would populate a table. As an example, my idea is to create something like the following code, where, to populate a Table, I would use a ...
-1 votes
1 answer
91 views
How to make vector function graphs [closed]
does anyone know how i can make a graph of a vector function like in this picture?
2 votes
2 answers
92 views
Babel french with TikZ not working inside beamer frame
I attempt to use the TikZ declare function feature in a french document. I noticed there is a clash between french babel option and TikZ because it modifies the the semicolon interpretation. That's ...