0
votes
0answers
5 views

Solving a consistent overdetermined linear system

Not a duplicate question. I already tried all the Answers offered for this Question and they failed, so I believe this is a different problem with Solve[]. I have a solveable, consistent system of ...
3
votes
1answer
12 views

Mathematica 10.0.1 freezes in Initializing kernels (Windows 10)

I updated to Windows 10 and have been running Mathematica fine on it for over a month. For some reason, it just stopped working. I don't remember any Windows updates occurring which would have ...
0
votes
1answer
10 views

Creating a Table with a list of If statements given in a certain order

I am trying to create a conditional Table with If statements, where I move to the next condition only if the first one is satisfied, otherwise I "Break[]" and move to the next element of the table. ...
0
votes
2answers
16 views

How would one set up a conditional to evaluate at the last output value (wondrous numbers)

I know this is pretty fundamental, but I'm trying to learn Mathematica on my own and this is stumping me. I know 5 is wondrous and it takes 5 steps to reach one, but I can't figure out the input to ...
0
votes
1answer
22 views

How to center a graphic in its output cell

Say I have produced a single graphic ouput, perhaps a plot. Instead of displaying left-aligned in the notebook, I would like it to display in the center of the output cell. I would like it to stay ...
2
votes
1answer
58 views

I change a single constant and the simple script suddenly takes forever to complete

I writed a code to display the Dragon Curve fractal, and I reached my goal. The algorithm works by taking the previous two points and then adding the following one by making a 90 degrees turn left or ...
0
votes
0answers
8 views

How to solve PDE in 2D region with mixed boundary condition?

I'm trying to solve the inhomogeneous wave equation with mixed boundary conditions. How do I input these conditions? Is is still with NDSolve?
1
vote
0answers
22 views

Can I model the general political landscape with mathematica?

I want to develop a website which would model a province of 2 million people from a political point of view. Is mathematica a good fit for such a project? My background is that I'm an experienced ...
1
vote
0answers
16 views

Calculate the mean of ordered distribution of the defined distribution

15I am trying to evaluate the mean of the following: Let $a\sim Binom(10,1/2)$, consider the random variable $$d=\left|\frac{2}{\sqrt{10}}a-\sqrt{10}\right|$$ Let $d_1,\dots,d_{20}$ be i.i.d copies of ...
0
votes
1answer
29 views

Convert `FullForm` to XML Structure and back

How might I create a function that converts between FullForm and a XML structuce? Ultimately I'm ideally looking to use CSS and JS to edited the XML structure. ...
0
votes
1answer
32 views

Writing a function with two functions as arguments

I am trying to write a function of two functions. A function of one function works as in h[f___, x_, y_] := Integrate[f, x] h[x^2 + y, x, y] and this ...
0
votes
0answers
56 views

Why can't Mathematica simplify this expression involving conjugate of complex expression?

In theory it should recognise that all terms are real, and drop the Conjugate attribute. Any clues why this might be so?
-2
votes
1answer
44 views

solve Z of matrix

x=Cz+(lambda)z x and z are n*1 column vectors C is n*n matrix (lambda) is a scalar it want to solve for z. the hint is z=Iz where I is n*n also C+(lambda) is an invalid expression, but C+(lambda)I ...
0
votes
0answers
33 views

string manipulate with “\”

I'm trying to code that makes download files from some pages. What I am using built-in function is Import, and stringreplace. I found that when I import url there is blank and I need to replace them ...
-1
votes
1answer
38 views

When NSolve for X, Y, only output solution for X

I have an NSolve with two equations and two unknowns (X,Y). There is a unique solution. NSolve currently gives me the solution pair (X,Y). But I only want to read out one of the variables (say X). ...
1
vote
0answers
43 views

Mathematica hangs on “Initializing kernels…“ at startup [duplicate]

My Mathematica 10.0 doesn’t start anymore (hangs while “Initializing kernels…“). I already reduced the problem to the file pacletSiteData_10.pmd2 in ...
1
vote
1answer
34 views

Map inside LogLinearPlot with legends and different colors

