for ax, func in zip(axes, [f, g, h]): d2l.plot([x, segment], [func(x), func(segment)], axes=ax) f = lambda x: 0.5 * x**2 # Convex g = lambda x: np.cos(np.pi * x) # Nonconvex h = lambda x: np.exp(0.5 * x) # Convex ``` ```{.python .input} #@tab pyt...
But you could simply put the source code for the library into a single project and read the XML file bit by bit. I think I have an example on how to do that, otherwise I can help you with that ;). While there is a lot of magic surrounding XML files, you can safely...