Learn Wolfram Mathematica in the cloud part 3

Dipping into Lists

How clear is this post?
By | May 14th, 2019|Level: Simple, Mathematica, Uncategorized|0 Comments

Learn Wolfram Mathamatica Part 2

Today we see how to use Wolfram language as a Calculator using the Notebook environment

How clear is this post?
By | May 10th, 2019|Level: Simple, Mathematica|0 Comments

Introduction to Wolfram Mathematica programming

Mathematica is becoming an indispensable tool for doing all kinds of computation and it is important to know how to use it as it will leverage your problem-solving skills, allowing you focus on higher level issues of modelling solutions rather than focusing too much on calculational details.

I will be posting short lessons regularly and the good news is you don’t need to install anything locally as all examples can be run online. If you need to do any form of extensive programming you can always go to the Wolfram Cloud and click on Programming Lab and get access for free.

Instructions on running code

If you don’t have a Wolfram ID, create one as this will give you access to the Wolfram Cloud. After you have done this sign in. If you have one then simply sign into the Wolfram Cloud.

If you have downloaded the notebook file from the blog and saved it somewhere then do the following to upload it to the cloud so you can play with the code.…

By | May 9th, 2019|Level: Simple, Mathematica|0 Comments

A Whimsical Introduction to Graph Theory (1)

Part 1 – What are Graphs?


Mathematics is full of fascinating ideas and concepts. These can, however, be very challenging to tackle and make sense of, especially when you are put under pressure to answer questions about them! In this post, and those to come, I hope to share some insight into these concepts without getting too formal. Where some definitions and more technical bits are introduced, they will be explained at end of the post: look out for the dagger \dagger symbols!

To begin, let’s ask what we do in mathematics. The first step in any area of maths is almost always to abstract things. We take some concept we want to be able to work with and pull out the essential ideas. From a bunch of maps we may take out just destinations and the routes between them; from 3D objects we may only need to know what ways we can rotate them and still see the same thing; from a collection of algorithms we may only care about how long they take to run on a computer, and so on.…

By | February 12th, 2018|Level: Simple|0 Comments

MAM1000W 2017 semester 2, lecture 1 (part ii)

The distance problem

If I want to know how far I walked during an hour, I can ask how far I walked in the first five minutes, and how far I walked in the second five minutes, and how far I walked in the third five minutes, etc. and add them all together. ie. I could write:

 

d=d_1+d_2+d_3+d_4+...d_{12}

 

Where d_i is the distance walked in the i^{th} five minutes. To calculate a distance, we need to know how fast we are going, and for how long. In fact:

 

distance=velocity \times time

 

where you can think of velocity as the same thing as speed (though there are subtle differences which you will find out about later). This formula works if the velocity is constant, but what if it is changing. Well, if we have a graph of velocity against time, then we can think about splitting the graph into intervals (like the five minute intervals above), and approximating that during a small interval of time, the velocity is roughly constant.…

MAM1000W 2017 semester 2, lecture 1 (part i)

I wanted to put up a little summary of some of the most important things to remember from the end of last semester. There was a sudden input of new concepts, so let’s put some of them down here to get a clear reminder of what we need to know. A few things in this post:

  • The antiderivative
  • Sigma notation
  • Areas under curves

Antiderivatives

An antiderivative of a function f on an open interval I is a function F such that:

 

F'(x)=f(x) for every x\in I

 

Note that we say an antiderivative, not the antiderivative. There can be many functions whose derivatives give the same thing. While we know that:

 

\frac{d}{dx}\sin x=\cos x

 

and therefore  \sin x is an antiderivative of \cos x, we can also say that:

 

\frac{d}{dx}(\sin x+3)=\cos x

 

So \sin x+3 is also an antiderivative of \cos x. In fact for any constant c it is true that \sin x+c is an antiderivative of \cos x. We will come up with some clever notation for the antiderivative soon.…

Unsolved!: The History and Mystery of the World’s Greatest Ciphers from Ancient Egypt to Online Secret Societies by Craig P. Bauer – A review

This book was sent to me by the publisher as a review copy.

This is a book of some impressive magnitude, both in terms of the time span that it covers (being millennia), as well as the ways in which it discusses the context and content of the ciphers, most of which, as the title suggests, are unsolved. The book starts with perhaps the most mysterious of all unbroken ciphers: The Voynich Manuscript (the entirety of which can be found here). This story in itself is perhaps the most fascinating in the history of all encrypted documents, and that we still don’t know if it truly contains anything of interest, or is just a cleverly constructed (though several hundred year old) hoax makes it all the more intriguing.

The writing rather effortlessly weaves between the potential origin stories, the history of the ownership of the manuscript and the attempts to decode it.…

By | July 29th, 2017|Book reviews, English, Level: Simple, Reviews|1 Comment

Quantum Computing (Part 0): A Brief Introduction

These days, the vogue in science and technology is all things quantum, especially in the continuously-advancing frontiers of computation and data analysis. Applications such as AI and crunching through Big Data require ever-faster processing of ever-larger datasets. The amount of data generated by companies such as Google and Facebook is already mind-boggling and is only set to increase at an exponential rate. However, it is clear that in many contexts, simply adding datacenters and processors is not going to be enough: a complete paradigm shift is required if these kinds of technologies are to become effective in the lives of billions of people around the world.
This is where the quantum realm comes in. At the smallest scales of our universe, the behaviours of the “classical” mechanics governing our everyday lives is replaced by something entirely different; the laws of quantum mechanics are unintuitive and confusing, hiding layers of complexity in ways that simply cannot exist at our macroscopic scales.

By | July 10th, 2017|Level: Simple|0 Comments

Convex functions

What I learnt in class today:

A convex function f:\mathbb R\to\mathbb R is defined as satisfying

f(\lambda x + (1-\lambda )y)\leq \lambda f(x)+(1-\lambda )f(y) \quad \forall x,y\in \mathbb R,\ \forall \lambda \in [0, 1].

 

Thus, the shape of a convex function is like \smallsmile . An example of a convex function is f(μ)=μ2:

 

How clear is this post?
By | August 15th, 2016|Level: Simple, Undergraduate|0 Comments

You’re (probably) a Bayesian – whether you like it or not!

Statisticians have long been separated into two camps as to how they philosophically interpret their trade. These schools of thought are usually called Frequentists and Bayesians.

Frequentists believe that a probability, p\in[0~ 1] , associated with a specific possible outcome of an observable occurrence or process, is simply telling you that, could you observe this occurrence (or process) infinitely many times, the fraction of such observations that would yield that specific outcome is p . Using the age-old coin toss example: tossing the coin is the occurrence or process and recording a Heads or Tails are the two observation. The number 0.5 \left(P(\text{Tails})=0.5=P(\text{Heads})\right) tells a Frequentist that, in the pursuit of infinitely many coin tosses, the ratio of Heads recorded to the number of tosses performed asymptotically approaches 0.5. And that’s all! The value should not be interpreted as the most likely outcome for the next observation or sample taken from the process (though I’ve always wondered how a Frequentist would gamble…).…

By | February 3rd, 2016|English, Fun, Level: Simple, Uncategorized|0 Comments