DMeltTutorial:1 Introduction

From jWork.ORG
Jump to: navigation, search
Limitted access. Reguest membership or login to this link first if you are already a member
Contents


DataMelt Tutorial

DataMelt is a multiplatform environment for scientific computation and data analysis. See [1]. In this tutorial you will learn how to use it.

About this tutorial

Left window is a code editor which can be used to type Python commands. Press the [Run] button on the right to run these commands and to see the output. You can change vertical divider position with the mouse if the output does not fit to the right window.

Let's get familiar with the interactive prompt. Type:


print 'ok'

and press [Run]. You will see "ok". This means that you can talk to the interactive Python. In some cases you can edit example and run the modified code. In such cases you will see a green border around such codes. Try to change 'ok' to something else and print "output"


print 'ok'  # you can edit this command

If you are not the registered member, you cannot run the code and cannot see the outputs.

First DataMelt example

Here is a small example which shows how to draw a function:


from jhplot import HPlot,F1D
c=HPlot();
c.visible()
f=F1D("x*x",-10,10)
c.draw(f)

This example can be modified. Replace "x*x" with, say by $cos(x)*x$ and run it again.

Using a standalone application

You can download the standalone application to work with DataMelt libraries. This application runs on any computer (Windows, Linux, Mac) However, you should be a full member.