{ "metadata": { "name": "", "signature": "sha256:72e2616045657b51e34a7053265f42c549d2a5b15ca9a3b0a7fb70c4376d5ddc" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 17 : Compressible Fluid Flow" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 17.1 Page No : 694" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import math \n", "import sys\n", "\n", "# Variables\n", "T0 = 37+273\n", "P = 40.\n", "g = 1.4;\n", "\n", "def speed(a,b,f):\n", " N = 100.;\n", " eps = 1e-5;\n", " if((f(a)*f(b))>0):\n", " print('no root possible f(a)*f(b)>0');\n", " sys.exit(0)\n", " if(abs(f(a))0):\n", " c = (a+b)/2.\n", " if(abs(f(c))