Welcome to davidpratten.com

You can change this text in the options panel in the admin

Member Login

Lost your password?

Ambi Functions

November 25, 2011

Here are a couple of short examples of ambi functions. These may be copied and pasted into the Ambi Calculator. The first is a recursive implementation of Euclid’s algorithm for finding the Greatest Common Divisor:

 

function; gcd;
  // A B gcd ;
  // Euclid's algorithm ;
  ifelse ;
    import $b = import $a = $b 0 == ;
    $a export;
    $b $a $b % gcd export ;
  pass;

 

The second is an iterative function to check if a number is prime.

 

function ; isprime ;
  // N isprime ;
  // returns boolean;
  for ;
    import  $n = true  $isprime = 2 $i =;
    $isprime $i $n sqrt <=  and  ;
    $i ++ ;
    $n $i %  0 !=  $isprime =  ;
  $isprime export;

Ambi RPN Calculator Update and Chrome Extension

November 25, 2011
Ambi RPN Calculator Update and Chrome Extension

I have updated and released a new version of the Ambi RPN Calculator and programming language. Version 0.6.0 includes the following improvements …

  • Complete redesign of UI using browser local storage to preserve state across invocations.
  • Added ‘My Ambi Functions’ which are persistent. UI now auto recalculates as the expression is edited.
  • droppowexp, and inv operators
  • Added extensive error reporting.
  • Added a Virtual Keyboard
  • 9 short lessons on how to use ambi
Also, Ambi is now available in the Chrome Store.  There are two versions.  A full screen app and a popup extension.
David

Finding “my place” in Australia

October 27, 2011

It has been almost eighteen months since posting to this blog and two years since I returned to Australia with my family in late December 2009. I joined Wesley Mission as a Project Manager and Business Analyst in May 2010.  Project managing an upgrade of  core business systems in Wesley Mission’s hospitals at Ashfield and Kogarah continues to stimulate and challenge with many opportunities to learn and develop new skills.

Knowledge Ferret

Knowledge Ferret

A novel way of applying adult learning and human-centric design principles to the presentation of large bodies of knowledge.

Visual PMBOK(r) Guide

Visual PMBOK(r) Guide

A unique service to help learners to see, explore and master the knowledge contained in A Guide to the Project Management Body of Knowledge (PMBOK®Guide) Fourth Edition.

Ambi Language

Ambi Language

Ambi, A programming language created by David from Reverse Polish Notation (RPN) arithmetic and an extensible RPN Calculator hosted in the browser.

The Sun API

An Excel plug-in that calculates high accuracy solar values according the methods given in the book “Astronomical Algorithms” by Jean Meeus.




Rss Feed Tweeter button Facebook button Technorati button Reddit button Myspace button Linkedin button Webonews button Delicious button Digg button Stumbleupon button Newsvine button