Hi all,
This is my first qestion in the forum.
I am a student of Software Engineering. Today I asked this question to my teacher in class. But did not get any satisfactory answer
Can any one please give me some insight why should i learn this topic in my graduations.
...
I need a way to get euler angles for rotation in global frame of reference from a local. I am using c#, wpf 3d and a gyroscope. I have a globe on the screen that should move in the same way as the gyro. Since the gyro sends movement relative to itself I need to use quaternions to keep the state of the object and update it but I'm stuck. ...
I want to decrease a value by one and if it reaches zero, set it to the maximum value. Is there a way to do this via math without resorting to if (n-1 == 0) { n = max; }
The opposite scenario of increasing a value by one and then setting it to zero when it is greater than max can easily be achieved using n = (n + 1) % (max + 1);. Furthe...
A friend of mine asked for a simple program.
Input: Coordinates of some points, spheres, planes etc. ( from an excel document (strictly) )
Output: A 3D view of the input which the user can move the camera.
The questions is, how can I do that easiest way. I have experience in C++, C#, Flash (AS), Java
...
Lets say we have 4 Vector2's (yes this is 2d), so we have lineOneStart, lineOneEnd, lineTwoStart and lineTwoEnd.
How can I detect if the 2 lines cross? I don't care where they cross, I just want to know if they intersect.
...
I've been poring through .NET disassemblies and the GCC source code, but can't seem to find anywhere the actual implementation of sin() and other math functions... they always seem to be referencing something else.
Can anyone help me find them? I feel like it's unlikely that ALL hardware that C will run on supports trig functions in ha...
I'm using rectangles defined in terms of their x y coordinates and their width and height. I figured out how to rotate them in terms of coordinates (x = cos(deg) * x - sin(deg) * y y = sin(deg) * x + cos(deg) * y) but I'm stuck on the height and width. I'm sure there's an obvious solution that I'm missing. If it matters, I'm using Python...
I am working on building a Question Classification/Answering corpus as a part of my masters thesis. I'm looking at evaluating my expected answer type taxonomy with respect to inter-rater agreement/reliability, and I was wondering: Does anybody know of any decent (preferably free) Java API(s) that can do this?
I'm reasonably certain all ...
Matrix math library that is good to use alongside OpenGL to keep track of primitive co-ordinates.
Does such a thing exist? Is this the best way to track my objects for use in collision detection?
...
I have two NSArrays of Movie objects called DVD and VHS. I'd like to find the symmetric difference of these arrays. I want to know which Movies are in VHS buy not in DVD, and which Movies are in DVD but not VHS.
Can anyone tell me if there is a fast algorithm to solve it (preferably in C or Objective-C)? Is it faster/easier to solve if...
Possible Duplicate:
convert integer to a string in a given numeric base in python
I want to work with base 5 numbers, or any other non standard base for that matter.
I found out int('123', 5) works, but I need to go the other way around.
Should I write my own number class to accomplish this?
Maybe I'm just thinking in the ...
hi expert, i'm try for log10 calculation using mathml in xml as follow
<apply><log><cn>x</cn></log></apply>
for this i'm getting expected result, but now trying for antilog which is inverse of log, i'm not sure which tag have to be use, any i'm trying as follow
<apply><inverse><log><cn>x</cn></log></inverse></apply>
here i'm not ...
I asked a question earlier about how to deal with rounding issues with floating point numbers in PHP, and was pointed to the bc and gmp libraries.
I've looked at the functions in these libraries but nothing jumped out at me when I was looking for one to round off the number.
How do you accurately round using these libraries?
...
Dear experts,
I have a a mesh, with certain types of elements (e.g. triangular, tetra). For each element I know all its vertices i.e. a triangular 2D element will have 3 vertices v1, v2 and v3 whose x,y,z coords are known.
Question 1
I am looking for an algorithm that will return all the edges... in this case:
edge(v1, v2), edge(v1,...
Hello, I've made a lot of random math programs to help me with my homework (synthetic division being the most fun) and now I'm wanting to reverse a radical expression.
For instance, in my handy TI calculator I get
.2360679775
Well, I want to convert that number to it's equivalent irrational expression, which is
sqrt(5)-2
I realiz...
I have information on paths I would like to draw. The information consists of a sequence of straight sections and curves. For straight sections, I have only the length. For curves, I have the radius, direction and angle. Basically, I have a turtle that can move straight or move in a circular arc from the current position (after which mov...
I'm implementing the scrolling behaviour of a touch screen UI but I'm too tired in the moment to wrap my mind around some supposedly trivial piece of math:
y (distance/velocity)
|********
| ******
| ****
| ***
| ***
| **
| **
| ...
(I apologize that previous versions of this question displayed the wrong function that I need to fix, this has been remedied and I hope the question makes a little more sense now.)
I have a list of objects with scores, and I'm attempting to assign rank to them based on those scores. Below is basically how I output my data.
sorted_score...
I have a from location (latitude, longitude) and to location (latitude, longitude). After calculating, it should show me what would be the nearest way to go from using a compass. The following is PHP code to do that, but its showing the wrong direction, I need little help on this.
function GreatCircleDirection ($OrigLat, $DestLat, $Orig...
Hi,
I'd like to let people type math (latex) in a text field and show them the math content dynamically as they type on the same page. how can this be done (i'm developing on windows)?
thanx!
...