I have been trying to use Plot with a nested map to make plots of a numerically integrated function with different argument parameters, and after some searching I have finally got that sorted. My MWE ...
2
votes
0answers
59 views

What part of the kernel is open sourced?

Where exactly is the "large swath of the code base" that Stephen Wolfram said was open sourced?
2
votes
1answer
36 views

Interactive ListPlot by mouse clicking

Say I have a list of 2-tuples that is visualized by ListPlot. Each 2-tuple is also associated with another graph. Now what I want to realize is to display the ...
0
votes
0answers
28 views

NewLine Inconsistency

Copy and paste the following two lines into Mathematica. 1 \[Alpha] \[NewLine] 2 f[ 1 \[Alpha] \[NewLine] 2] The first posts ...
0
votes
0answers
44 views

Plotting PV isotherms followig the Redlich Kwong equation of state

I am attempting to plot the $PV$ isotherms for 1 mole of neon from 4-1000K assuming the equations of state Redlich Kwong. I do get a graph but it looks more like the graph for ideal gas instead of ...
2
votes
1answer
39 views

Using ouput of ParametericNDSolve as argument in NMinimize: NMinimize::nnum: function value not a number

I am trying to fit some experimental data and I am trying to use NMinimize function to calculate the parameters that fit the experimental dataset. I am also using ...
0
votes
2answers
77 views

After NumberForm I cannot apply a Sine function. Why?

After NumberForm I cannot apply a Sine function. Why? This works: sol1 = x /. Solve[x^2 - 3 == 0, x] Sin[sol1] Output = $\{-Sin[\sqrt{3}],Sin[\sqrt{3}]\}$ Also ...
0
votes
1answer
33 views

highlight certain rows in various table format

I have tried a method to highlight certain rows in various tableform. An example: ...
2
votes
4answers
178 views

Make spheres same size in Row

I have different 3D graphics containing spheres, for example pic1=Sphere[{0,0,0},1]; pic2={Sphere[{-1, 0, 0}, 1], Sphere[{1, 0, 0}, 1]}; I would like to show ...
10
votes
1answer
61 views

Fast way to pass an array of integers to Java using JLink

I am using a package from java to compress a list of integers, this package provide me two methods, one for compress and other one for uncompress. Each of these methods has a version to ...
1
vote
3answers
146 views

Solve simple trig equation

I would like to solve this equation: $$-x\sin(x)=\cos(x)$$ But Solve in Mathematica doesn't work: This system cannot be solved with the methods available to ...
2
votes
2answers
87 views

How do I exclude regions from numeric integration on Mathematica?

The part of the equation that is giving me trouble is below: f[t_,v_]:= Exp[-(1/Log[1-t/v]^2)]*(v-t) I need to integrate this function over the ranges .1 ...
1
vote
0answers
81 views

Entropy of lists and sublists

If we examine the following Entropy outputs below, it can be seen that the Entropy of ...
2
votes
1answer
51 views

Plotting a partial sum

I am given the Legendre expansion of the first kind. $$f(x)=\sum_{n=0}^{\infty}A_{n}P_{n}(x).$$ I have worked the coefficient to be $$A_{n}=\frac{1}{\left \| P_{n}(x) \right \|^{2}} ...
1
vote
0answers
44 views

Randomly generate a list of arbitrary length from a finite set [on hold]

I have a finite set of elements (5 to be exact). Suppose the first element has probability $\frac{1}{2}$ of being selected, while each of the others has probability $\frac{1}{8}$ of being selected. ...
1
vote
2answers
35 views

How to make all cells be displayed in TraditionalForm

I'm writting a test on mathematica, where most of the text is in Text style. I want that all cells be displayed as if I had gone to Cell>Convert to>TraditionalForm Display without having to do this ...
4
votes
1answer
95 views

Why is Reap result nested?

A minimal (toy) example for my question: i= 1; Reap[Do[Sow[i = (i + 1)^2], {4}]] (* {Null, {{4, 25, 676, 458329}}} *) I presume the entire result is a ...
3
votes
2answers
57 views

