<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1832174569213179693</id><updated>2012-02-01T00:22:24.951+01:00</updated><category term='numbers'/><category term='complex'/><category term='KAlgebra'/><category term='kde'/><category term='ubuntu windows virtualbox linux'/><title type='text'>SwiftScythe</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://swiftscythe.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://swiftscythe.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SwiftScythe</name><uri>http://www.blogger.com/profile/08216449558991150089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1832174569213179693.post-2640581729024333548</id><published>2011-02-02T18:02:00.005+01:00</published><updated>2011-02-08T00:31:08.755+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='KAlgebra'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><category scheme='http://www.blogger.com/atom/ns#' term='numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='kde'/><title type='text'>How to work with Complex Numbers in KAlgebra</title><content type='html'>KAlgebra is a calculator with symbolic and analysis features that lets you plot 2D and 3D functions as well as to easily calculate mathematical expressions.&lt;div&gt; I've already talked about KAlgebra &lt;a href="http://swiftscythe.blogspot.com/2010/02/kalgebra-powerful-calculator-for-kde-4.html"&gt;before&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;However, it still can't work with complex numbers, or at least out of the box.&lt;/div&gt;&lt;div&gt;You can define some functions this way:&lt;/div&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;c:=(a, b)-&amp;gt;vector { a, b }&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;Now we can enter this:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;c(1,2)&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;And we are going to assume it's 1 + 2 i&lt;/p&gt;&lt;p&gt;At this point we just have to define some basic operations. Since we are working with complex numbers in vectors, sums and substractions work without further worries:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;c(1, 2)+c(3, 1)&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;= vector { 4, 3 }&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/blockquote&gt;We can define the norm this way:&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;normtest:=c-&amp;gt;root(selector(1, c)^2+selector(2, c)^2, 2)&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And the conjugate:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;conj:=v-&amp;gt;c(selector(1, v), -selector(2, v))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;Or with a more generic approax, to work with multi-dimensional vectors:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;norm:=v-&amp;gt;root(sum(i^2:i@v), 2)&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;We can even define the argument of a complex number:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;arg:=c-&amp;gt;arctan(selector(2, c)/selector(1, c))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;And of course, convert it to it's polar form:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;polar:=v-&amp;gt;c(norm(v), arg(v))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;And we are going to need the reverse operation:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;rect:=v-&amp;gt;c(selector(1, v)*cos(selector(2, v)), selector(1, v)*sin(selector(2, v)))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;Here it comes the hardest part, multiplications and divisions. We can define them in two different ways, directly:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;(a + b·i) · (c + d·i) = a·c - b·d + (a·d + b·c)·i&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;(a + b·i) / (c + d·i) = (a + b·i) · (c - d·i) / ||(c + d·i)||²&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;Then, we would code the product and the division as:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;cprod:=(u, v)-&amp;gt;c(selector(1, u)*selector(1, v)-selector(2, u)*selector(2, v), selector(1, u)*selector(2, v)+selector(2, u)*selector(1, v))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;cdiv:=(u, v)-&amp;gt;cprod(u, conj(v))/norm(v)^2&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;The other way would be converting both complex numbers to their polar form, and simply multiply or divide the modulus and sum or substract the arguments, depending on what we are doing, and then convert them to the binomical form again. The syntax looks a little stranger, though:&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;cprodtest:=(u, v)-&amp;gt;rect(c(selector(1, polar(u))*selector(1, polar(v)), selector(2, polar(u))+selector(2, polar(v))))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;cdivtest:=(u, v)-&amp;gt;rect(c(selector(1, polar(u))/selector(1, polar(v)), selector(2, polar(u))-selector(2, polar(v))))&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;p&gt;I think we are done now! We are able to work with complex numbers in KAlgebra. I suggest to put al this functions on a file, and then load it with KAlgebra whenever we want support for complex numbers.&lt;/p&gt;&lt;p&gt;I hope you find this helpful :)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-2640581729024333548?l=swiftscythe.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://swiftscythe.blogspot.com/feeds/2640581729024333548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1832174569213179693&amp;postID=2640581729024333548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/2640581729024333548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/2640581729024333548'/><link rel='alternate' type='text/html' href='http://swiftscythe.blogspot.com/2011/02/how-to-work-with-complex-numbers-in.html' title='How to work with Complex Numbers in KAlgebra'/><author><name>SwiftScythe</name><uri>http://www.blogger.com/profile/08216449558991150089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1832174569213179693.post-3032419809771374058</id><published>2010-05-07T16:10:00.001+02:00</published><updated>2010-05-07T16:15:58.241+02:00</updated><title type='text'>Android SDK en Linux</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p dir='ltr'&gt;He decidido hacer este post para completar la información que aparece en una entrada de &lt;a href='http://www.elandroidelibre.com/2009/11/tutorial-para-principiantes-adb-y-sdk.html'&gt;elandroidelibre.com&lt;/a&gt;, donde se explica com instalar las SDK de android en Windows.&lt;/p&gt;&lt;p dir='ltr'&gt;Este tutorial constará de tres partes:&lt;/p&gt;&lt;ol&gt;&lt;li dir='ltr'&gt;Cómo instalar las SDK.&lt;/li&gt;&lt;li dir='ltr'&gt;Cómo configurar Eclipse para que podamos usarlo como entorno de desarrollo.&lt;/li&gt;&lt;li dir='ltr'&gt;Cómo hacer todo lo anterior desde Arch Linux.&lt;/li&gt;&lt;/ol&gt;&lt;h3 dir='ltr'&gt;Cómo instalar las SDK&lt;/h3&gt;&lt;p dir='ltr'&gt;Es un proceso bastante sencillo, sólo hay que ir a la página oficial de &lt;a href='http://developer.android.com/sdk/index.html'&gt;Android SDK&lt;/a&gt; y descargarnos la &lt;a href='http://developer.android.com/sdk/download.html?v=android-sdk_r05-linux_86.tgz'&gt;última versión&lt;/a&gt; que haya disponible.&lt;/p&gt;&lt;p dir='ltr'&gt;Una vez descargada la descomprimimos en cualquier directorio, por ejemplo en nuestra &lt;strong&gt;~&lt;/strong&gt;.&lt;/p&gt;&lt;p dir='ltr'&gt;Ahora procedemos a instalarlas. El proceso consta de 2 pasos:&lt;/p&gt;&lt;ol&gt;&lt;li dir='ltr'&gt;Poner el directorio que hemos descomprimido donde queramos que esté instalado&lt;/li&gt;&lt;li dir='ltr'&gt;Añadir dicho directorio al &lt;strong&gt;PATH&lt;/strong&gt; de Linux&lt;/li&gt;&lt;/ol&gt;&lt;p dir='ltr'&gt;Como directorio destino, yo recomiendo elegir &lt;strong&gt;/opt&lt;/strong&gt;. Lo movemos con el siguiente comando, desde nuestra carpeta &lt;strong&gt;~&lt;/strong&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p dir='ltr'&gt;&lt;strong&gt;sudo mv -r android-sdk-linux_86 /opt/andoid-sdk&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir='ltr'&gt;Ahora añadimos el directorio anterior a nuestro PATH para poder usarlo perfectamente como cualquier otra aplicación de Linux:&lt;/p&gt;&lt;blockquote&gt;&lt;p dir='ltr'&gt;&lt;strong&gt;export PATH=${PATH}:/opt/android-sdk/tools&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir='ltr'&gt;Ya tenemos instaladas las SDK y el ADB para Linux. Seguramente haya que &lt;strong&gt;cerrar la sesión&lt;/strong&gt; para que Linux vuelva a leer el PATH y funcione.&lt;/p&gt;&lt;h3 dir='ltr'&gt;Cómo configurar Eclipse&lt;/h3&gt;&lt;p dir='ltr'&gt;&lt;a href='http://www.eclipse.org/'&gt;Eclipse&lt;/a&gt; es un entorno de programación libre y gratuito que hace que programar en cualquier lenguaje sea algo mucho menos pesado.&lt;/p&gt;&lt;p dir='ltr'&gt;Lo más normal es que la distribución de Linux que estemos usando lo traiga en sus repositorios por defecto. En caso de que no lo tengamos instalado, lo hacemos del siguiente modo:&lt;/p&gt;&lt;ul&gt;&lt;li dir='ltr'&gt;&lt;strong&gt;sudo apt-get install eclipse&lt;/strong&gt; (debian y derivados como ubuntu)&lt;/li&gt;&lt;li dir='ltr'&gt;&lt;strong&gt;sudo yum install eclipse&lt;/strong&gt; (fedora)&lt;/li&gt;&lt;li dir='ltr'&gt;&lt;strong&gt;sudo zypper install eclipse&lt;/strong&gt; (opensuse)&lt;/li&gt;&lt;li dir='ltr'&gt;&lt;strong&gt;sudo pacman -S eclipse&lt;/strong&gt; (arch)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Una vez lo tengamos descargado e instalado, lo ejecutamos y vamos a:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Help -&amp;gt; Install New Software&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Desde allí pulsamos en &lt;strong&gt;Add... &lt;/strong&gt;y añadimos esta dirección:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;https://dl-ssl.google.com/android/eclipse/&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Si nos diese error, podemos cambiar &lt;strong&gt;https&lt;/strong&gt; por &lt;strong&gt;http&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;Volviendo a vista de software disponible, ahora aparecerá una nueva entrada "&lt;strong&gt;Developer Tools&lt;/strong&gt;". La marcamos y se nos marcaran automáticamente las subentradas &lt;strong&gt;Android DDMS&lt;/strong&gt; y &lt;strong&gt;Android Development Tools&lt;/strong&gt;. Hacemos click en &lt;strong&gt;Next&lt;/strong&gt; y seguimos los pasos hasta acabar.&lt;/p&gt;&lt;p&gt;Nos disponemos a reiniciar Eclipse y ya tenemos nuestro ordenador con Linux dispuesto para trabajar con android.&lt;/p&gt;&lt;h3&gt;Cómo hacerlo con Arch Linux&lt;/h3&gt;&lt;p&gt;Si tenemos la suerte de estar usando &lt;a target='_blank' href='http://www.archlinux.org'&gt;Arch Linux&lt;/a&gt;, una magnífica distribución de Linux, todo este post puede reducirse a los siguientes 3 comandos de consola:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;sudo pacman -S eclipse&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;yaourt -S android-sdk&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;yaourt -S eclipse-android&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Espero que os haya servido de ayuda, para más información y novedades sobre android no olvidéis visitar &lt;a href='http://www.elandroidelibre.com'&gt;www.elandroidelibre.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;=-=-=-=-=&lt;br/&gt;&lt;em&gt;Powered by &lt;/em&gt;&lt;a href='http://blogilo.gnufolks.org/'&gt;&lt;strong&gt;&lt;em&gt;Blogilo&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-3032419809771374058?l=swiftscythe.blogspot.com'/&gt;&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-3032419809771374058?l=swiftscythe.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-3032419809771374058?l=swiftscythe.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://swiftscythe.blogspot.com/feeds/3032419809771374058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1832174569213179693&amp;postID=3032419809771374058' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/3032419809771374058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/3032419809771374058'/><link rel='alternate' type='text/html' href='http://swiftscythe.blogspot.com/2010/05/android-sdk-en-linux.html' title='Android SDK en Linux'/><author><name>SwiftScythe</name><uri>http://www.blogger.com/profile/08216449558991150089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1832174569213179693.post-3567051743122145367</id><published>2010-02-09T00:51:00.003+01:00</published><updated>2010-02-10T00:01:50.424+01:00</updated><title type='text'>KAlgebra - A powerful Calculator for KDE 4</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;&lt;p&gt;KAlgebra is a calculator with symbolic and analysis features that lets you plot 2D and 3D functions as well as to easily calculate mathematical expressions. KAlgebra is part of the KDE Education Project.&lt;/p&gt;&lt;p&gt;&lt;a href='http://en.wikipedia.org/wiki/User:Swiftscythe/KAlgebra'&gt;&lt;img height='480' width='600' alt='Click for the unaccepted Wikipedia Entry' title='KAlgebra showing its main tabs' src='http://upload.wikimedia.org/wikipedia/commons/3/37/Kalgebra.png'/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;When you first open KAlgebra a blank window shows up, this is the main work area for calculus.&lt;/p&gt;&lt;p&gt;Let's get started with a little example of how KAlgebra works, just type:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;2+3&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Then type Return and KAlgebra will show you the result. So far it's easy.&lt;/p&gt;&lt;p&gt;However, KAlgebra is much more powerful than that, it started as a simple calculator, but now it's almost a CAS.&lt;/p&gt;&lt;p&gt;You can define variables this way:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;k:=3&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And use them normally:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;k*4&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And that will give you the result: 12&lt;/p&gt;&lt;p&gt;You can also define functions:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;f:=x-&amp;gt;x^2&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And then use them:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;f(3)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Which should return 9.&lt;/p&gt;&lt;p&gt;You can define a function with as many variables as you want:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;g:=(x,y)-&amp;gt;x*y&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The possibilities of defining functions are endless if you combine this withe the &lt;em&gt;piecewise.&lt;/em&gt; Let's define the factor function:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;fact:=n-&amp;gt;piecewise { n=0 ? 1, n=1 ? 1, ? n*fact(n-1) }&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Yes! KAlgebra supports recursive functions. Give some values to n, to test it.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;fact(5)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;fact(3)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;KAlgebra has recently started support for symbolic operations, to check it out, just type:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;x+x+x+x&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;x*x&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;It doesn't work on some complex structures, though. Only basic support so far.&lt;/p&gt;&lt;p&gt;The last thing I'm going to mention about KAlgebra is its support for differentiation.&lt;/p&gt;&lt;p&gt;An example of the syntax:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;diff(x^2:x)&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Hope you've found this useful.&lt;/p&gt;&lt;p&gt;If you have used KAlgebra, you will have noticed the syntax completion support, which is very helpful.&lt;/p&gt;&lt;p&gt;Another resource that can be useful to learn more about KAlgebra comes with KAlgebra: The Dictionary tab&lt;/p&gt;&lt;p&gt;It contains examples of every function supported by KAlgebra. Maybe the best way to learn how to do things with KAlgebra.&lt;/p&gt;&lt;p&gt;=-=-=-=-=&lt;br/&gt;&lt;em&gt;Powered by &lt;/em&gt;&lt;a href='http://bilbo.gnufolks.org/'&gt;&lt;strong&gt;&lt;em&gt;Bilbo Blogger&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-3567051743122145367?l=swiftscythe.blogspot.com'/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-3567051743122145367?l=swiftscythe.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://swiftscythe.blogspot.com/feeds/3567051743122145367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1832174569213179693&amp;postID=3567051743122145367' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/3567051743122145367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/3567051743122145367'/><link rel='alternate' type='text/html' href='http://swiftscythe.blogspot.com/2010/02/kalgebra-powerful-calculator-for-kde-4.html' title='KAlgebra - A powerful Calculator for KDE 4'/><author><name>SwiftScythe</name><uri>http://www.blogger.com/profile/08216449558991150089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1832174569213179693.post-7663867276784788618</id><published>2008-02-22T15:58:00.019+01:00</published><updated>2008-07-16T17:34:44.597+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu windows virtualbox linux'/><title type='text'>Virtualitzar ubuntu amb VirtualBox</title><content type='html'>Bé, aquest nou post està dedicat a tots els que, per circumstàncies de la vida, heu de fer servir Linux però no voleu particionar el disc dur, ni formatejar ni res d'això. Ho entenc, seria com si a mi m'obliguessin a fer servir Window$...&lt;br /&gt;Per això m'he pres la molèstia de fer un petit manual sobre com fer-ho.&lt;br /&gt;Bé, en aquest manual explico com fer que funcioni BÉ, la tasca de fer-lo funcionar i prou ja estava explicada en una web, per la qual cosa ja no m'ha calgut fer-la. Espero que us serveixi.&lt;br /&gt;El manual està en PDF, així que com no tinc una web on poder-lo penjar... Qui el vulgui que me'l demani, sense cap compromís eh?&lt;br /&gt;Segurament acabarà penjat a la pàgina del &lt;a href="http://www.joaquimcurto.es/"&gt;Joaquim&lt;/a&gt;&lt;br /&gt;Aquí us deixo el manual:&lt;br /&gt;&lt;span style="font-size:130%;"&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Com instal·lar ubun&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;tu GNU/Linux en Windows XP/Vista amb VirtualBox&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;La primera part, que tracta d'instal·lar VirtualBox i ubuntu, no la faré perquè ja està ben explicada &lt;a href="http://angelfer.wordpress.com/2008/01/06/utilizar-virtualbox-en-windows-xp-para-cargar-el-livecd-de-linux-ubuntu-710-desktop/"&gt;aquí&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;El que sí que poso són els enllaços al software:&lt;br /&gt;&lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.virtualbox.org/download/1.6.2/UserManual.pdf"&gt;Manual de VirtualBox&lt;/a&gt; (en cas de dubte)&lt;br /&gt;&lt;a href="ftp://ftp.rediris.es/sites/releases.ubuntu.com/releases/7.10/ubuntu-7.10-desktop-i386.iso"&gt;ubuntu&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;La raó de fer aquest tutorial és explicar com instal·lar les "Guest Additions" a ubuntu per tal de poder compartir carpetes i no haver-se d'estar barallant amb el ratolí que es queda atrapat a la finestra del VirtualBox.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Un cop instal·lat ubuntu us recomano que li des-assigneu la iso des d'on l'heu instal·lat (si ho heu fet des d'un cd, salteu-vos aquest pas) per tal que no &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:85%;"&gt;pregunti r&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:85%;"&gt;es cada cop que l'iniciem.&lt;br /&gt;És tan fàcil com fer el que diu la foto:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_85mqgucXCIE/R77pgRRzISI/AAAAAAAAABk/r2rlIW8pFSk/s1600-h/snapshot2.png"&gt;&lt;img style="cursor: pointer; width: 200px; height: 160px;" src="http://bp0.blogger.com/_85mqgucXCIE/R77pgRRzISI/AAAAAAAAABk/r2rlIW8pFSk/s200/snapshot2.png" alt="" id="BLOGGER_PHOTO_ID_5169826162871050530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ara comença la part interessant: Les famoses "Guest Additions"&lt;br /&gt;Un altre cop fem el que diu la foto (és que em fa molt de pal escriure i una imatge val més que mil paraules, no?)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_85mqgucXCIE/R77qOxRzITI/AAAAAAAAABs/03QzKwWLDwo/s1600-h/snapshot3.png"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_85mqgucXCIE/R77qOxRzITI/AAAAAAAAABs/03QzKwWLDwo/s200/snapshot3.png" alt="" id="BLOGGER_PHOTO_ID_5169826961734967602" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ens ha d'aparèixer una icona a l'escriptori. Si ens apareix alguna finestra la tanquem.&lt;br /&gt;I ara anem a &lt;span style="font-weight: bold;"&gt;Aplicaciones&lt;/span&gt; (dalt a l'esquerra) --&gt; &lt;span style="font-weight: bold;"&gt;Accesorios&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Terminal&lt;/span&gt;&lt;br /&gt;Allí escrivim el següent: &lt;span style="font-weight: bold;"&gt;cd /media/cdrom0&lt;/span&gt; i polsem Intro/Enter/Return o com li vulgueu dir.&lt;br /&gt;Després escribim: &lt;span style="font-weight: bold;"&gt;sudo sh VBoxLinuxAdditions.run&lt;/span&gt; i premem Enter. Ens demanarà la password (la que hem hagut de posar per iniciar sessió), doncs li posem, polsem Enter i quan hagi acabat escrivim: &lt;span style="font-weight: bold;"&gt;sudo reboot&lt;/span&gt; polsem Enter i ja tenim les "Guest Additions" instal·lades.&lt;br /&gt;Bé el primer que notareu quan torni a carregar és que el ratolí ja no s'enganxa.&lt;br /&gt;&lt;br /&gt;Ara, anem a fer que funcionin els pendrives USB que hi connectem.&lt;br /&gt;La configuració de l'USB ha de ser una cosa així (a mi em funciona):&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_85mqgucXCIE/R77qyRRzIUI/AAAAAAAAAB0/2_ZPT5ARAqM/s1600-h/Pictures2.png"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_85mqgucXCIE/R77qyRRzIUI/AAAAAAAAAB0/2_ZPT5ARAqM/s200/Pictures2.png" alt="" id="BLOGGER_PHOTO_ID_5169827571620323650" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Des d'ara, cada cop que vulguem utilitzar un dispositiu usb l'haurem de connectar al nostre PC i després haurem de fer el que diu la foto (seleccionar el port USB que vulguem):&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_85mqgucXCIE/R77rKBRzIVI/AAAAAAAAAB8/rC9UxKceF78/s1600-h/Pictures0.png"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_85mqgucXCIE/R77rKBRzIVI/AAAAAAAAAB8/rC9UxKceF78/s200/Pictures0.png" alt="" id="BLOGGER_PHOTO_ID_5169827979642216786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ara només falta compartir carpetes. Això ja és més complicat, però més eficient que compartir un pendrive.&lt;br /&gt;Primer, amb ubuntu apagat, triem la carpeta que vulguem compartir tal com s'indica i li posem un nom, el que vulguem, que pot ser completament diferent del de la carpeta, però que no contingui espais ni caràcters estranys. Jo l'he anomenada &lt;span style="font-weight: bold;"&gt;share&lt;/span&gt;. Recomano que poseu aquest nom, sinó haureu de canviar les comandes següents posant el nom que hagueu triat en comptes de share.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_85mqgucXCIE/R77r-BRzIWI/AAAAAAAAACE/IRBmVp3oedI/s1600-h/Pictures4.png"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_85mqgucXCIE/R77r-BRzIWI/AAAAAAAAACE/IRBmVp3oedI/s200/Pictures4.png" alt="" id="BLOGGER_PHOTO_ID_5169828872995414370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ara engeguem l'ubuntu i obrim el terminal.&lt;br /&gt;Introduïm les següents comandes:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd /mnt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo mkdir share&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cd share&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo mount -t vboxsf share /mnt/shar&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;e&lt;/span&gt;&lt;br /&gt;Val, ja tenim la carpeta compartida però ara només podem llegir-hi, no escriure-hi.&lt;br /&gt;La manera més fàcil i ràpida per a solventar-ho és la següent:&lt;br /&gt;Sobre l'escriptori fem &lt;span style="font-weight: bold;"&gt;botó dret&lt;/span&gt; amb el ratolí --&gt; &lt;span style="font-weight: bold;"&gt;Crear un lanzador...&lt;/span&gt;&lt;br /&gt;A nombre li posem el que vulguem. Jo, per ser coherent i amb la originalitat que em caracteritza, li he posat &lt;span style="font-weight: bold;"&gt;share&lt;/span&gt;.&lt;br /&gt;A comando hi posem &lt;span style="font-weight: bold;"&gt;gksu nautilus /mnt/share&lt;/span&gt;.&lt;br /&gt;A comentario el que volguem, fins i tot es pot deixar en blanc.&lt;br /&gt;Si fem clic sobre la icona, la podem canviar, això ja va a gustos.&lt;br /&gt;A partir d'ara per accedir a la carpeta compartida haurem de fer doble clic a la icona i posar la nostra password.&lt;br /&gt;&lt;br /&gt;Per cert, per poder complilar correctament tot el que farem a ARISO 1, cal instal·lar aquests paquets: &lt;span style="font-weight: bold;"&gt;gcc&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;built-essential, dbg &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; ddd&lt;/span&gt; que es fa escrivint el següent en el terminal:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get install gcc build-essential dbg ddd&lt;br /&gt;&lt;/span&gt;Segurament us dirà que el gcc ja estava instal·lat.&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Bé, amb això crec que està tot.&lt;br /&gt;Si alguna cosa no queda clara, ja sabeu on trobar-me.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;In a world without walls and fences who needs Windows and Gates?&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1832174569213179693-7663867276784788618?l=swiftscythe.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://swiftscythe.blogspot.com/feeds/7663867276784788618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1832174569213179693&amp;postID=7663867276784788618' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/7663867276784788618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1832174569213179693/posts/default/7663867276784788618'/><link rel='alternate' type='text/html' href='http://swiftscythe.blogspot.com/2008/02/virtualitzar-ubuntu-amb-virtualbox.html' title='Virtualitzar ubuntu amb VirtualBox'/><author><name>SwiftScythe</name><uri>http://www.blogger.com/profile/08216449558991150089</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_85mqgucXCIE/R77pgRRzISI/AAAAAAAAABk/r2rlIW8pFSk/s72-c/snapshot2.png' height='72' width='72'/><thr:total>2</thr:total></entry></feed>
