Mercurial > octave-nkf
view build-aux/OctJavaQry.java @ 20643:d6d04088ac9e
nbininv.m: Increase speed (85X) and accuracy of function (bug #34363).
* nbininv.m: Call new function scalar_nbininv to calculate nbininv for scalar.
If there are still uncalculated values then call bin_search_nbininv. Call
bin_search_nbininv directly for vectors. Add more BIST tests.
* nbininv.m (scalar_binoinv): New subfunction to calculate nbininv for scalar x.
Stops when x > 1000.
* nbininv.m (bin_search_nbininv): New subfunction to do binary search for nbininv.
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Sun, 11 Oct 2015 20:33:37 -0700 |
parents | fafd51a1b0f0 |
children |
line wrap: on
line source
// Code used by configure script to locate Java installation variables. // Only compiled code, OctJavaQry.class, is distributed. public class OctJavaQry { public static void main (String[] args) { if (args.length > 0) { if (args[0].equals ("JAVA_HOME")) { System.out.println (System.getProperty ("java.home")); } else if (args[0].equals ("JAVA_LDPATH")) { System.out.println (System.getProperty ("java.library.path")); } else if (args[0].equals ("JAVA_BOOTPATH")) { System.out.println (System.getProperty ("sun.boot.library.path")); } } } }