{ "cells": [ { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "'SageMath version 8.0, Release Date: 2017-07-21'" ] }, "execution_count": 4, "metadata": { }, "output_type": "execute_result" } ], "source": [ "version()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ ], "source": [ "t, theta = var('t, theta', domain='real')\n", "x(t) = cosh(t)\n", "z(t) = t\n", "formula = (x(t)*cos(theta), x(t)*sin(theta), z(t))\n", "parameters = ((t, -3, 3), (theta, -pi, pi))\n", "surface = ParametrizedSurface3D(formula, parameters)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": "\n\n" }, "execution_count": 3, "metadata": { }, "output_type": "execute_result" } ], "source": [ "show(surface.plot(aspect_ratio=1, color='yellow'), viewer='threejs', online=True)" ] }, { "cell_type": "code", "execution_count": 0, "metadata": { "collapsed": false }, "outputs": [ ], "source": [ ] } ], "metadata": { "kernelspec": { "display_name": "SageMath 8.0", "name": "sage-8.0" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.13" } }, "nbformat": 4, "nbformat_minor": 0 }