I want to build many limited functions in gnuplot. That is, plot x from 0 to 2 and x ^ 2 from 1 to 3 and show them together.
How do you build functions with different boundaries?
I know how to do a piecewise function, for example (x <1? X: x ** 2). This is not what I want to do.
plot 0 <= x && x <= 2 ? x : 1/0, \ 1 <= x && x <= 3 ? x**2 : 1/0
We need to determine what to do outside the desired range, so we just use the undefined function f(x)=1/0 1/0 so that nothing is displayed in these ranges.
f(x)=1/0
Source: https://habr.com/ru/post/1333423/More articles:DOMNodeInserted or hashchange - javascriptMakefile doesn't clean * .o files? - makefileGame with favorites and javascript - javascriptThe Python list should be empty when initializing an instance of the class, but it is not. What for? - pythonWhy does starting an activity from a widget also trigger the start of my main activity? - androidHow can I access the standard cpp library without placing the '#include' statements? - c ++How to calculate the normal of points on a three-dimensional cubic Bezier curve, given the normal to its start and end points? - mathThe widget starting the service also starts the main activity - androidIs using shell commands from bad PHP / CGI practice? - linuxSerialization of network messages for the game - c #All Articles