Find six vectors with rational entries under constraints?

Define six vectors v[i] with i=1,2,3...,6. Each v[i] is six dimensional and all entries in ...
3
votes
0answers
40 views

Manipulate: strange behavior of Manipulator

Bug introduced in 10.2 and persisting through 10.2 or later Consider this simple code: Manipulate[n, {n, 1, 5}] When we evaluate it, we'll get Now try to ...
2
votes
0answers
42 views

notebook scrolling problem in 10.2: worse than ever? how to fix?

I use Mma notebooks to present in the classroom, so for me this is a serious problem. Before starting a class, I close all the sections, subsections, and subsubsections. During a lecture, I open ...
2
votes
0answers
32 views

Algorithm to determine if two colored graphs are isomorphic? [duplicate]

I have two (vertex-)colored graphs. I want to determine if they are isomorphic, with the condition that the isomorphism respects the colors of the vertices. Moreover, I want the algorithm to output ...
0
votes
0answers
26 views

Proof bu induction? [on hold]

I've been stumped on this for a while, and even had a EE PhD take a look with no joy. show that for any n >= 2, the following formula is valid: 1^2 - 2^2 + 3^2 - ... + (-1)^(n-1)n^2 = ...
2
votes
0answers
35 views

ListPlot3D: generating mesh lines at hard-coded locations

I am plotting a surface specified with a set of {x,y,z} coordinates with ListPlot3D. This data set surface does not extend ...
0
votes
1answer
77 views

Solve a function to find the optimum value of parameter in mathematica [duplicate]

I have a complicated function as shown It doesn't have a standard integration as far as I know. Now, numerical integration of the left hand side function over a set of points gives the right hand ...
2
votes
0answers
43 views

Unix 2 way communication while running M on Windows

Mathematica for Linux I've found to be to filled with bugs, so I'm looking to workaround the issue by running a Linux virtualmachine inside of a Windows host. It is possible to create a two way ...
10
votes
1answer
58 views

How to share a notebook?

I have a folder in dropbox syncing to my desktop. I tried sharing a notebook file this way, but this generates lots of errors, conflicts, and data loss: I have notebooks with Dynamic and other ...
-1
votes
0answers
31 views

When f(x,y) can be expressed as g(x)h(y) [on hold]

Under what conditions can f(x,y) be expressed as g(x)h(y) ? What can be the proof of this ?
1
vote
1answer
42 views

Propagation of error for not-analytical calculable inverse function

I have the function: gcsymb[Lpd_,a_,c_]:=1 /finv[1./Lpd^2,a,c]/Lpd with the definiton of finv: ...
4
votes
0answers
39 views

Expanding PolyGamma function error

For large half-integer arguments of PolyGamma[] function the FunctionExpand[] or ...
3
votes
4answers
381 views

Minimal overlap area of circles

I have 20 points in the 2D plane with $(x_i,y_i)$ coordinates. I want to use Mathematica to optimally distribute 10 circles with equal radius of a given positive value $R$, i.e. to determine with the ...
1
vote
0answers
45 views

Legendre expansion of functions [on hold]

I am given the expansion for the Legendre function of the first kind. It is just $$f(x)=\sum_{n=0}^{\infty}A_{n}P_{n}(x).$$ I have found the expression for the coefficient $A_{n}$. However I would ...
3
votes
1answer
78 views

Calculate sum of probabilities in multinomial model

The question at hand: On average in every 7th chocoloate egg there is a figure to be drawn from a known list of special figures (e.g 15 distinct pieces) the other draws are on average fails. With ...
0
votes
1answer
48 views

Global variables [on hold]

I have a workbook I am writing, there are 2 cells in it and then each cell is divided into sub cells. At the top of the first cell i made a bunch of variable assignments such as length=10, x=6, d=4, ...
0
votes
0answers
53 views

How does KalmanEstimator update the Kalman gain, process noise and state variable mean?

The first "Application" in the documentation for KalmanEstimator is copied below with additional variables for clarity. ...

15 30 50 per page