1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 2// Copyright (C) INRIA 3// Copyright (C) Samuel GOUGEON - 2015 - sgougeon@free.fr : Bug 13893 4// 5// Copyright (C) 2012 - 2016 - Scilab Enterprises 6// 7// This file is hereby licensed under the terms of the GNU GPL v2.0, 8// pursuant to article 5.3.4 of the CeCILL v.2.1. 9// This file was originally licensed under the terms of the CeCILL v2.1, 10// and continues to be available under such terms. 11// For more information, see the COPYING file which you should have received 12// along with this program. 13 14function [num,den] = %s_simp(num,den) 15 // implement complex case 16 // 0/den => 0/1 17 i = find(clean(num)==0 & clean(den)~=0) 18 den(i) = 1 19endfunction 20