{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/latex": [ "$1+2\\imath$" ], "text/plain": [ "(1+2i)" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "IRuby.display(Complex(1,2))" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/latex": [ "$$\\left(\\begin{array}{cc}\n", " 1&2\\\\\n", " 3&4\\\\\n", "\\end{array}\\right)$$" ], "text/plain": [ "Matrix[[1, 2], [3, 4]]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/latex": [ "$$\\left(\\begin{array}{cc}\n", " 1&2\\\\\n", " 3&4\\\\\n", "\\end{array}\\right)$$" ], "text/plain": [ "Matrix[[1, 2], [3, 4]]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [ "Matrix[[1, 2], [3, 4]]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [ "Matrix[[1, 2], [3, 4]]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
1 | 2 |
3 | 4 |