I've looked at this answer, but it doesn't seem to work:
Dimension too large, <to be read again> error
\documentclass[10pt]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
%<<<<<<<WARNING>>>>>>>
% PGF/Tikz doesn't support the following mathematical functions:
% cosh, acosh, sinh, asinh, tanh, atanh,
% x^r with r not integer
% Plotting will be done using GNUPLOT
% GNUPLOT must be installed and you must allow Latex to call external
% programs by adding the following option to your compiler
% shell-escape OR enable-write18
% Example: pdflatex --shell-escape file.tex
\begin{document}
\definecolor{wrwrwr}{rgb}{0.3803921568627451,0.3803921568627451,0.3803921568627451}
\definecolor{dtsfsf}{rgb}{0.8274509803921568,0.1843137254901961,0.1843137254901961}
\definecolor{rvwvcq}{rgb}{0.08235294117647059,0.396078431372549,0.7529411764705882}
\definecolor{sexdts}{rgb}{0.1803921568627451,0.49019607843137253,0.19607843137254902}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]
\begin{axis}[
x=1cm,y=1cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=1.3267631992181441,
xmax=3.0815031792940615,
ymin=-1.2315594843495015,
ymax=0.428590551805931,
xtick={1.4000000000000001,1.5000000000000002,...,3},
ytick={-1.2000000000000002,-1.1,...,0.4},]
\clip(1.3267631992181441,-1.2315594843495015) rectangle (3.0815031792940615,0.428590551805931);
\draw[line width=0.8pt,color=rvwvcq,fill=rvwvcq,fill opacity=0.10000000149011612] {[smooth,samples=50,domain=2.475353221098382:3.1415926535899534] plot(\x,{sin(((\x))180/pi)+cos(((\x))180/pi)})} -- (3.1415926535899534,-1.6019374007595787E-13) {-- plot[raw gnuplot, id=func0] function{set parametric ; set samples 100; set trange [2.475353221098382:3.1415926535899534]; plot 5.616945874688335-t,sin((5.616945874688335-t)180/pi)+tan((5.616945874688335-t)180/pi)}} -- (2.475353221098382,-0.1681173890090787) -- cycle;
\draw[line width=0.8pt,color=rvwvcq,fill=rvwvcq,fill opacity=0.10000000149011612] { plot[raw gnuplot, id=func1] function{set samples 100; set xrange [3.1415926535899534:3.9269908169715837]; plot sin((x)180/pi)+tan((x)180/pi)}} -- (3.9269908169715837,0.292893218771065) {-- plot[raw gnuplot, id=func2] function{set parametric ; set samples 100; set trange [3.1415926535899534:3.9269908169715837]; plot 7.068583470561537-t,cos((7.068583470561537-t)180/pi)+tan((7.068583470561537-t)180/pi)}} -- (3.1415926535899534,-1.6019374007595787E-13) -- cycle;
\draw[line width=2pt,color=sexdts,smooth,samples=100,domain=1.3267631992181441:3.0815031792940615] plot(\x,{sin(((\x))180/pi)+cos(((\x))180/pi)});
\draw[line width=2pt,color=rvwvcq,smooth,samples=100,domain=1.3267631992181441:3.0815031792940615] plot(\x,{sin(((\x))180/pi)+tan(((\x))180/pi)});
\draw[line width=2pt,color=dtsfsf,smooth,samples=100,domain=1.3267631992181441:3.0815031792940615] plot(\x,{cos(((\x))180/pi)+tan(((\x))180/pi)});
\begin{scriptsize}
\draw[color=sexdts] (2.100856413751085,0.296357671019132) node {$f$};
\draw[color=rvwvcq] (2.0101272838681714,-1.0529968351118533) node {$g$};
\draw[color=dtsfsf] (2.9811220143172217,-1.081952940393634) node {$h$};
\draw [fill=wrwrwr] (2.475353221098382,-0.1681173890090787) circle (2.5pt);
\draw[color=wrwrwr] (2.490798631545733,-0.1264014660948676) node {$A$};
\draw [fill=wrwrwr] (3.1415926535899534,-1.00000000000016) circle (2.5pt);
\draw[color=wrwrwr] (3.1567890530266918,-0.9584068911913692) node {$B$};
\draw [fill=wrwrwr] (3.9269908169715837,0.2928932187932085) circle (2.5pt);
\draw[color=wrwrwr] (3.9424647096723446,0.3349658113948398) node {$C$};
\draw[color=rvwvcq] (2.8575759651149566,-0.28083402759769854) node {$a = -0.377$};
\draw[color=rvwvcq] (3.461793361994783,-0.2750428065413424) node {$b = 0.414$};
\end{scriptsize}
\end{axis}
\end{tikzpicture}
\end{document}
This is an export from GeoGebra with complex functions
And I receive the following error:
(c:/texlive/2022/texmf-dist/tex/latex/jknapltx/ursfs.fd)
! Dimension too large.
<to be read again>
\relax
l.55 \end{axis}
?
I've tried reducing the number of decimal places, scaling the tikzpicture down, but to no avail.

xtick={1.4000000000000001,1.5000000000000002,...,3}instead ofxtick={1.4,1.5,...,3}? Likewise, what is the advantage of writing-1.6019374007595787E-13instead of0? Ditto for dozens of similar issues. – Mico Nov 19 '23 at 21:45domain=1.3267631992181441:3.0815031792940615: bydomain=1.58:3.08– Manuel Cart Nov 19 '23 at 21:48pi/2 \approx 1.571. Making the domain start at 1.58 avoids any complications. – Mico Nov 19 '23 at 23:21