Tutorial:DataMelt/1 Introduction

From HandWiki

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:

<jc lang="dmelt"> print 'ok' </jc>

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"

<jc lang="dmelt_edit"> print 'ok' # you can edit this command </jc>

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:

<jc lang="dmelt_edit"> from jhplot import HPlot,F1D c=HPlot(); c.visible() f=F1D("x*x",-10,10) c.draw(f) </jc>

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)