text stringlengths 0 27.6k | python int64 0 1 | DeepLearning or NLP int64 0 1 | Other int64 0 1 | Machine Learning int64 0 1 | Mathematics int64 0 1 | Trash int64 0 1 |
|---|---|---|---|---|---|---|
I'm not sure what's the appropriate terminology here, but I'd like to have an application running passively that is ready to accept commands without having to reinitialize the whole thing.
The precise application is a machine learning system written in Python that takes a somewhat long time to train a classifier or to ... | 0 | 0 | 0 | 1 | 0 | 0 |
I made shoot em up like game.But I have only one ememy which fallows me on screen.But I want to make lots of enemys like each 10 second they will across on screen together 5 or 10 enemys.
ArrayList<Enemies> enemy = new ArrayList<Enemies>();
for (Enemies e : enemy) {
e.draw(g);
}
is it good creating ar... | 0 | 1 | 0 | 0 | 0 | 0 |
I've been coding my way through Steve Kochan's Programming in Objective-C 2.0 book. I'm up to an exercise in chapter 7, ex 4, in case anyone has the book.
The question posed by the exercise it will the Fraction class written work with negative fractions such as -1/2 + -2/3?
Here's the implementation code in question -
... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm working on a simple subtraction problem, but unfortunately it keeps returning NaN
Here is the function
function subtraction(a, b) {
var regexp = /[$][,]/g;
a = a.replace(regexp, "");
b = b.replace(regexp, "");
var _a = parseFloat(a);
var _b = parseFloat(b);
ret... | 0 | 0 | 0 | 0 | 1 | 0 |
This is a simple jquery question: when my div #wrapper has a specific height (=browser height - 129px), i want to set the width of a inner div #object automatically too (cause I need a width for the object to read it out)
example of the html:
<div id="wrapper">
<div id="object"> </div>
</div>
example (jquery):
$("... | 0 | 0 | 0 | 0 | 1 | 0 |
I am using JQuery to get the contents of a div, which only contains a price in dollars and I would like to add $99 to it, but its text, so when I do the below it won't work.
$('#price_' + part[0]).text($('#price_' + part[0]).text() + 99);
//Changes the div contents to $10099 - if it the contents was $100 to start with
... | 0 | 0 | 0 | 0 | 1 | 0 |
If I have this:
A * f = g;
A: upper triangular matrix (n x n)
f: (n x 1)
g: (n x 1)
Need to solve for f using back substitution algorithm. I would say that it not really that hard to write one myself, but oh well, if there is a library out there, then why not.
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a arbitrarily large string of text from the user that needs to be split into 10k chunks (potentially adjustable value) and sent off to another system for processing.
Chunks cannot be longer than 10k (or other arbitrary value)
Text should be broken with natural language context in mind
split on punctuation w... | 0 | 1 | 0 | 0 | 0 | 0 |
I like to add (+1) to a number. But problem is my number can sometimes have 0 preceding it. Like 01, 02, 03, 04. So I like result to be:
mockup01 + 1 = mockup02
mockup11 + 1 = mockup12
How can that be achieved? Example of how I would use it would be if I had filename named mockup_01.htm and change it to mockup_02.htm
... | 0 | 0 | 0 | 0 | 1 | 0 |
i'm working on a project and need your ideas, advices.
First of all, let me tell my problem.
There is power button and some other keys of a machine and
there is only one user has authentication to use this machine.There are
no other authentication methods, the machine is in public area in a company.
the machine is wor... | 0 | 0 | 0 | 1 | 0 | 0 |
I'm using the explorer feature of Weka for classification.
So I have my .arff file, with 2 features of NUMERIC value, and my class is a binary 0 or 1 (eg {0,1}).
Sample:
@RELATION summary
@ATTRIBUTE feature1 NUMERIC
@ATTRIBUTE feature2 NUMERIC
@ATTRIBUTE class {1,0}
@DATA
23,11,0
20,100,1
2,36,0
98,8,1
.....
I load t... | 0 | 0 | 0 | 1 | 0 | 0 |
I want to project my Polygon along a vector to a plane in 3d Space. I would preferably use a single transformation matrix to do this, but I don't know how to build a matrix of this kind.
Given
the plane's parameters (ax+by+cz+d),
the world coordinates of my Polygon. As stated in the the headline, all vertices of my ... | 0 | 0 | 0 | 0 | 1 | 0 |
From Wikipedia, camera resectioning is the process of finding the true parameters of the camera that produced a given photograph or video. Camera resectioning is also known as geometric camera calibration.
Currently I am using Camera Calibration Toolbox for Matlab for my camera calibration. The toolbox returns calibrat... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to work out a problem I'm having with degrees. I have data that is a list of of angles, in standard degree notation -- e.g. 26 deg.
Usually when dealing with angles, if an angle exceeds 360 deg then the angle continues around and effectively "resets" -- i.e. the angle "starts again", e.g. 357 deg, 358 deg, ... | 0 | 0 | 0 | 0 | 1 | 0 |
Problem Constraints
Size of the data set, but not the data itself, is known.
Data set grows by one data point at a time.
Trend line is graphed one data point at a time (using a spline/Bezier curve).
Graphs
The collage below shows data sets with reasonably accurate trend lines:
The graphs are:
Upper-left. By hour, w... | 0 | 0 | 0 | 0 | 1 | 0 |
In .NET what is the best way to find the length of an integer in characters if it was represented as a string?
e.g.
1 = 1 character
10 = 2 characters
99 = 2 characters
100 = 3 characters
1000 = 4 characters
The obvious answer is to convert the int to a string and get its length but I want the best performance possible... | 0 | 0 | 0 | 0 | 1 | 0 |
I think this is an interesting question, at least for me.
I have a list of words, let's say:
photo, free, search, image, css3, css, tutorials, webdesign, tutorial, google, china, censorship, politics, internet
and I have a list of contexts:
Programming
World news
Technology
Web Design
I need to try and match wor... | 0 | 1 | 0 | 0 | 0 | 0 |
I am looking for a method to build a hierarchy of words.
Background: I am a "amateur" natural language processing enthusiast and right now one of the problems that I am interested in is determining the hierarchy of word semantics from a group of words.
For example, if I have the set which contains a "super" representa... | 0 | 1 | 0 | 1 | 0 | 0 |
Is there a fast method for taking the modulus of a floating point number?
With integers, there are tricks for Mersenne primes, so that its possible to calculate y = x MOD 2^31-1 without needing division. integer trick
Can any similar tricks be applied for floating point numbers?
Preferably, in a way that can be con... | 0 | 0 | 0 | 0 | 1 | 0 |
This is more of a maths question than programming but I figure a lot of people here are pretty good at maths! :)
My question is: Given a 9 x 9 grid (81 cells) that must contain the numbers 1 to 9 each exactly 9 times, how many different grids can be produced. The order of the numbers doesn't matter, for example the fir... | 0 | 0 | 0 | 0 | 1 | 0 |
I am in charge of a program that is used to create a set of nodes and paths for consumption by an autonomous ground vehicle. The program keeps track of the locations of all items in its map by indicating the item's position as being x meters north and y meters east of an origin point of 0,0. In the real world, the ve... | 0 | 0 | 0 | 0 | 1 | 0 |
In a two dimentional integer space, you have two points, A and B. This function returns an enumeration of the points in the quadrilateral subset bounded by A and B.
A = {1,1} B = {2,3}
Fn(A,B) = {{1,1},{1,2},{1,3},{2,1},{2,2},{2,3}}
I can implement it in a few lines of LINQ.
private void UnknownFunction(Point to, Point... | 0 | 0 | 0 | 0 | 1 | 0 |
Has anyone seen this weird value while handling sin / cos/ tan / acos.. math stuff?
===THE WEIRD VALUE===
-1.#IND00
=====================
void inverse_pos(double x, double y, double& theta_one, double& theta_two)
{
// Assume that L1 = 350 and L2 = 250
double B = sqrt(x*x + y*y);
double angle_beta = atan2... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to round a number to it's first decimal place and, considering the different MidpointRounding options, that seems to work well. A problem arises though when that number has sunsequent decimal places that would arithmetically affect the rounding.
An example:
With 0.1, 0.11..0.19 and 0.141..0.44 it works:
Mat... | 0 | 0 | 0 | 0 | 1 | 0 |
I m looking for a faster implementation or good a approximation of functions provided by cmath.
I need to speed up the following functions
pow(x,y)
exp(z*pow(x,y))
where z<0. x is from (-1.0,1.0) and y is from (0.0, 5.0)
| 0 | 0 | 0 | 0 | 1 | 0 |
How do I project the X axis to a plane if the plane is defined by three points?
The default local 1-direction is the projection of the global x-axis onto the surface. If the global x-axis is within 0.1° of being normal to the surface, the local 1-direction is the projection of the global z-axis onto the surface.
Let's ... | 0 | 0 | 0 | 0 | 1 | 0 |
Hello all math masters, I got a problem for you:
I have a 2D game (top down), and I would like to make the character escape from a shot, but not just walk away from the shot (I mean, don't be pushed by the shot), I want it to have a good dodging skills.
The variables are:
shotX - shot x position
shotY - shot y positio... | 0 | 0 | 0 | 0 | 1 | 0 |
I had used several ways to do some simple integer arithmetic in BASH (3.2). But I can't figure out the best (preferred) way to do it.
result=`expr 1 + 2`
result=$(( 1 + 2 ))
let "result = 1 + 2"
What are the fundamental differences between those expressions?
Is there other ways to do the same?
Is the use of a tool lik... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a what I think is a simple machine learning question.
Here is the basic problem: I am repeatedly given a new object and a list of descriptions about the object. For example: new_object: 'bob' new_object_descriptions: ['tall','old','funny']. I then have to use some kind of machine learning to find previously hand... | 0 | 1 | 0 | 1 | 0 | 0 |
I have a system that stores vectors and allows a user to find the n most similar vectors to the user's query vector. That is, a user submits a vector (I call it a query vector) and my system spits out "here are the n most similar vectors." I generate the similar vectors using a KD-Tree and everything works well, but I ... | 0 | 0 | 0 | 0 | 1 | 0 |
How do I check if an element a belongs to a specific cyclic group G of prime order, given the generator? Right now i simply generate all the elements in the group, save them into a container and check if the element is in it. This is the code im currently using to generate all the elements of the group:
public HashSet<... | 0 | 0 | 0 | 0 | 1 | 0 |
How do I calculate a curve of a linear floating point number (0 to 1) and get another floating point number as a result? What I want is up until the half (0..0.5), to be inversed logarithmic and high than that to be logarithmic like a curve according to the given linear value.
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a yes/no classification problem, where false positives are worse than false negatives.
Is there a way to implement this fact into neural network especially in MATLAB's Neural Network Toolbox?
| 0 | 0 | 0 | 1 | 0 | 0 |
I have four integer numbers a, b, c, d, and integer x ϵ [1, 40].
How do I find the values of {a, b, c, d}, for which one of following equations is true for any 1 <= x <= 40?
x = a or
x = b or
x = a + b or
x = a + b + c + d or
x + a = c + d or
x + a + b = c + d or
...
x + a + b + c = d or ...
Example:
If x = 17, by {a... | 0 | 0 | 0 | 0 | 1 | 0 |
Can anyone tell me how do this? They are already integers, so I'm not sure what to try...
var lrgSlideShow = {
activeClass: 'active',
wrapperClass: 'slideshow-widget-large',
pauseLength: 2000,
fadeLength: 1000
}
setInterval(changeImg,lrgSlideShow.pauseLength+lrgSlideShow.fadeLength);
| 0 | 0 | 0 | 0 | 1 | 0 |
I have two Cartesian coordinates. There are xyz and BIG XYZ. I want to make these are parallel to each other. For example, x paralel to X ,y parallel to Y and z paralel to Z. I use a rotation matrix but I have a lot of different rotation matrices. For example I have 3D point in xyz Cartesian coordinates and it's c... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a couple of numerical datasets that I need to create a concept hierarchy for. For now, I have been doing this manually by observing the data (and a corresponding linechart). Based on my intuition, I created some acceptable hierarchies.
This seems like a task that can be automated. Does anyone know if there is an... | 0 | 1 | 0 | 1 | 0 | 0 |
I have this code:
CGPoint arrowMiddle = CGPointMake((arrowOne.x + arrowTo.x)/2, (arrowOne.y + arrowTo.y)/2);
CGPoint arrowLeft = CGPointMake(arrowMiddle.x-40, arrowMiddle.y);
CGPoint arrowRight = CGPointMake(arrowMiddle.x, arrowMiddle.y + 40);
[arrowPath addLineToScreenPoint:arrowLeft];
[arrowPath addLineToScreenPoin... | 0 | 0 | 0 | 0 | 1 | 0 |
Greetings everybody. I have seen examples of such operations for so many times that I begin to think that I am getting something wrong with binary arithmetic. Is there any sense to perform the following:
byte value = someAnotherByteValue & 0xFF;
I don't really understand this, because it does not change anything anywa... | 0 | 0 | 0 | 0 | 1 | 0 |
I have the following piece of pseudo-C/Java/C# code:
int a[]= { 30, 20 };
int b[] = { 40, 50 };
int c[] = {12, 12};
How do I compute the cross-product ABxAC?
| 0 | 0 | 0 | 0 | 1 | 0 |
I have written some general functions to convert between decimal and any other base-n number system(n<=36 for now) and vice-versa. Don't want to make things messy here so i have posted the code here.
Could anybody suggest any better way for this? May be more effective and Rubyish?
Thanks
| 0 | 0 | 0 | 0 | 1 | 0 |
Try running this in a .VBS file
MsgBox(545.14-544.94)
You get a neat little answer of 0.199999999999932!
This rounding issue also occurs unfortunately in Sin(2 * pi) since VB can only ever see the (user defined) variable pi as accurate as 3.14159265358979.
Is rounding it manually (and loosing accuracy) the only way to... | 0 | 0 | 0 | 0 | 1 | 0 |
I am having a real headache trying to set a node's local position to match a given world position.
I was given a solution but, AFAICS, it only takes into account orientation and position but NOT scaling :
node_new_local_position = node_parent.derivedOrientation().Inverse() * ( world_position_to_match - node_parent.deri... | 0 | 0 | 0 | 0 | 1 | 0 |
How to create the transformation matrix (4x4) that transforms a cylinder (of height 1 and diameter 1) into a cone that represents my spotlight (position, direction and cutoff angle) ?
--edit--
In other words: how to draw the cone that represents my spotlight by drawing a cylinder through a suitable transformation matri... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm using .net WPF geometry classes to graph waveforms. I've been using the matrix transformations to convert from the screen coordinate space to my coordinate space for the waveform. Everything works great and it's really simple to keep track of my window and scaling, etc. I can even use the inverse transform to cal... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to calculate the sunset / rise times using python based on the link provided below.
My results done through excel and python do not match the real values. Any ideas on what I could be doing wrong?
My Excel sheet can be found under .. http://transpotools.com/sun_time.xls
# Created on 2010-03-28
# @author: da... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm interested in data mining projects, and have always wanted to create a classification algorithm that would determine which specific check-ins need code-reviews, and which may not.
I've developed many heuristics for my algorithm, although I've yet to figure out the killer...
How can I programmatically check the comp... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm struggling my way through Artificial Intelligence: A Modern Approach in order to alleviate my natural stupidity. In trying to solve some of the exercises, I've come up against the "Who Owns the Zebra" problem, Exercise 5.13 in Chapter 5. This has been a topic here on SO but the responses mostly addressed the questi... | 0 | 1 | 0 | 0 | 0 | 0 |
I have a game in which you can score from -40 to +40 on each match.
Users are allowed to play any number of matches.
I want to calculate a total score that implicitly takes into account the number of matches played.
Calculating only the average is not fair.
For example, if Peter plays four games and gets 40 points on ... | 0 | 0 | 0 | 0 | 1 | 0 |
Ok I am trying to make something to ask you random multiplication questions. Now it asks the questions fine. Generates the random questions fine. But when it reloads the page the random numbers are different...
how can I fix this?
<?php
$rndnum1 = rand(1, 12);
$rndnum2 = rand(1, 12);
echo "<h3>". $rndnum1 . " x ";
... | 0 | 0 | 0 | 0 | 1 | 0 |
So given x, and power, n, solve for X^n.
There's the easy way that's O(n)...
I can get it down to O(n/2), by doing
numSquares = n/2;
numOnes = n%2;
return (numSquares * x * x + numOnes * x);
Now there's a O(log(n)) solution, does anyone know how to do it? It can be done recursively.
| 0 | 0 | 0 | 0 | 1 | 0 |
In a rule system, or any reasoning system that deduces facts via forward-chaining inference rules, how would you prune "unnecessary" branches? I'm not sure what the formal terminology is, but I'm just trying to understand how people are able to limit their train-of-thought when reasoning over problems, whereas all sema... | 0 | 1 | 0 | 1 | 0 | 0 |
If I have a method for calculating the greatest common divisor of two integers as:
public static int GCD(int a, int b)
{
return b == 0 ? a : GCD(b, a % b);
}
What would be the best way to attach that to the System.Math class?
Here are the three ways I have come up with:
public static int GCD(this int a, int b)
{
... | 0 | 0 | 0 | 0 | 1 | 0 |
Can anyone help me with example on using lapack with latest f#? Or it is not recommended for now?
I searched and only find http://fdatamining.blogspot.com/ but was not able to get FSharp.PowerPack.Math.Providers.dll compiled.
EDIT:
@Yin, Thanks for your blog. On compiling FSharp.PowerPack.Math.Providers.dll from 1.9.7... | 0 | 0 | 0 | 0 | 1 | 0 |
Given a simple data set, I would like to be able to calculate a trending formula given it's a second order polynomial regression.
In fact, it would be great if one could even forecast X periods during calculation (similar to what Excel does).
I'm looking for a portable C/C++ package that's relatively easy to use, and a... | 0 | 0 | 0 | 0 | 1 | 0 |
How can I write mathematics formula in actionscipt2.0? As following:alt text http://www.freeimagehosting.net/uploads/bc5fee2333.png
Thanks all!
| 0 | 0 | 0 | 0 | 1 | 0 |
I have set of points which lies on the image. These set of points form a irregular closed shape. I need to find the area of this shape. Does any body which is the normal algorithm used for calculating the area ? Or is there any support available in libraries such as boost? I am using C++.
| 0 | 0 | 0 | 0 | 1 | 0 |
I want to test if a number double x is an integer power of 10. I could perhaps use cmath's log10 and then test if x == (int) x?
edit: Actually, my solution does not work because doubles can be very big, much bigger than int, and also very small, like fractions.
| 0 | 0 | 0 | 0 | 1 | 0 |
Heyy Everybody!
I am trying to create a memory management system, so that a user can call myMalloc, a method I created. I have a linked list keeping track of my free memory. My problem is when I am attempting to find the end of a free bit in my linked list. I am attempting to add the size of the memory free in that ... | 0 | 0 | 0 | 0 | 1 | 0 |
I am unsure how to put this and my math skills aren't that strong. But here's what I need.
I want to generate a list of all the 16bit integers (0-65535). But everytime I do so I want to seed the algorithm randomly that each time the list starts with a different integer and all the subsequent integers will be generated ... | 0 | 0 | 0 | 0 | 1 | 0 |
Does anyone has the formula to convert X,Y,Z,Vx,Vy(cartesian 5D) as well as Azimuth, Elevation(Angular 2D) to Lat Long Alt? Thanks.
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm doing simple divisions in c#, and I am a bit puzzled by its intricacies. Here's some code, and in the comments, the result. (btw, I only compile with 1 line not commented, if you say that I have 5 declarations of the same variable)
double result = 2 / 3; //gives 0
double result = Convert.ToDouble(2) / Convert.ToDou... | 0 | 0 | 0 | 0 | 1 | 0 |
Does anybody know the mathematics behind an attack on DSA where modulus p has p-1 made up of only small factors. In reality, this would not happen as the key generator would guarantee that this is not so.
There is much information on the web on generating good input paramters for DSA so that it is hard to crack but no... | 0 | 0 | 0 | 0 | 1 | 0 |
I am doing this JavaScript math question where it asks me his math question. I do the math, type the answer in the box, and sumbit it. If i am right I move on but I got lost at x.length. I don't know what that means. Here is a example of the problem:
var a= 5+6*4
var b= a / 9
Function (x)
(
if (x.length == b)... | 0 | 0 | 0 | 0 | 1 | 0 |
I have two endpoints (xa,ya) and (xb,yb) of two vectors, respectively a and b, originating from a same point (xo, yo). Also, I know that |a|=|b|+s, where s is a constant. I tried to compute the origin (xo, yo) but seem to fail at some point. How to solve this?
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to use this formula in JAVA : (-ln(1-L))/L
I'm not sure how to use ln in java.
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm using a Segment to Segment closest approach method which will output the closest distance between two segments of length. Each segment corresponds to a sphere object's origin and destination. The speed is simply from one point, to the other.
Closest Approach can succeed even when there won't be a real collision... | 0 | 0 | 0 | 0 | 1 | 0 |
HI,
I am trying to use the robust predicates for computational geometry from Jonathan Richard Shewchuk.
I am not a programmer, so I am not even sure of what I am saying, I may be doing some basic mistake.
The point is the predicates should allow for precise aritmthetic with adaptive floating point precision. On my ... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm new to SVMs, and I'm trying to use the Python interface to libsvm to classify a sample containing a mean and stddev. However, I'm getting nonsensical results.
Is this task inappropriate for SVMs or is there an error in my use of libsvm? Below is the simple Python script I'm using to test:
#!/usr/bin/env python
# Si... | 0 | 1 | 0 | 1 | 0 | 0 |
which part of huge package nltk I must study and use, if I need mark geonames in text?
| 0 | 1 | 0 | 0 | 0 | 0 |
We would need to embed mathematical formulas through AsciiMathML into Google Sites pages (internal wiki for a research team). I am stuck with the limitation of Google Sites.
Any idea how to do that?
(ps: I have finally found a poorly practical work-around, but better ideas would still be appreciated)
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm working on a sudoko solver (python). my method is using a game tree and explore possible permutations for each set of digits by DFS Algorithm.
in order to analyzing problem, i want to know what is the count of possible valid and invalid sudoko tables?
-> a 9*9 table that have 9 one, 9 two, ... , 9 nine.
(this isn'... | 0 | 0 | 0 | 0 | 1 | 0 |
I understand that all math is done as the largest data type required to handle the current values but when you transverse a loop how do you explicitly multiply longs? The following code returns 0, I suspect, because of an overflow.
long result = 0L;
List<Long> temp = (List<Long>) getListOfIntegers();
for (int i = 0; i ... | 0 | 0 | 0 | 0 | 1 | 0 |
I intend to develop a J2ME application, that should be able to read words from the English Dictionary. How do I interface to/and store a Dictionary ? Will I have to create the Dictionary myself, by inserting words, or is there a third party Dictionary available with APIs?
| 0 | 1 | 0 | 0 | 0 | 0 |
I have a parametric curve, say two vectors of doubles where the parameter is the index, and I have to calculate the angle of the tangent to this curve at any given point (index).
Any suggestion or link about how to do that?
Thanks.
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm doing the following in Objective-C and expecting 180 as the output but I'm getting 150. Can anyone explain what I'm doing wrong?
(360 / 100) * 50
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm working on coding the Pohlig-Hellman Algorithm but I am having problem understand the steps in the algorithm based on the definition of the algorithm.
Going by the Wiki of the algorithm:
I know the first part 1) is to calculate the prime factor of p-1 - which is fine.
However, I am not sure what I need to do in st... | 0 | 0 | 0 | 0 | 1 | 0 |
I was working on my advanced calculus homework today and we're doing some iteration methods along the lines of newton's method to find solutions to things like x^2=2. It got me thinking that I could write a function that would take two function pointers, one to the function itself and one to the derivative and automate... | 0 | 0 | 0 | 0 | 1 | 0 |
I am creating a graphing calculator in Java as a project for my programming class. There are two main components to this calculator: the graph itself, which draws the line(s), and the equation evaluator, which takes in an equation as a String and... well, evaluates it.
To create the line, I create a Path2D.Double insta... | 0 | 0 | 0 | 0 | 1 | 0 |
I want to write some games, but I don't have any game development experience. Any books are recommended? Is this necessary to have a good Maths skill when taking about some physical actions? Also, is it complex to do some AI design? thz a lot.
| 0 | 1 | 0 | 0 | 0 | 0 |
The following is a survey given to course attendees to assess an instructor at the end of the course.
Communication Skills
1. The instructor communicated course material clearly and accurately.
Yes No
2. The instructor explained course objectives and learning outcomes.
Yes No
3. In the event of not understanding course... | 0 | 1 | 0 | 0 | 0 | 0 |
This may be a little hard to describe since I don't have a sample. I'm trying to find a math function or full 3d function in php or a similar language that can help me with the following effect:
imagine if you were to take a flat sheet or paper and glue it on a glass of water. It wouldn't be flat any more. It would ha... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm in the process of developing a simple 2d grid based sim game, and have fully functional path finding.
I used the answer found in my previous question as my basis for implementing A* path finding. (Pathfinding 2D Java game?).
To show you really what I'm asking, I need to show you this video screen capture that I mad... | 0 | 1 | 0 | 0 | 0 | 0 |
Trying to figure out this pseudo code. The following is assumed....
I can only use unsigned and signed integers (or long).
Division returns a real number with no remainder.
MOD returns a real number.
Fractions and decimals are not handled.
INT I = 41828;
INT C = 15;
INT D = 0;
D = (I / 65535) * C;
How would you hand... | 0 | 0 | 0 | 0 | 1 | 0 |
I know this is probably a very simple question but how would I do something like
n2 in a programming language?
Is it n * n? Or is there another way?
| 0 | 0 | 0 | 0 | 1 | 0 |
I wrote this post
Music and Mathematics, finding the Natural and the Pentatonic scales.
I want to find the best programmatic aproach. A solution could be:
<script>
function getScaleIntervals(c) {
var tot = 0;
var scale = [];
while(tot <= 12){
scale.push(Math.round(tot));
tot += c;
}
r... | 0 | 0 | 0 | 0 | 1 | 0 |
I am looking for any free libraries for Named Entity Recognition in c# or any other .net language.
| 0 | 1 | 0 | 0 | 0 | 0 |
I am trying to find the linear trend line for a set of data. The set contains pairs of dates (x values) and scores (y values). I am using a version of this code as the basis of my algorithm.
The results I am getting are off by a few orders of magnitude. I assume that there is some problem with round off error or overfl... | 0 | 0 | 0 | 0 | 1 | 0 |
I am currently working on a project where I need to generate multiple values (floats or doubles preferably) that follow a power law distribution with a given exponent!
I was advised to use the MathNet.Iridium library to help me. The problem I have is that the documentation is not as explicit as it should be if there is... | 0 | 0 | 0 | 0 | 1 | 0 |
Basically I am attempting to have an AI agent navigate a world based on given percepts. My issue is handling how the agent moves. Basically, I have created find_action/4 such that we pass in the percepts, action, current cell, and the direction the agent is facing. As it stands the entire code looks like: http://wesnot... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm given three binary random variables: X, Y, and Z. I'm also given the following:
P(Z | X)
P(Z | Y)
P(X)
P(Y)
I'm then supposed to determine whether or not it is possible to find P(Z | Y, X). I've tried rewriting the solution in the form of Bayes' Theorem and have gotten nowhere. Given that these are boolean random v... | 0 | 0 | 0 | 0 | 1 | 0 |
I wish to determine if a Point P(x,y,z) is inside a 2D circle in 3D space defined by its center C (cx, cy, cz), radius R, and normal to the plane the circle lies on N.
I know that a point P lying on a 2D circle in 3D space is defined by:
P = R*cos(t)U + Rsin(t)*( N x U ) + C
where U is a unit vector from the center of ... | 0 | 0 | 0 | 0 | 1 | 0 |
Possible Duplicate:
What's wrong with this division?
If you divide 2 / 3, it should return 0.66666666666666667. Instead, I get 0.0 in double value type and 0 in decimal.
My purpose is to divide even (e.g. 2 / 3) and round to 1 always to the nearest.
Any help?
| 0 | 0 | 0 | 0 | 1 | 0 |
Ok this is new, Math.Round(1.5) returns 2, i need 1.
How to handle this?
[EDITED] I know its the elementary default way, i need the opposite.
Wrong typing meaning.
Any Suggestions?
| 0 | 0 | 0 | 0 | 1 | 0 |
Suppose i have a unsigned integer, call it low and one another call it high such that high>low.
The problem is to find distinct digit set numbers over this range.
For example, suppose low is 1 and high is 20 then the answer is 20, because all the numbers in this range are of distinct digit sets. If suppose low is 1 and... | 0 | 0 | 0 | 0 | 1 | 0 |
Let's say I have an array of zeros:
a = numpy.zeros(1000)
I then introduce some repetitive 'events':
a[range(0, 1000, 30)] = 1
Question is, how do I detect the 'signal' there? Because it's far from the ideal signal if I do the 'regular' FFT I don't get a clear indication of where my 'true' signal is:
f = abs(numpy.fft.... | 0 | 0 | 0 | 0 | 1 | 0 |
Input: two multidimensional (for example dim=8) vectors a and b.
I need to find out the "directed" angle (0-2*Pi, not 0-Pi) between those vectors a and b. And if they are not parallel I need to rotate vector b in plane a,b by "directed" angle L. If they are parallel, plane does not matter, but angle of rotation is stil... | 0 | 0 | 0 | 0 | 1 | 0 |
Given a integer number and its reresentation in some arbitrary number system. The purpose is to find the base of the number system. For example, number is 10 and representation is 000010, then the base should be 10. Another example: number 21 representation is 0010101 then base is 2. One more example is: number is 6 an... | 0 | 0 | 0 | 0 | 1 | 0 |
I was hoping someone might help with a function that given two parameters:
@param $bytes : total amount in bytes of data consumed
@param $rate : rate per GB, example .22 (for 22 cents)
@returns Total amount owed
Rounded to nearest cent of course. Thanks in advance for any help.
| 0 | 0 | 0 | 0 | 1 | 0 |
I have thos piece of code:
Math&&Math.random?Math.floor(Math.random()*10000000000000):Date.getTime();
And as far as i know && is logic operator for AND, so im trying to convert this into PHP and this is where i got:
intval(floor(time()/10800000)%10+(rand()?floor(rand()*10000000000000):time()))
The problem is that i c... | 0 | 0 | 0 | 0 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.