private static Block ParseConcat(Block a, Block b, char type) { if (a == null) { return(SignBlock.Create(b, OperatorBlock.ToSignType(type))); } if (b == null) { throw new ArgumentNullException(); } else { return(TwoOperatorBlock.Create(a, b, OperatorBlock.ToTwoOperatorType(type))); } }
public static Block Pow(this Block block, double a) { return(TwoOperatorBlock.Create(block, ConstBlock.Create(a), TwoOperatorType.Pow)); }
public static Block Pow(this Block block, Block a) { return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Pow)); }
public static Block Divide(this Block block, Block a) { return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Divide)); }
public static Block Divide(this Block block, double a) { return(TwoOperatorBlock.Create(block, ConstBlock.Create(a), TwoOperatorType.Divide)); }
public static Block Multiply(this Block block, Block a) { return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Multiply)); }
public static Block Multiply(this Block block, double a) { return(TwoOperatorBlock.Create(block, ConstBlock.Create(a), TwoOperatorType.Multiply)); }
public static Block Minus(this Block block, Block a) { return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Minus)); }