I want to drop a rocket-shaped object from a near-space balloon, with the aim of maintaining a downward acceleration that leaves it's contents in microgravity.
I think that this means:
The (unpowered) rocket needs to maintain as close to 9.8m/s2 acceleration in order to balance out the...
Hi Mathman,
As an example:
A = [1, 2, 3, 4]
gives:
1,1
1,2
1,3
1,4
2,1
2,2
2,3
2,4
3,1
3,2
3,3
3,4
4,1
4,2
4,3
4,4
I've just noticed that I meant to say Cartesian product, sorry!
Hi all,
I'm trying to work out how I can get the set at specific index in a cross product without creating the whole product.
For instance:
I have array A of length 512
I also have a number that specifies how many times that array needs to be 'cross-producted' against itself.
This gives me...
Hi all,
First, I hope this is in the right place, apologies if it isn't.
I'm looking into the possibility of deriving sound from the simulated actions of simple bodies in a 3D space.
As a toy example of my aim, I hope to be able to compute the sound that would be generated by a metal...
Hmmm... I seem to be having a few issues coding this up.
I converted the following into code:
And the first two work fine, 1 and 2 character length strings are picked up, but 3+ lengths aren't, strangely.
for (int k = 3; k <= depthCount; k++)
{...
Micromass,
You sir, are a gentleman and a scholar.
When I wake up in the morning (it's 2 a.m. here) I'll have a serious word with this and see if I can code it up.
I owe you a great debt, thank you so much!
I hope I can repay you someday :)
SophieP
Hello Micromass!
This is exactly what I'm after.
I did suspect that it wasn't the Cartesian Product, but I took a stab anyway.
As for ordering the set, I'm ordering it based on the order of the source set, which is usually an array of about 100 characters.
So given the toy source set of {a...
Hello all,
I'm new, so please go easy on me if this is a silly question.
If I have a source set of characters, say:
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ "
And I compute the Cartesian product of this source set (sort of).
This gives...