% pdflatex
\documentclass{standalone}
\usepackage{siunitx}
\sisetup{scientific-notation = true,round-mode=places,round-precision=1}
\usepackage{tikz}
\usepackage{pgfplots}
\def\colora{red}
\def\colorb{blue}
\begin{document}
\begin{tikzpicture}
\pgfmathdeclarefunction{q}{2}{\pgfmathparse{(4.9/(#1^2))*(cosh(#1*#2)-cos(deg(#1*#2))}}
\begin{axis}
[
axis lines = center,
grid=both,minor tick num=1,
xlabel=$x$,ylabel=$q$,
tick align=inside,
every axis y label/.style={rotate=0, black, at={(0.5,1.05)},},