1
function [tree]=sci_log2(tree)
4
// Conversion function for Matlab log2()
5
// Input: tree = Matlab funcall tree
6
// Ouput: tree = Scilab equivalent for tree
9
// %c_log2/%c_frexp and %b_log2/%b_frexp are not defined in Scilab
16
tree.lhs(1).infer=X.infer
20
X = Funcall("real",1,list(X),list(Variable("",X.infer)))
21
elseif ~is_real(X) then
22
newX = Funcall("real",1,list(X),list(Variable("",X.infer)))
23
repl_poss(newX,X,X,"is real");
28
tree.lhs(1).dims=X.dims
29
tree.lhs(1).type=Type(Double,Real)