Mathematica

Mathematica

  • All Sites
  • All Meta Sites

0 answers

How can I plot error bars in Mathematica on a bar graph?

I'm working with Mathematica and I'm trying to plot a bar graph. I can plot just the bar graph, but I can't get the error bars to work. The only one I can manage to get to work is using ...

2 answers

mathematica physical constants without units

It is helpful to use physical constants included in mathematica. Unfortunately they all include units. This provides errors when trying to integrate numerically. Is there a way just to get the value …

0 answers

Sound Recording not working

I have a Dell Inspiron 1525 running Windows Vista. I intend to record a sound input on my PC using Mathematica 9. It's fairly simple with the command: SystemDialogInput["RecordSound"] Afterwards I …

0 answers

Latex vs Mathematica for typesetting?

I'm currently an undergraduate engineering student, and I am confused. I have a fairly decent (basic) knowledge of Latex for typesetting documents. I was wondering if anyone has used Mathematica for …

0 answers

How to set the step of plotting by one of axes in Wolfram Mathematica

I have a data such as list of points x,y,z. I added interpolation by splines as f = Interpolation[{#[[1 ;; 2]], #[[3]]} & /@ data, Method -> "Spline"] And after all I try to plot ...

14 hours ago
1 answer

Mathematica help ~ converting elements in a matrix to string

I have this 10x10 matrix (or Array) in Mathematica whose elements which have the value -1 or +1. I want to change all the -1 to a string " " (here its just the spacebar) and all the +1's to the symbol …

0 answers

issue with Set function

Tables often come with column headers. Indexing the columns with the header is a natural thing to do. Although a proper dictionary is the usual solution in such a case, I find it often practical and …

4 answers

How to create a function directly from the output of Solve

If I evaluate Solve[f[x,y]==0,x], I get a bunch of solutions like: {{x -> something g[y]}, {x -> something else}}, etc. Now I want to convert each of those x->somethings into a function. …

1 answer

How to set the default image resolution for exporting?

I know Export["image.png", image, ImageResolution -> 300]. But it there a way to set the default value for ImageResolution?

0 answers

ButterWorth Filter in JavaScript

I am working in JavaScript. I want apply butterworth filter for a data on online. I did the below code to filter. It Filters the data but Some problem. I need any algorithm to implement butterworth …

0 answers

Uzawa Algorithm with mixed constraints

I have difficulty resolving an exercise about Uzawa algorithm (with basic requirements: J is a quadratic function and a symmetric matrix A) gi =−1+ max(0, 0.625−10(ti −0.4)^2) with ti=ih Then we …

0 answers

Roots and Weights

I use a Mathematica package to compute roots and weights (and other things) but the package gives me only the expression of the roots in $\omega$-basis (basis of fundamental weights) and in the ...

3 answers

Create a graph using Mathematica and Python

I was wondering how I would go about using Python to create a Graph with Mathematica. I want to be able to use python code to invoke mathematica to create a new graph, using data from a CSV file.

Apr 16 at 13:00
1 answer

Why is a big loop within a small loop faster than a small loop within a big one?

This is my Perl code $big=10_000_000; #A:big loop outside my $begin_time = time; foreach my $i (1..$big) { foreach my $p (1..10){ } } my $end_time = time; my ...

Apr 16 at 12:29
1 answer

Wrong result of a recursive relation

I took this code from here on page 15. The code: s[i_] := s[i] = 2*s[i - 1] - 3*(s[i - 1])^2 s[0] = SetAccuracy[3/10, 20] Do[Print[s[i]], {i, 0, 40, 10}] Output: 3/10 0.33333333333333 0.3333333 …

Apr 16 at 12:16
0 answers

a width of interval on each step of iteration

Tell me please , is in Mathematica a standard function which can find a width of interval? I have to find it for each iteration. (*Newton's method*) step[f_, iter_, inter_] := Module[{x = …

3 answers

How do I export a higher resolution image of a Mathematica Graph object?

How do I export a re-sized version of the output I get from a call to GraphPlot (or TreePlot if they produce different output) to a jpg file? Currently, I'm simply calling Export[file_name, G] where …

Apr 15 at 14:32
3 answers

Find min of $\frac{\left( \sum kx_k \right) \left( \sum x^2_k \right)}{\left( \sum x_k \right)^3}$

With $n \ge 2$ and $x_1,\ x_2,\ \dots,\ x_n > 0$. Find the minimum of: $$ M = \frac{(x_1 + 2 x_2 + ...+ nx_n)( x^2_1 + x^2_2 +...+x^2_n)} {\left( x_1 + x_2 +...+ x_n \right)^3}$$ For specific …

0 answers

the Newton's method in the mean of Interval

I have to write the Newton's method in the point which is the mean of Interval. and in 'While' loop it could be while the function(point)>eps. point = Mean[inter]; step[f_,inter_] := ...

1 answer

How does the base of a group determine the “sort” of the elements in the group

I'm trying to study groups in Mathematica, and I've asked a question on Mathematica.SE that perhaps only someone from Math.SE could answer. Related: How does GroupActionBase affect the order of ...

0 answers

Finding normal, tangent, and binomial of a Bezier function in Mathematica

I'm currently trying to find the normal, tangent, and binomial across an iso-surface. Here is the code I have to find them: graphT[curve_, t_] := ( varbez = BezierFunction[curve]; temp = varbez'; …

Apr 14 at 23:28
0 answers

procedure with iterations of the first step Newton's method IN POINT

I have to write the procedure with iterations of the first step Newton's method in Moore's form in Mathematica8, exactly on this example: GIVEN: f[x_]:=x*x-8*x+7; inter={5, 9}; eps = 10^(-6); TO ...

1 answer

What are the labels for minor ticks in a log scale graph?

What are the labels for the minor ticks in a log scale graph? I would like to label them. So, I want to know how to calculate the value for each of the minor tick.

Apr 14 at 15:00
3 answers

mathematica FullSimplify cowardly refusing fully evaluate real parts of a complex number?

I'm wondering if there is a different command than FullSimplify to tell mathematica to do the computation requested. Here's three variations of a simplification attempt FullSimplify[Re[ …

Apr 14 at 14:43
1 answer

Mathematica quits calculation automatically

I have this little program that is adopted from a Wolfram demonstrations project (link here: http://demonstrations.wolfram.com/PercolationOnASquareGrid/). I want to see what happen if I increase the …

Apr 12 at 18:51
1 answer

Mathematica logo in LaTeX?

Is there any command for inserting the Mathematica logo, in the same way Matlab's can be inserted with \Matlab?

Apr 12 at 15:31
1 answer

Save Plot Options of Mathematica into a single variable

How can I save the numerous Plot options in Mathematica into a single variable

Apr 11 at 12:31
1 answer

Converting octave matrix function in Mathematica

I'm trying to solve a problem: I need to translate an octave code in mathematica but I'm struggling with those lines. function g = NeumannBoundCond(f) [nrow,ncol] = size(f); g = f; g([1 nrow],[1 ...

1 answer

Plot 3D boolean array in Mathematica

I have been attempting several methods to plot a 3D diagram of n by n boolean array in Mathematica but none of them produced satisfactory result. I want the 3D plot to have a cube when M[i,j,k]=1 and …

1 answer

procedure with iterations of the first step Newton's method in Moore's form

I have to write the procedure with iterations of the first step Newton's method in Moore's form in Mathematica8, exactly on this example: GIVEN: f[x_]:=x*x-8*x+7; inter={5, 9}; eps = 10^(-6); …

15 30 50 per page
1 2 3