码迷,mamicode.com
首页 >  
搜索关键字:math    ( 11719个结果
Java中文档制作与继承
1:如何制作帮助文档(了解) (1)写一个类 (2)加入文档注释 (3)通过javadoc工具生成即可 javadoc -d 目录 -author -version ArrayTool.java2:通过JDK提供的API学习了Math类(掌握) (1)API(Application Program....
分类:编程语言   时间:2015-07-28 17:23:26    阅读次数:119
java.math.BigInteger cannot be cast to java.lang.Long
mysql数据库Biginteger转换为Long类型时的错误hibernate的createSQLQuery("selectcount(*)fromorders").uniqueResult()返回的对象是BigInteger类型的BigIntegertotalCount=(BigInteger)this.getSession().createSQLQuery("selectcount(*)fromorders.orderso,customer.customerc..
分类:编程语言   时间:2015-07-28 14:51:25    阅读次数:166
BigDecimal及精度算法
一、包介绍 java.math,提供用于执行任意精度整数算法 (BigInteger) 和任意精度小数算法 (BigDecimal) 的类。 BigInteger 除提供任意精度之外,它类似于 Java 的基本整数类型,因此在 BigInteger 上执行的操作不产生溢出,也不会丢失精度。除标准.....
分类:编程语言   时间:2015-07-28 00:42:12    阅读次数:243
Math类和BigInteger:/BigDecimal类
Math类:提供了简单计算的数学计算工具类1:public static Xxx abs(Xxx xx) 求绝对值2:public static double ceil(double a) 天花板 向上取整3:public static double floor(double a) 地板 向下取整4...
分类:其他好文   时间:2015-07-27 22:41:27    阅读次数:168
poj 1001 java大精度
import java.io.* ; import java.math.* ; import java.util.* ; import java.text.* ; public class Main { public static void main(String[] args) { Scanner cin=new Scanner (...
分类:编程语言   时间:2015-07-27 21:11:41    阅读次数:194
uva10069(DP+大数)
题意:找出B串在A串出现的次数(B在A中可以是不连续的) 解答:设母串的长度是j,子串的长度数i,在假设dp[i][j]:是在长度是j的母串中出现长度是i的子串的个数,如果A[j]!=B[i],dp[i][j]=dp[i][j-1] 如果A[j]==B[i]; dp[i][j]=dp[i-][j-1]+dp[i][j-1];大数直接用JAVA好了 import java.math.BigInte...
分类:其他好文   时间:2015-07-27 21:07:12    阅读次数:105
Introduction To Monte Carlo Methods
Introduction To Monte CarloMethodsI’m going to keep this tutorial light on math, because the goal is just to give a general understanding.The idea of ...
分类:其他好文   时间:2015-07-27 20:53:10    阅读次数:183
HDU 4394 BFS
M2%10x=N (x=0,1,2,3....) 给出N,找到最小的满足条件的M 由于:N的个位只由M的个位决定,N十位由M的个位和十位决定,N的百位由M的个位十位百位决定,以此类推 所有从个位开始搜索满足条件的数字即可 #include"stdio.h" #include "string.h" #include "math.h" #include "queue" using name...
分类:其他好文   时间:2015-07-27 11:12:35    阅读次数:131
UVA 10943 How do you add?
How do you add?Larry is very bad at math — he usually uses a calculator, whichworked well throughout college. Unforunately, he is now struck...
分类:其他好文   时间:2015-07-27 10:49:09    阅读次数:121
投影矩阵的推导(Deriving Projection Matrices)
本文乃译文,原文地址为: http://www.codeguru.com/cpp/misc/misc/math/article.php/c10123__1/Deriving-Projection-Matrices.htm,由于本人能力有限,有译的不明白的地方大家可以参考原文,谢谢^-^!...
分类:其他好文   时间:2015-07-27 01:45:29    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!