// Scilab file made available as part of TEQIP-NCM-NBHM workshop: Nov 2019
// Tested on scilab version 6.0.1
// Conducted at IIT Bombay. Scilab scripts written by Sudarshan Pulapadi
// License: GPL
//
// This file is to write one's own functions. 
// recommended: check that that same function-name is not already in use
// as an inbuilt scilab command/function.

function [a,b] = test_function1(c)
// this function has one input argument
  a = c^2
  b = -c
// indent is recommended, but not obligatory
endfunction

function [a,b] = test_function2(c,d)
// this function has two input arguments
// if number of input/output arguments can vary, use sciargs command
  a = c+d
  b = c-d
endfunction

