Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Wolfram|Alpha client

tag: v0.1.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.rdoc

Description

Explore the vast world of computational knowledge available for free via Wolfram's v2 API.

Install

To install this gem:

gem install wolfram

Setup

You'll need a Wolfram Appid (api key) by creating an account here and then clicking on the 'Get an APPID' button.

Once you have your own appid, set it in your shell, preferably in your ~/.bashrc:

export WOLFRAM_APPID='YOURKEY'

If you want to explicitly set your appid in a script:

Wolfram.appid = "YOURKEY"

Usage

Query away on the commandline!

# Calculate distance and travel time between places
$ wolfram from boston to new york

# Solve an equation
$ wolfram x^3 - 4x^2 + 6x - 24 = 0

# Find words ending with able
$ wolfram words ending with able

For many more examples, see here.

Credits

  • Ian White is the original author of this gem.

  • bdigital for a bug fix

Todo

  • More tests!

  • A better inspect

  • Handle more api options including format

Something went wrong with that request. Please try again.