//Book - Power system: Analysisi & Design 5th Edition //Authors - J. Duncan Glover, Mulukutla S. Sarma, and Thomas J.Overbye //Chapter-11 ;Example 11.7 //Scilab Version - 6.0.0; OS - Windows clc; clear; function result=table(delcr) //Function to get result in table format using Euler’s method for diferent critical clearing angles delta=0.4179 //Initial value of delta in rad taken from example 7.6 omega=2*%pi*60 //Initial value of omega in rad/s H=3 //Value of H constant in pu-s omegasyn=omega t=0; delt=0.02 //Step size result=[]; //Initialization of result table tc=0; //Initialization of critical clearing time while t<0.861 //Maximum time for Eler's method is o.86 result=[result;t delta omega] //Updating the result table ddeltat=omega-omegasyn //Calculation of ddeltat/dt using equation 11.4.7 deltab=delta+ddeltat*delt //Calculation of delta_bar using equation 11.4.9 if delta