Description:
Mathematica discussion group. (Moderated)
|
|
|
Histogram ignores 'bspec' (bin spec) ??
|
| |
I would like to plot a histogram with a fixed number of bars, e.g. ten bars.
Consider this code:
SeedRandom [ 1 ] ;
foo = RandomVariate [ NormalDistribution [ 0, 1], 1000 ] ;
baz = Table [ Histogram [ foo, k ], { k, 8, 15 } ] ;
1 == Length [ DeleteDuplicates [ baz ] ]
The last line prints 'True', confirmed by visual inspection of baz which... more »
|
|
Sum of Products
|
| |
...
Hi. Just out of educational curiosity..
This appears to be a closed form if your data is a range of integers:
fx[a_Integer?Positive,b_Intege r?Positive]/;a<b := 1/24 (b-a) (b+1-a) (3 a^2+6 a b+a+(3 b-1) b-2)
// Your equation took 13.3 seconds
Total[Times@@@Subsets[Range[12 34,6789],{2}]] //Timing... more »
|
|
Conditionals for lookup table
|
| |
I have a long list of conditions to program. I'd like guidance as to the
best or fastest way of doing this in Mathematica.
First I generate which initial conditions apply. Then I want to go to the
lookup table to see which action to take. Then I generate another set of
conditions and I want to lookup which action to take. and so on.... more »
|
|
Nesting NMaximize
|
| |
Hello, I would like to maximize a function, adding the constraint that a
different function is also big enough. To make it clear, what I would
want to ask Mathematica to do is the following:
NMaximize[{F(a,b,c),F2(a,b,c)> =NMaximize[F2(a,d,e),{d,e}]},{ a,b,c}]
I had expected (hoped) that Mathematica would substitute the value of... more »
|
|
some Experience with webMathematica
|
| |
Hi all,
I am playing around with webMathematica. It's a nice package to integrate the power of Mathematica into a dynamic web-Site.
Even if standard mathematica constructs can be embedded
into the side with special tags, often the constructs must
be rewritten because the wrapper engine runs into trouble by... more »
|
|
Sum of Products - Complete The Square
|
| |
...
...
1. This is not quite right:
3 x^2 + y^2 + 6 x y;
Total@SymmetricReduction[%, {x, y}]
-2 y^2 + 3 (x + y)^2
2. I don't see why this a "generalisation of complete the square". In fact, there is no well defined notion of completing the square for arbitrary quadratic expressions in two variables, e.g. this is another... more »
|
|
How to add axis labels in bubblechart?
|
| |
Hi,
I'm wondering how to add labels to axes in bubblechart. This does not
work
BubbleChart[data,AxesLabel->{" x","y"}]
Thanks
It is since you have the frame in the Bubblechart, rather than axes. Try this:
BubbleChart[data, FrameLabel->{"x","y"}]
Have fun, Alexei
Alexei BOULBITCH, Dr., habil.... more »
|
|
Announcing JavaTools 2.0
|
| |
JavaTools 2.0 is now shipping. [link]
JavaTools provides several Mathematica functions that harness powerful
Java features (and C# and F# on .Net 4 and mono platforms) and solve
Mathematica shortcomings, including:
- Compilation of Java and .Net methods provided as a Mathematica string... more »
|
|
Flattening a hypermatrix into an ordinary matrix
|
| |
I have an n x n hypermatrix, the entries of which are m x m blocks.
For example A below (m=3, n=2):
A11={{B11,B12,B13},{B21,B22,B2 3},{B31,B32,B33}};
A12={{C11,C12,C13},{C21,C22,C2 3},{C31,C32,C33}};
A21={{D11,D12,D13},{D21,D22,D2 3},{D31,D32,D33}};
A22={{E11,E12,E13},{E21,E22,E2 3},{E31,E32,E33}};... more »
|
|
|