{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Chapter 4: The reversible process" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Example 4.2: Example_1.sce" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "clc\n", "//Initialization of variables\n", "T1=100 //F\n", "T2=500 //F\n", "//calculations\n", "function y=cp(t)\n", " y=0.239 + 0.00003*t\n", "endfunction\n", "cpavg= 1/(T2-T1) *(intg(T1,T2,cp))\n", "//results\n", "printf('average value of Cp = %.3f Btu/lbm F',cpavg)" ] } ], "metadata": { "kernelspec": { "display_name": "Scilab", "language": "scilab", "name": "scilab" }, "language_info": { "file_extension": ".sce", "help_links": [ { "text": "MetaKernel Magics", "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" } ], "mimetype": "text/x-octave", "name": "scilab", "version": "0.7.1" } }, "nbformat": 4, "nbformat_minor": 0 }