descent end axis([Lx1 Lx2 Ly1 Ly2]); % the picture frame saveas(gcf, 'level_grad.eps', 'psc2') % save as color postscript. Use gimp to convert % to png...
save to eps ans svg saveas(gcf, 'Newton_optimization_vs_grad_descent.eps', 'psc2') % plot2svg('Newton_optimization_vs_grad_descent.svg') function plot_contours(f...
cos(w), sinw = sin(w); double d = 0.5 * stripe_grad; start_svg_file(); int ind = 2; // initial indentation level indent(ind); cout << "<g id=\"sphere_back\"...
= eps; x = conj_gradient(A, b, x0, tol, lw, red, small_rad, shift); x = grad_descent (A, b, x0, tol, lw, green, small_rad); % text small = 0.015; text(x0(1)-2*small...
Commons Attribution-Share Alike 4.0 truetrue English Field lines of B and grad(B) of a bar magnet author name string: Geek3 Wikimedia username: Geek3 URL:...
04' col = '#f22' defs = doc.draw_object('g', {}) grad = doc.draw_object('linearGradient', {'id':'grad', 'x1':'0', 'x2':'0', 'y1':str(-D), 'y2':str(D),...
V, levels=sc.linspace(-U0, U0, 15)[1:-1]) # draw the magnet manually colors = ['#00cc00', '#ff0000'] defs = doc.draw_object('defs', {}) grad = doc...
draw_contours(func=Babs, levels=sc.linspace(0, B0, 16)) # draw the magnet manually colors = ['#00cc00', '#ff0000'] defs = doc.draw_object('defs', {}) grad = doc...
-0.02,0 h 0.04' defs = doc.draw_object('g', {}) grad = doc.draw_object('linearGradient', {'id':'grad', 'x1':str(l/2.), 'x2':str(-l/2.), 'y1':'0', 'y2':'0'...