Showing posts with label KAlgebra. Show all posts
Showing posts with label KAlgebra. Show all posts

Tuesday, November 22, 2011

Lybniz vs KAlgebra for graph visualization/plotting

In my work I sometimes need to quickly visualize a simple function, and software like Mathematica and Maxima seem to be a bit of overkill so I decided to try some simple plotting programs in Ubuntu from the SC.

The first, which I have evaluated before, is KAlgebra.  It's not too bad and has an upside in that it can also do calculations.  However, I don't really like the plot style.   This is an example for \( \sin^2 x \cos^2 x \).


So I typed in "graph" or "plot" in the SC and cam across the Lybniz graph plotting software.  It only plots  so it doesn't calculate like KAlgebra can and then show you a graph.  I like how Lybniz looks better than KAlgebra.  It doesn't have many options.  I wish you could thicken the line a bit, but it does let you zoom in better than KAlgebra.  Same example.



Thursday, September 22, 2011

wxMaxima - defining a parameter/variable and a function

Ok, so here is one of my shots at Maxima/wxMaxima.  My goal is to define a parameter/variable then use it in a function I have defined myself.

My variable is alpha, \( \alpha \), but I defined it as al_pha since Maxima doesn't like variables that are already defined and many of those are Greek variables.  I just broke it up phonetically.  I set alpha to be a constant by

al_pha: 30*%pi/180

(I think using just "pi" works too.  It does, it just leaves it in symbolic form.  See screen shots.)

The colon (:) provides the capability to define the variable  al_pha in Maxima.  I also multiplied by Pi and divided by 180 in order to get al_pha from degrees (30) into radians since I am going to be dealing with trigonometric functions.

Next, I define my function as lamb_da as

lamb_da(x):= (csc(x))^2

Note, that I used "x" even though I want the angle alpha.  We will call lamb_da for al_pha later.  So the colon (:) plus the equal sign (=) attains a function definition in Maxima.  Also note that in order to square cosecant in Maxima I had to wrap in parentheses and then square.  I also could have done

csc(x)*csc(x)

but who wants to do that for 2 or higher?!

Screen shots:



Notice the difference between using %pi and pi gives 4 and \( \csc ^2 \left( \dfrac{\pi}{6}\right) \), respectively.

I then add more to lamb_da once I know it is working properly.



I can check it with KAlgebra.



I found this very good pdf where I discovered how to define a function and parameter:

resources.eun.org/xplora/Maxima_Xplora.pdf

Also this can be found in the Maxima documentation here:

7.6 Assignment operators - http://maxima.sourceforge.net/docs/manual/en/maxima_7.html#SEC41

Monday, August 29, 2011

The KDE Education Project - KAlgebra - Graph Calculator

The KDE Education Project - KAlgebra - Graph Calculator - http://edu.kde.org/applications/mathematics/kalgebra/

Here is a nice graphing scientific calculator type app from KDE in Ubuntu. I have been mainly using this as a graphing/scientific calculator for sin, cos, etc. It doesn't have and explicit square root function, but you can always do ^(1/2) or any other power. It has a nice autofill/autosearch feature. That is, when you begin to type it brings up a list of functions based on your input. Fro example, type "arc" and it brings up "arcsin, arccos, etc."

KAlgebra is a fully featured calculator that lets you plot different types of 2D and 3D functions and to calculate easy and not so easy calculations, such as addition, trigonometric functions or derivatives.

The application has been thought to be easily understandable for students, so that they don't need to read a boring manual. The language is deeply integrated in the UI, providing a dictionary with representations for all the available operations, code highlighting and code completion.



My screenshot: