Org-babel is great!

October 8, 2010 at 9:58 pm Leave a comment

I just installed org-mode 7.01h and tried babel. It’s great. Now you can
put different programs and their results with document together. Here are some examples.

ruby

require 'date'
"This file was last evaluated on #{Date.today}"
This file was last evaluated on 2010-10-10

octave

example 1

n=[1:10];
x=2*n;
ans=x
 2.00000000e+00 4.00000000e+00 6.00000000e+00 8.00000000e+00 1.00000000e+01 1.20000000e+01 1.40000000e+01 1.60000000e+01 1.80000000e+01 2.00000000e+01

example 2

A=[1 2];
B=[2 3]';
C=A*B;
ans=C
 8.00000000e+00

p

 8.00000000e+00
About these ads

Entry filed under: Emacs. Tags: .

Hello world!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

Archives

Blog Stats

  • 1,030 hits

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: