0
votes
0answers
2 views

Make a table OF matrices

I have a number of matrices that are outputted and it would be very useful to be able to compare them in a table. Firstly, this is the first part of the code needed ...
0
votes
0answers
12 views

What would be the mathematica equivalent of “sparse” in Matlab?

The "sparse" function in Matlab does the following: S = sparse(i,j,v) generates a sparse matrix S from the triplets i, j, and v such that S(i(k),j(k)) = v(k). The max(i)-by-max(j) output matrix ...
0
votes
0answers
8 views

A simple question on recuperation of a result

It's perhaps an already ask question and perhpas it is stupid, but I do not know how to search for it. If sol = Solve[a x^2 + b x + c == 0, x] when calling ...
-2
votes
1answer
11 views

Animate Spring Pendelum

i need help to solve this exercise. Visualize the oscillation of a spring pendulum . Write to a function ( modules ) "spring mass" [ eg , nzigzag ] , which visualizes the spring ( Line ) and the ...
1
vote
1answer
20 views

Differential equation: NDSolve::berr

I'm trying to solve the following differential equation. I'm able to obtain a solution, and that solution looks more or less as how the theory predict it should be. ...
0
votes
2answers
15 views

Logarithmic scale in an ParametricPlot obtained from ODE boundary conditions

How do I plot an ParametricPlot with the x-axis using an logarithmic scale? Since I need to use an ParametricPlot, I can not use the LogLinPlot[] and I also was not able to find any viable Solution in ...
-2
votes
0answers
33 views

Can I use function to generate List from another?

