All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.expression.fn.math.Combin Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
package com.scudata.expression.fn.math;

import com.scudata.common.MessageManager;
import com.scudata.common.RQException;
import com.scudata.dm.Context;
import com.scudata.expression.Function;
import com.scudata.expression.IParam;
import com.scudata.resources.EngineMessage;
import com.scudata.util.Variant;


/**
 * ???????,??n????????ѡ??k??????????????nn/2){
			for(long i=n;i>k;i--){
				result*=i;
			}
			result/=Fact.fact(n-k);
		}else{
			for(long i=n;i>n-k;i--){
				result*=i;
			}
			result/=Fact.fact(k);
		}
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy