{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "library(JuliaCall)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Julia at location /Applications/Julia-0.6.app/Contents/Resources/julia/bin will be used.\n", "Julia version 0.6.0 found.\n", "Julia initiation...\n", "Finish Julia initiation.\n", "Loading setup script for JuliaCall...\n", "Finish loading setup script for JuliaCall.\n" ] } ], "source": [ "julia_setup()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "It seems that you are not in the terminal. A simple julia console will be started.\n", "Press ESC or CTRL+C to exit.\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "julia> sqrt(2)\n" ] }, { "data": { "text/html": [ " 1.4142135623730951 " ] }, "metadata": { "text/html": { "isolated": true } }, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "julia> @doc sqrt\n" ] }, { "data": { "text/html": [ "
sqrt(x)
\n",
"Return $\\sqrt{x}$. Throws DomainError
for negative Real
arguments. Use complex negative arguments instead. The prefix operator √
is equivalent to sqrt
.