Please consider this MWE:
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
/pgf/number format/1000 sep={}, % do not delimit per thousand
xmin=19,
xmax=22.5,
xlabel={angle in degree},
xtick pos=left, % bottom ticks
grid=none,
% FIXME: "extra x ticks" should be calculated from xstart, xinc, xend
% xstart=4500; xinc=-250; xend=4000;
% The x tick values below are calculated by: x=4250; asind(1500/x)
extra x ticks={22.02431, 20.66731, 19.47122}, % FIX ME
every extra x tick/.style={
xtick pos=right, % top ticks
xticklabel pos=right, % top tick labels
xticklabel={
\pgfmathparse{1500/sin(\tick)}
\pgfmathprintnumber{\pgfmathresult} m/s
},
xticklabel style={
/pgf/number format/.cd,fixed,fixed zerofill,precision=0,/tikz/.cd,
},
},
]
\addplot[red,samples at={19,19.1,...,23}] {x};
\end{axis}
\end{tikzpicture}
\end{document}

I plot data (here a linear function) that depends on the variable x, which is here an angle in degree.
Now I would like to add a second x-axis on top. Pgfplots does not support this nicely as is discussed here in several other questions. I took the approach of defining extra x ticks and position them on the top.
There I would like to plot a velocity, that is linked to the angle by the formula v=asind(1500/angle). I know want to have velocities with an increment of 250 put on the top axis, e.g. 4500, 4250 and 4000.
The line marked with FIX ME defines my issue: I would like to apply that formula to calculate the x-axis locations, that correspond to the velocities.
The angle values of extra x ticks are taken in xticklabel and converted back to velocities. This is needed due to the nonlinear relationship of the two axis.
A minor issue is that the precision of PGF is limited (4251 instead of 4250). I tried /pgf/fpu=true...
Hopefully I expressed my question clearly.

ytick=datainstead ofytick={0,1,4,9,16,25}. – Jake Mar 20 '15 at 14:58\ystart,\yincrementand\yend, which sounds like you want to split the y axis in a linear fashion. Maybe it would be a good idea if you described the final result you want to get, and not the way you want to get there. – Jake Mar 20 '15 at 15:10