Anyone know of a good Math Expression builder for an online WYSIWIG. Ideally the user would be able to easily create common math symbols/notations like summation, integrals, radicals, etc... online, ideally in an existing editor.
I also need to be able host it (and ideally integrate it) in a .NET stack (IIS/Windows).
Thanks in advance!...
I am seeing something odd with storing doubles in a dictionary, and am confused as to why.
Here's the code:
Dictionary<string, double> a = new Dictionary<string, double>();
a.Add("a", 1e-3);
if (1.0 < a["a"] * 1e3)
Console.WriteLine("Wrong");
if (1.0 < 1e-3 * 1e3)
...
Hello Friends,
I want to calculate the volume of a 3D mesh object having a surface made up triangles.
Could you help me.
Thank in advance
Best Regards.
Can
...
I'm looking for an algorithm to find the common intersection points between 3 spheres.
Baring a complete algorithm, a thorough/detailed description of the math would be greatly helpful.
This is the only helpful resource I have found so far:
http://mathforum.org/library/drmath/view/63138.html
But neither method described there is detai...
I'm trying to draw a vertical scrollbar for my G15 applet, but am having difficulty positioning it properly (if you haven't done anything for the G15 LCD screen, think of it as drawing on a 160x43 pixel image).
This is my current code for positioning:
perc = (float)Math.Round( range / Items.Count+1 );
y = ( perc * SelectedID+1 );
Th...
Here is a problem I am trying to solve:
I have an irregular shape. How would I go about evenly distributing 5 points on this shape so that the distance between each point is equal to each other?
...
I have a standalone Java application below that is:
Generating a random line
Applied to a 2D grid where each cell value is the distance along the line perpindicular to the line
Finds the rise/run and attempts to calculate the original linear equation from the grid
Applies new line to another grid and prints out the greatest difference ...
I'm currently in the throes of writing a system based on subdividing space (it's for a game), I need to be able to test if a circle completely contains a square.
For bonus points, I should point out that my system works in N dimensions, so if your algorithm works by looping through each dimension and doing something, present it as such ...
Hi
I implemented Hough Transform in C# this way:
List<Point> forme = new List<Point>();
forme.Add(new Point(260, 307));
forme.Add(new Point(268, 302));
forme.Add(new Point(273, 299));
forme.Add(new Point(279, 295));
forme.Add(new Point(285, 292));
forme.Add(new Point(291, 288));...
Hi all,
I have an dictionary of lists of objects as shown below:
IDictionary<string, IList> MyItemDictionary
I work out the percentages by doing a for each through the dictionary with the code below:
IList<double> percentages = new List<double>();
foreach(KeyValuePair<string, IList> pair in MyItemDictionary)
{
double percen...
Problem: How many of the first 100,000,000 hexagonal numbers are divisible by all the numbers from 1 through 20?
2nd solution - simple brute force (does work)
public static void main(String[] args) {
long hnr = 100000000L, count = 0L;
for (long i = 1, h = getHexNr(i); i <= hnr; i++, h = getHexNr(i))
if (h % 2 == 0 && h % 3 ==...
It is well known there is a strong link between computer science and mathematics. In looking to improve my own software engineering skill set I'm interested to know what concept from mathematics has helped you to gain deeper understanding of software development as a whole? What would be the biggest bang-for-your-buck concept to learn fr...
Suppose we have two longs, x and y. What operator or function involving x and y would produce another long, z, which is least likely to be equal to the result of applying the same operator or function to different of x's and y's?
Ex: Addition would be a poor choice. 1+4=5, but 2+3 also equals 5.
EDIT: Let me explain why I'm asking this...
Hi
I have this complex iterations program I wrote in TI Basic to perform a basic iteration on a complex number and then give the magnitude of the result:
INPUT “SEED?”, C
INPUT “ITERATIONS?”, N
C→Z
For (I,1,N)
Z^2 + C → Z
DISP Z
DISP “MAGNITUDE”, sqrt ((real(Z)^2 + imag(Z)^2))
PAUSE
END
What I would like to do is make a Haskell versio...
I need to find the highest number from 3 different numbers. The only thing I've found is max() but you can only use 2 numbers.
Whats the best way?
...
I am sure many developers here -- at least the ones who were formally trained -- took a fair amount of math courses in the university. Some minored in mathematics. The curriculum usually included Calculus (level 1, 2 and 3), linear algebra, probability/statistics. As a computer scientist, I have barely used any math whatsoever in the la...
I have a set of latitudes and longitudes of locations.
How to find distance from one location in the set to another?
Is there a formula?
...
If I execute the following expression in C#:
double i = 10*0.69;
i is: 6.8999999999999995. Why?
I understand numbers such as 1/3 can be hard to represent in binary as it has infinite recurring decimal places but this is not the case for 0.69. And 0.69 can easily be represented in binary, one binary number for 69 and another to denot...
I need(for rapid prototyping and libraries integration) something like this(extensions for usual arrays)
double[] d;
d.SetRow(1,{ 1.1 , 2.0 ,3.3});
var r = d.GetRow(1);
d = d.AppendRight(new int[]{1,2,3});
...
Does exist such thing anywhere?
On may be anybody implemented it so I do not need do i for me myself?
...
Hi!
I just discovered an algorithm for finding the power set. I googled after solutions, but found none that worked any good, so I figured out one myself. But I wonder what algorithm it is, because I cannot find it on the net or in any books. I mean, does it have a name? I hardly think I'm the inventor of it. But compared to the algorit...