This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class constants { | |
public static final double PI_INV = 1.0/StrictMath.PI; | |
public static final double PI_SL8 = StrictMath.PI * 0.125; | |
public static final double TWO_PI = 2*StrictMath.PI; | |
public static final double TWO_PI_INV = 0.5*PI_INV; | |
public static final double HALF_PI = 0.5*StrictMath.PI; | |
// Euler-Mascheroni constant (gamma) | |
public static final double EM = | |
+0.5772156649015328606065120900824024310421593359; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
import java.util.Formattable; | |
import java.util.Formatter; | |
/** | |
* Complex number class. A Complex consists of a real and imaginary | |
* part of type {@link double}.<p> | |
* | |
* Note: The methods inherited from <code>Number</code> return | |
* the value of the real part of the complex number. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <limits.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "MPFloat.h" | |
#include "jcl.h" | |
#include <gmp.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.cab1729.algorithms; | |
import org.cab1729.matrixmp.*; | |
import jgmp.MPFloat; | |
import numbercruncher.matrix.MatrixException; | |
/** | |
* @author jmenes | |
* The PSLQ Algorithm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.cab1729.portlets; | |
import com.liferay.portal.kernel.log.Log; | |
import com.liferay.portal.kernel.log.LogFactoryUtil; | |
import com.liferay.portal.kernel.util.ParamUtil; | |
import java.io.IOException; | |
import javax.portlet.ActionRequest; | |
import javax.portlet.ActionResponse; | |
import javax.portlet.GenericPortlet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Web; | |
using System.Web.Services; | |
using System.Web.Services.Protocols; | |
using Customer.Services; | |
using Customer.Entity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Numerics; | |
namespace MathFun | |
{ | |
/// <summary> | |
/// Trig functions for Complex numbers | |
/// </summary> | |
/// <remarks> | |
/// main reference: Schaum's Outlines: Complex Variables ISBN-13: 978-0070602304 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data; | |
using System.Configuration; | |
using System.Security.Permissions; | |
using System.Web; | |
using System.Web.Security; | |
// BO - Business Objects (Entities) | |
using Customer.BO; | |
using Customer.Services; | |
using Customer.Framework.Logging; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
/** | |
* @author jmenes | |
* | |
* DirectedWeightedGraph | |
* Uses a variant of an adjacency matrix to represent the graph. | |
* The weight itself is used as the edge connection indicator | |
* (it's really a cost matrix) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import jgmp.MPFloat; | |
import de.luschny.math.factorial.FactorialPoorMans; | |
/** |
OlderNewer