math
Division in prolog
I\'m trying to define the division in prolog using the remainder theorem and the well-ordering principle.[详细]
2023-04-13 09:47 分类:问答PHP Math function returns wrong result
I have a variable containing: 40 * ($plvl^2)) 开发者_JAVA技巧+ (360 * $plvl); Where $plvl equals 2. According to wolfram and google the correct result is supposed to be 880 but the PHP function ret[详细]
2023-04-13 07:59 分类:问答What mathematical methods work for interpolation 2d to 2d functions?
So we have a matrix like 12,32 24,12 ... with length 2xN and another 44,32 44,19 ... with length 2xN and there is some function f(x, y) that returns z[1], z[2]. That 2 matrices that we were gi[详细]
2023-04-13 05:03 分类:问答Split number into sum components
Is there an efficient algorithm to split up a number into N subsections so that the sum of the numbers adds up to the original, with a base minimum? For example, if I want to split 50 into 7 subsectio[详细]
2023-04-13 04:59 分类:问答Android java using Eclipse math, I don't know why simple math is coming up with wrong result?
I have four variables with the following values (I am sure about the values they have): 15 100 1 4000 I am trying to output the values into a toast message, but they are coming up wrong.[详细]
2023-04-13 04:25 分类:问答How to round numbers down into a range
I have a strange request on a project. I have an HTML table with 30 columns - each column is displayed as a solid bar with the height set to the value of the column. The max value for the columns is[详细]
2023-04-13 02:57 分类:问答Mathematica-like (LaTeX) typesetting for own CAS application
As I am using Mathematica a lot I got the idea to write a small and free CAS which just exposes a very small subset of necessary functions and packages to be used and I want to present the results in[详细]
2023-04-13 00:20 分类:问答How to simplify a fraction
I want to simplify a fraction in my application. The fraction is like, x/y where x and y are integers.[详细]
2023-04-13 00:17 分类:问答Sorting points such that the minimal Euclidean distance between consecutive points would be maximized
Given a set of points in a 3D Cartesian space, I am looking for an algorithm that will sort these points, such that the minimal Euclidean distance between two consecutive points would be maximized.[详细]
2023-04-12 20:41 分类:问答Can 0.99999999999 be rounded to 1.0 when multiplying?
When multiplying a floating point number that is very close to 1 with an int > 0, can it ever be interpreted as 1.[详细]
2023-04-12 17:28 分类:问答