Suppose we got a 3 dimensional List M(x,y,z),xyz indicates the dimension number. Can I get a new List use just function like NewList=M(x,y,z+1)/M(x,y-1,z)? M here would like {{{a[1, 1, 1], a[1, 1, ...
-1
votes
0answers
38 views

How can I write the coding in mathematica based on time?

Hi, I need some help for my problems. May anyone help me in coding I want to make For loop based on time for this matrix. I want to change to look the changes of alpha3 when increasing of time with ...
1
vote
0answers
17 views

How do I prevent Root and RootSum from expanding over quadratic roots?

For quadratics, RootSum[a #^2 + b # + c &, Cos[#] &] Immediately turns into and also, ...
0
votes
0answers
27 views

How to replace Real part o f a complex number

I want to replace the real part of a list of complex numbers by zero. I try these two solutions but it does not works ...
1
vote
1answer
45 views

Image Filtering in the frequency domain

Here is a good starting to fiter image in the frequency domain lena = ColorSeparate[ImageResize[ExampleData[{"TestImage", "Lena"}],{121,121}]][[1]]; (Create a ...
0
votes
1answer
31 views

Contour plot with a condition

I have a simple contour plot and wanted to find solutions only when both x and y are integers. The following code doesn't seem to work. ...
0
votes
0answers
15 views

Get asymptotic expression of Legendre function

How to get this asymptotic expression of the first element of the list by Mathematica with small x and very large n? ...
0
votes
0answers
17 views

Time series decomposition using wavelet transform

I have a monthly time series data. I want to perform a non-decimated discrete wavelet transform to decompose the time series into its different time scale components (level 6). Is there a way of doing ...
0
votes
0answers
15 views

build absolute value equations know solution [migrated]

We have absolute value equations with unknown coefficients: |x + a| = b and we know solutions: x = 11 and x = 5 We need ...
0
votes
0answers
24 views

A function that takes in an array and returns an array (or lists)

So I have function f[x_] := c.x - Total[Log[b - A.x]] where the variables have dimension c is 1x100, b is 500x1, A is 500x100, and x is 100x1. My goal is to get the ...
-1
votes
0answers
21 views

Graph coloring - edges - algorithm tweak

I was kind of heedless and read wrong assignment task. I wrote an algorithm that finds the minimum numbers of colors in graph for vertices. And when I finished it, not i read the assignment task ...
2
votes
2answers
17 views

Preventing LocatorPane Locator from moving when PlotRange changes

I have a LocatorPane within a Manipulate such that the range of the plot behind the Locator ...
0
votes
0answers
21 views

Getting Random Integers from the set {-1,1} quickly [on hold]

I was wondering if in Mathematica there is a quick way to get a random integer from the set {-1,1} with equal probability (i.e. getting -1 or 1 with equal probability). Usually I deal with Normal ...
3
votes
1answer
29 views

How to Operate on a Dynamic Dataset?

I cannot operate on the Dataset I am dynamically filtering. Minimal example follows. ...
0
votes
1answer
26 views

Struggling to Apply “Differences” [duplicate]

It looks like the following code should work, and allow it spits out error messages saying I have too many arguments, the code spit out after the error message looks like exactly what I want to ...
4
votes
1answer
39 views

Changing style of label boxes in TimelinePlot

When I export the below TimelinePlot to an .eps figure (to include in a document), the boundaries of the rounded boxes surrounding the label text do not appear. ...
0
votes
2answers
40 views

Issue while trying to compute the integral for the coefficients of a triangular wave

I was trying to compute these integrals in order to check if I was correct: or in code ...
2
votes
0answers
56 views

A unexpected behaviour of RelationGraph

$Version "10.4.1 for Microsoft Windows (64-bit) (April 11, 2016)" I want to match the based point of VoronoiMesh(...
-4
votes
2answers
56 views

Develop a loop with two counters

Description: I am trying to develop a function that would take two arguments n and m and would run another function multiple ...
2
votes
1answer
59 views

GridLines for a coordinate system with a particular basis

Suppose that I use the vectors (2,1) and (-1,1) as a basis for $R^2$. ...
1
vote
1answer
50 views

Differential equation involving history integral

I have not found a solution by using google so I hope I can ask this here. I have an issue with a problem I am trying to solve and I was wondering whether what I am doing is not possible with ...
2
votes
2answers
111 views

Direct way of listplotting each 2 or 3 points?

I have a list of points myList={{x_1,y_1},{x_2,y_2},...,{x_n,y_n}} I want to plot not all the points of this list but to plot every $k$ points. For example, if I ...
1
vote
0answers
53 views

What does Mod^(1,0) mean in mathematica output [on hold]

I am trying to take he derivative of mod(remainder). In:= D[Mod[x, y], x] Out = Mod^(1,0)[x,y] I cannot understand the meaning of Mod^(1,0). What does the ...
0
votes
1answer
30 views

MathLink to C++ member function

The task is to compile, link and install in Mathematica (9.0, Linux 64 bit) some functions defined in C++. These functions are defined within classes. I have access to the header which forward define ...
2
votes
1answer
58 views

Superpositions of colored gratings

I created fork grating on mathematica and it is gray tone image, I need to conver it into Black and Blue image instead. And I use the Image code to do that but it didn't work! is there another way to ...
1
vote
1answer
57 views

What are rules in Mathematica and what are its uses? [on hold]

I'm new to Mathematica. I have been going through the official reference and came across this article on rules to which I was led by a Google search on how to ...
1
vote
0answers
51 views

Image-Processing/IntensityCentroid

To get the center of mass of a grey scale picture I would like to use ComponentMeasurements with IntensityCentroid. However the ...
1
vote
0answers
45 views

Round off in Mathematica Built-in functions

Is there a way to avoid Mathematica to replace Built-in functions to other functions? For instance, the Hypergeometric1F1[a,b,x] function has a exponential form when its firsts parameters are ...
0
votes
0answers
34 views

Rotation of basis system

I have a 16x16 matrix HCF hamiltonian with symbolic entries depending on 8 parameters Bxx. Now I add anoter hamiltonian which is a zeeman hamiltonian HZ with a symbolic angle [\theta] entry .But if i ...
5
votes
1answer
64 views

Arrowheads not falling in line

This is not a serious problem, but sometimes quite annoying. Say you are drawing a line with multiple Arrowheads. ...
0
votes
1answer
47 views

Weird Mathematica Crash

One hour ago, my Mathematica 10.4 StudentEdition, completely crashed, stopped to respond, after I typed 2 letters. For example I wanted to type the command ...
0
votes
1answer
36 views

The point movement on the torus knot

I would like to ask about the point movement on the torus knot. ...
5
votes
0answers
48 views

What does the symbol Continuation do?

There is a symbol Continuation (residing in the System` context). There is no usage or documentation for this symbol. ...
0
votes
2answers
78 views

Integral over real valued function becomes complex

I've tried to solve the following integral, but I get a complex solution even tough it should only have a real part. $$f(x)=- \frac{10^{-20} x}{0.99005- e^{10^{-12}x}}$$ Now I want to calculate the ...
2
votes
1answer
33 views

Finding an Integer, Unimodular Matrix that connects two given matrices

I have two symmetric, integer matrices, $K$ and $K_2$ which have the same determinant and the same signature (number of positive - number of negative eigenvalues). I want to find an integer valued ...
-1
votes
1answer
34 views

Reduce array to specific amount of averages

The main issue which needs to be solved is: Let's say I have an array with 8 numbers, e.g. [2,4,8,3,5,4,9,2] and I use them as values for my x axis in an coordinate system to draw a line. But I can ...
0
votes
0answers
47 views

Modern hardware for symbolic computation [duplicate]

I am going to use it for huge symbolic computations (like Groebner Bases, Hermite Normal Forms, Differential Algebra) in Maple/Mathematica. Could you help me to choose good modern hardware?
0
votes
2answers
78 views

How to define nested recursive sequence? [duplicate]

I have Conway's Challenge sequence at hand i.e. $a_n=a_{a_{n-1}}+a_{n-a_{n-1}}$ for $\ n \geq 3$ and $a_1=a_2=1$. I have basically no idea how to define this in Mathematica.
0
votes
1answer
53 views

Why this function can't be plot [on hold]

Situation I have define a function in Mathematica like this: phi[t_] := Subscript[\[Phi], m] Cos[(2 \[Pi])/T t] Then I specify some parameters in this function ...
6
votes
0answers
39 views

Evaluation leak from Dynamic in Button's action

a = 1; Button["Print", a++] Button["Print", Dynamic[a++]] Button["Print", Dynamic[a++];] Button["Print", {Dynamic[a++]}] Dynamic @ a The second ...
0
votes
0answers
15 views

2 functions in a package for CDF, 1 is OK 2nd is not working

I am developing a CDF application to teach me how to create CDF files. In this application I am taking numeric and symbolic integral of a function. I create package with two functions; 1-taking the ...
0
votes
1answer
26 views

Forcing evaluation of LinearSolve [on hold]

I have a linear solve function: ls = LinearSolve[MatrixForm[Transpose[basisNScoeffs]]]; Which I then use to generate a table of solutions: ...
2
votes
1answer
113 views

How do i plot a conical spiral on top of a cone?

So i need plot a spiral from the top of a cone, can someone help me with my code i have made a similar thing for a cylinder, but there radius wasnt change and in this case i cant figure out how to ...
0
votes
0answers
28 views

Analogue maple's Digits Environment Variable [duplicate]

I want setup (in Mathematica) once and for all operations number of digits after decimal point, similar how it's done in maxima: ...

15 30 50 per page