Today I was playing around with Matplotlib and Sage(math) for plotting the relativistic addition of velocities. First I tried the classic 3-dimensional plot in Sage, var(‘x,y’) p = plot3d((x+y)/(1+x*y), (x,0,.99), (y,0,.99), color=hue(0.8)) p.save(‘Vel-3d.png’) However the plot was not so enlighten. So I tried a contour plot, var(‘x’) p = contour_plot((x+y)/(1+x*y), (x,0,.99), (y,0,.99), contours=[0.3,0.2,.5,.7,.9,.99], cmap=’hsv’, labels=True, [...]
Posts Tagged ‘Karmic’
Contour Plot in Sage and Matplotlib
Posted in Linux, Mathematics, Physics, Science, tagged Functions, Graphics, How to, HowTo, Karmic, LaTeX, Linux, Mathematics, Matplotlib, Plot, Plotting, Programming, Python, Sage, Sagemath, SPE, Symbolic, Tips and Tricks, Ubuntu on April 11, 2010 | 3 Comments »
Enable Java Plugin on Firefox 3.6 (Karmic)
Posted in Linux, tagged 3D, Animations, Applets, Conkeror, Firefox, Firefox 3.6, How to, HowTo, Install, Java, Karmic, Koala, Line, Linux, Packages, Plot, Plugins, Sage, Sagemath, Symbolic, Terminal, Tips and Tricks, Ubuntu, Web Browser on February 22, 2010 | 6 Comments »
Pre-requisites. I don’t know how much of it its really needed, but I install the whole Sun’s Java 6 packages, $ sudo apt-get install sun-java6-jdk sun-java-6-jre sun-java6-pluging sun-java6-source sun-java6-bin For sure you’ll need the jdk and plugin one… If your internet connection is slow you might try installing these two first and try the above [...]
Playing around with Sage(math)
Posted in Hobbies, Linux, Mathematics, Physics, Science, tagged Colors, Colours, Command, Fill, Free, Functions, Graphics, Harmonic, How to, HowTo, Karmic, Koala, Labels, LaTeX, Linux, Loops, Maple, Mathematica, Mathematics, Matlab, Notebook, Online, Oscillator, Plot, Plotting, Programming, Pyhton, Quantum, Sage, Sagemath, Symbolic, Tips and Tricks, Ubuntu on February 19, 2010 | 5 Comments »
I was playing with Sage(math) because I wanted to manage (a bit) the presentation of the plots. Here is what I found out! (most of it is in Sage help) Color of Plots. For changing the color of the plot, use the option color, sage: plot(sin, -3, 3, color=’red’) and you’ll get Nice! but not [...]
Sage and Mathematica integration
Posted in Linux, Mathematics, Physics, Science, tagged Calculation, CLI, Command, Computers, Free, How to, HowTo, Install, Integration, IRC, Karmic, Koala, Line, Linux, Mathematica, Mathematics, Packages, Programming, Pyhton, Sage, Sagemath, Symbolic, Synapses, Terminal, Tips and Tricks, Ubuntu on February 15, 2010 | Leave a Comment »
Last week I was trying to integrate a power of the Hyperbolic Tangent (tanh) in sage, so I first try, sage: n,x = var(‘n,x’) sage: integrate(tanh(x)^n, x) but Sage didn’t integrate it. So I impose to be an integer, sage: n,x = var(‘n,x’) sage: assume(n, ‘integer’) sage: integrate(tanh(x)^n, x) and still nothing. However, for specific [...]
Weak Points in Sage(math)
Posted in Linux, Mathematics, Physics, Science, tagged C++, Calculation, chrome, chromium, CLI, Computers, Conkeror, Free, Functions, Graphics, How to, HowTo, IRC, Karmic, Koala, LaTeX, Line, Linux, Maple, Mathematica, Mathematics, Matlab, Notebook, Online, Packages, Plot, Plotting, Programming, Pyhton, Sage, Sagemath, Symbolic, Tips and Tricks, Ubuntu on February 15, 2010 | 3 Comments »
I’ve been trying Sage(math) for the last three weeks, and I can say it’s a charming piece of software. Works very well, the IRC channel is really, really helpful, the interface is simple, the Python platform is rather natural to manage, evolves quickly… and so on. However, there are some weak points I’d like to [...]