It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
IF
7 - 3 = 124
6 + 3 = 279
5 - 2 = 63
11 + 2 = 2613
Then,
15 - 3 =?
15 - 3 = You're not getting the job by doing this.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How can I write a function odd-list that works as follows, using the racket language?
(odd-list '((1 2 3 4) (5 6 7 8) (10 11 12 13))) => ((1 3) (5 7) (11 13))
(require srfi/26)
(define (odd-list lists)
(map (cut filter odd? <>) lists))
Enjoy. :-)
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Objective C, how to get M_PI (PI) value to 8 places (i.e. 3.14159265)?
double result = M_PI; // result value will be 3.14159
result need to be 3.14159265, why it does return few factions?
NOTE: When I'm assigning 3.14159265 to double result it loses last 3 factions I need to get those back and pass the result valuable.
Wasn't so hard
double result = 3.14159265;
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I realise that I can do this via a loop, but was wondering if there was some simpler way to do it.
Just subtract them?
>> foo = round(20*rand(6,2)) # generate a random matrix with 2 columns
foo =
13 9
6 18
0 11
13 14
17 4
10 3
>> foo(:,1) - foo(:,2) # first column minus second column
ans =
4
-12
-11
-1
13
7
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have an iPhone application in which I need to give users a new randomly-generated id. How can I generate a random number in the range 1 to 1000?
Use this :
int randomXAxis =(arc4random() % 1000 ) + 1;
You can use the following code to find random value in iPhone application.
int randomValue = (random() % 1000);
NSLog(#"Random Value: %d",randomValue);
In general you can find the random numbers for integer only. If you need any more help then let me know.
type this in your terminal:
man arc4random_uniform
You can use
int rndNumber= (arc4random()%1000)+1; //Generates Number from 1 to 1000.
If you want all value once then write above line in For loop
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can we prove a number if it is really a multiple or divisible by an integer, WITHOUT using mod() and -rem() in MATLAB?
Use ROUND:
% To determine if i0 is a multiple of i1:
is_multiple = ( i1 * round(double(i0)/i1) == i0 );
use factor, if the result is just 1 and the original number, then it's a prime.
Or simply use isprime