math

how can i construct the bezier curve if i only have points in x axis?

how can i construct the bezier curve if i only have points in x axis?can i do this act or need points for x and y axes related to t parameter? i want constructe a bezier curve(from degree N)in a given interval and known point in that interval(that are random), but i have points only in x axes!!Whether this is feasible? ...

Why does Gnu Octave have negative zeroes?

Hello, This is an odd one I'm puzzled about. I recently noticed at the Gnu Octave prompt, it's possible to enter in negative zeroes, like so: octave:2> abomination = -0 And it remembers it, too: octave:3> abomination abomination = -0 In the interest of sanity, negative zero does equal regular zero. But I also noticed that the si...

How would I perform math within a sql query to calculate percent difference?

I would like to take surveys (2 or more choices), and place the results in a table. I just want to know how I would tally up the results in a sql query. Even more, should i be doing the math within the query, or just use PHP to do the math? Example Questions Table question_id (int) question (text) answer_1 (varchar) answer_2 (varchar...

Sine wave frequency fitting

This question is based on a previous similar question. I have the following equation and an adjusted (some random data): 0.44*sin(N* 2*PI/30) I am trying to use the FFT to get the frequency from the data generated. However the frequency ends up being close but not equal to the frequency (which makes the wave a bit larger than intended)...

Java jama Sigma problem

Hi All, I am using jama libarary for matrix. I used following matrix but when i tried to get S, it gave me error. 1.0 1.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 11.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 12.0 2.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 13.0 3.0 ...

Where to find mapping of Latex \sum commands to actual Sigma symbol in ttf?

Hi! If this is OT, please tell me where to repost it. I need to render some math equations, in real time. Where can I find a mapping of the LaTeX "english" names (like \sum ) to symbol XYZ of ABC.ttf ? I can read + render ttf's fine; I just don't know where to get the ttfs that have the math symbols and how they're indexed. Thanks! ...

CGAL 3.4: How do I get end vertex co-ordinates from a Finite_edges_iterator?

Here is some code: struct K : CGAL::Exact_predicates_inexact_constructions_kernel {}; typedef CGAL::Triangulation_vertex_base_2<K> Vb; typedef CGAL::Constrained_triangulation_face_base_2<K> Fb; typedef CGAL::Triangulation_data_structure_2<Vb,Fb> TDS; typedef CGAL::Exact_predicates_tag It...

positive semi-definite matrices and numerical stability ?

i'm trying to do factor analysis for a co-occurrence matrix(C) , which is computed from the term-document matrix(TD) as follows: C=TD*TD' In theory C should be positive semi-definite , but it isn't and the factor analysis algorithm can't work with it because of this.I can't change the algo because of speed reasons). I look it up and ...

draw two circles which has intersect each other,from that i need to find that intersect point using c#

Draw two circles which has intersect each other, from that I need to find that intersect point using c# using directx. I need to find two points. ...

Do i have a future in java programming although i'm not that good in math?

Well, im not good in algebra and trig, could that be a problem when i get into higher years? But i do have the determination to study java programming. at this particular moment I'm only a first year IT student ...

How do i add the result of the factorial values..

I'm having a logic problem here.. i want to add the result of the factorial values.. how do i add them.. here's my code.. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Task_8_Set_III { class Program { static void Main(string[] args) { ...

PHP math question

Lets say I divide 14 / 15 times it by 100 to get the percentage which is 93.33333333333333 how can I display it as 93.3% using php? Here is the code. $percent = ($avg / 15) * 100; ...

can i generate multiplication table of 1-9 from a single for loop??

i just want to know that whether i can generate a multiplication table from 1 - 9 with a single for loop?? ...

What is the Entropy of Android's Dot Password System?

How many permutations of the androids dot login system are possible? I know for a fact the solution to this lies in Discrete Math, specifically Permutations Without Repetition, If your answer doesn't use permutations or combinations you are incorrect. The length of passwords is between 4 and 9 dots, There are a total of 9 dots to p...

count the numbers that are not divisible by 2,3,5.

in my program, i think my count variable is not holding the value.. what do i do so that it can hold? here`s my code. static void Main(string[] args) { double a; double count = 0; Console.WriteLine("Enter the Numbers : "); for (double i = 1; i <= 10; i++) { a = Convert.ToDouble(Con...

Calculate distance between two x/y coordinates?

i would like to calculate the distance between two x/y coordinates. This calculation itself isn't that difficult, however I need the corners and sides of the grid to be 'connected'. This means on a grid of 500x500 that the point after 499 becomes 0 again. The distance between e.g. 0,0 and 0,495 should be 5 then. Is there any good mathe...

How can one check for "safe" conversions between value types in .NET?

Back to the basics... For reference types, one can do this: SomeType someObject = firstObject as SomeType; if (someObject == null) { // Handle the situation gracefully } else { // Do stuff } For value types, my understanding is that we have implicit conve...

how do you call a value entered in a UI to your java class?

Making a simple app for my android. in my xml interface there is a text box in which the user will input a number (for example: 10). the id of this text box is "input1" how do I call the value of input1 in java and then perform a calculation on it? For example... suppose input1 = x x + 5 or x*2 and for that matter, how do I have...

Multinomial Generation of Degree n

I'm basically looking for a summation function that will compute multinomials given the number of variables and a degree. Example 2 Variables; 2 Degrees: x^2+y^2+x*y+x+y+1 Thanks. ...

Isometric projection : What's wrong with my math?

I have an math problem in Isometric projection. I have reading an article: Axonometric projections - a technical overview. For the Isometric projection part, it give an mathematical formula for conversion 3D point into 2D point for the x part the formula is: x' = ( x − z ) cos(30); But i also check for wiki for Isometric Projection s...