# All Questions

3 views

### Using Do and While to make cluster array with two elements

I have assigned an array such: Ma = {{0.01, 1}, {0.09, 2}, {0.11, 1}, {0.19, 2}, {0.21, 1}, {0.29, 2}, {0.31, 1}, {0.39, 2}, {0.41, 1}, {0.49, 2}, {0.51, 1}, {0.59, 2}, {0.61, 1}, {0.69, 2}, ...
11 views

### Algorithm to construct all $0-1$ matrices of given order

I want to write a program. Input: A natural number $n$. Output: All possible 0-1 matrices of order $n$. Can you give me some ideas or algorithm for that? I need such matrices at least up to order ...
12 views

51 views

### Find a Fourier series from discrete data

I am trying to fit a Fourier cosine series to discrete data. I read through this, but I was not able to understand it. This data should be periodic with a period of $0.2 \textrm{m}$ and it is the ...
23 views

### Defined Function fails to Evaluate [on hold]

I apologize if this post is below quality, and please request more detail if necessary. I have been having this issue recently: I define a function as such: f[a_list, b_]:= ..... For a standard ...
25 views

### Calculate dependent probabilities [on hold]

Imagine that two raffles will happen, every raffle will reward 1 person. 10 people will participate. The first raffle will reward 1 person. The second raffle will reward another person, but the ...
38 views

### Compilable function with the functionality of SingularValueList

I'm doing something that involves finding the singular values of a lot of matrices. Basically I need to find singular values of $n$ matrices of dimension $n\times n$, where $n$ is as large as ...
34 views

### Bilateral ZTransform

Is there support for bilateral Z-transform in Mathematica, or a third-party package?
30 views

### Expand the plotting range [on hold]

When use the following command to plot a graph Plot[x^(1/3), {x, -1, 1}] Mathematica does not show the range [0, 1]. It ...
51 views

### How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
29 views

### Minimax for conditioned UnitStep functions

I made a simplified version of my problem, and I have now: ...
37 views

### being a function in a multiple steps and using syntax for being shortened

My desire is to access to a table with the bellow construction: Table[desired[t], {t, 0, 2, 0.1}] For achieve to desired[t] ...
34 views

My code below shows the function I am putting into the kernel to compute mathskernel.Compute("NSolve[" + yaxisin + ", y]"); where ...
72 views

### Wrapping text around pasted graphic

I would like to use Mathematica to create all my documents for my high school math class. I cannot, however, find a way to copy and paste a diagram (let's say from Geogebra) and then place it where I ...
37 views

### Plot does not take range with OptionValue and PlotRange option

I am making a function that is to use Show to overlay a few plots of a function. I want the first Plot in ...
41 views

### How can I pass values to a NamedSlot in TemplateApply

str=";v;v;"; template=StringTemplate@str; TemplateApply[template,CharacterRange["A","Z"]] (*"A;;;D"*) I want to get the result as: ...
59 views

### Why Function is compiled?

Function isn't mentioned in the list of compilable function, but it can generally be compiled when it's formed by compilable functions, a simple example is: ...
44 views

### creation a table from a default module [on hold]

I have used of bisection method for finding the root of a function: ...
31 views

### Stopping NDSolver at time of error

I am using NDSolver and WhenEvent to solve a system of differential equations. I get this message: ...
50 views

### An conditional Sum of elements in Array

Consider we have: list = {{2, 3}, {3, 30}, {3, 2}, {4, 53}} and we want to compare the first elements and sum the second elements if first elements are similar ...
37 views

### Graphs making on Mathematica by using HAM [on hold]

I'm working on HAM, on graphs making i encounter a problem over and over again that on even iteration it gives a graph of different shape and on odd iteration it gives totally different shape of ...
88 views

### Using MapThread over 2 lists different length with criterion on minimal differences

Say I have 2 lists ...
54 views

### Replace values in a list based on conditions

I have a list with negative and positive numbers list = {-1, -2, 1, 2} and I want to replace all negative values with 0 and all positive values with 1 ...
42 views

### First Plot misses the Show [on hold]

g4 = ContourPlot[Sin[x] Cos[y], {x, 0, 2 Pi}, {y, 0, 2 Pi}] g5 = ContourPlot[Cos[x] Sin[y], {x, 0, 2 Pi}, {y, 0, 2 Pi}] Show[{g4, g5}, PlotRange -> All] How to ...
47 views

### Find the tangent at a homogenous point to a curve [on hold]

I'm new to Mathematica. I want to find the tangent at the point $p=(6,5,1)$ to the following curve: ...
482 views

...
63 views

26 views

### ParametricNDSolve of differential equation with singularity

I have a differential equation I would like to solve with the ParametricNDSolve. However, the coefficients in the differential equation are singular at a certain value, so sometimes NDSolve crashes ...
29 views

### How can I import JSON object as a nested association? [duplicate]

Still seems difficult to get an understanding of a JSON object imported using ImportSting[str,"JSON"]. Is there anyway convert it to a dataset perhaps, where queries would be easier than the ...
25 views

### Exporting data in an output file from a Do-loop evaluation [duplicate]

I want to transfer the output of the following evaluation into a two-columned data file where the first column will be values for a and the second column will be ...
58 views

### How do I define a random variable involving Part?

I need to define a random variable that involves Part, but when I try, for example ...
76 views

### solve nonlinear equations with NDSolve

I am trying to solve a set of equations with NDSolve. one of them is mg*yg''[t] == NN[t] - kb*yg[t]^1 - cb*yg'[t], When the power of yg[t] is 1 the equations could ...
42 views

### Multidimensional Interpolation with 3 independent Variables with modfied data set

I have four column data with first 3 column denoting x,y,z and fourth column energy. x variable is actually angle. Now I want to interpolate over all three indepdent variable (x,y.z) with ...
25 views

### Need help with solving inequality under assumptions

I seriously need help for my research. I need to solve an inequality with several assumptions. I tried many times with Reduce but it did not work out properly. Sometimes the results I get are simply ...
77 views

### Significantly different results between Mathematica and Wolfram Alpha with large radicals and small numbers [on hold]

I have some code which involves tiny numbers being put to the power of very large numbers. The function I'm looking at is $\varphi = \omega(T) \left(1 - (1 - \epsilon)^{n_{e}(T)} \right)$ when ...
45 views

### Is Eigensystem::eivin message a bug?

I noticed that in the question Request for clarification of Eigensystem::eivn message the error message Eigensystem::eivn: Incorrect number 2 of eigenvectors for eigenvalue ...
160 views

### How to write an operator that acts on pure function (to give another pure function)

I would like to write an operator oper that acts on a pure function f with an undetermined number of arguments, with the syntax ...
18 views

### CoordinateBoundsArray? [on hold]

I want to use CoordinateBoundsArray but Mathematica does not recognise it. Is it a specific package that I need to explicit include, or is this just due to my ...
108 views

### Cluster numbers into n partitions so that each partitions sum is closest to total/n

For example having data data = {16, 4, 17, 10, 15, 4, 4, 6, 7, 14, 9, 17, 27, 6, 1, 9, 0, 12, 20, 8, 0, 3, 4, 0, 3, 4} I want to cluster them int 4 partitions ...
102 views

### Finding the conditions for degenerate solutions to a cubic equation

I have a cubic equation (corresponding to the band structure of a physical system) given by w in the code below. ...
43 views

### Show a part of the output but be able to work further with the full output [on hold]

Is it possible to display a portion of the output without dropping the hidden data? For example, when I use Shallow, a part of the output is actually dropped.