# All Questions

36 views

17 views

### CCompile Problems

Operating System: Windows 8.1 Mathematica: 8 In possession of: Visual Studio 2013 and 2015 Had to alter the visual studios driver file within CCompilerDriver application, add-on so that it found the ...
101 views

### How to sort colors properly?

I can't seem to be able to sort colors by their hue and perceptual brightness correctly. Here's my current solution but it's not right, there are all these dark bands: ...
18 views

### Aligning Density an Contour Graphics

(In radiation therapy, we display radiation dose as an isodose contour plot overlain on density plot describing the patient geometry (CT data).) In Mathematica, i would like to show a ...
14 views

### If statement for evaluating small values

I have a simple calculation which I am trying to use if condition to evaluate summation of some values, here it's a psudo-code; ...
30 views

### How can I solve an integral equation with two unknowns?

How can I plot g versus y? I do not understand how to solve it. ...
68 views

### How I can count multiplications in an experssion?

Next task to complete: Count *-symbol in such expression as a + s^2*b - c/y + o^3 + n*m*u (in this case count of ...
12 views

### Non-autonomous Dynamical system Sliding mode controller Error

This code is a simulation of a sliding mode controller of a non-autonomous dynamic. When I use ArcTan in input, I receive an error. ...
26 views

30 views

### Please explain this unexpected code snippet behavior [duplicate]

Consider a function that maps a complex function z->f(z) to it's multivariable counterpart (x,y)->f(x,y) ...
24 views

...
48 views

### Solution to heat equation with Neumann boundary conditions and lateral heat loss

I am conducting an experiment on heat conduction in a copper rod. To do so I am using a thin copper rod with several temperature probes, then I am going to compare the data with a solution to the heat ...
55 views

### gaussian integration

I'm new on Mathematica and I am an engeneer with only a little base of numerical computation. I have to integrate a trigonometrical function numerically with a Gauss integration. The function is: ...
32 views

### KroneckerProduct of the lowest eigenvector [on hold]

tmatrix, is a random matrix constructed with this command: tmatrix = RandomReal[{-1, 1}, {4, 4}] Its lowest eigenvalues can created by ...
47 views

### Better way to binarize an image [on hold]

I have an image that I want to binarize. When I try to do it in Mathematica, the results is My code is ...
37 views

### Using Do and While to make cluster array with two elements [on hold]

I have assigned an array such: ...
25 views

112 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 ...
27 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 ...
28 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 ...
44 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 ...
49 views

### Bilateral ZTransform

Is there support for bilateral Z-transform in Mathematica, or a third-party package?
34 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 ...
67 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 ...
46 views

### Minimax for conditioned UnitStep functions

I made a simplified version of my problem, and I have now: ...
40 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] ...
37 views

### Mathlink returning wrong output [on hold]

My code below shows the function I am putting into the kernel to compute mathskernel.Compute("NSolve[" + yaxisin + ", y]"); where ...
83 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 ...
42 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 ...
44 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: ...
61 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: ...
53 views

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

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

### Stopping NDSolver at time of error

I am using NDSolver and WhenEvent to solve a system of differential equations. I get this message: ...
56 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 ...
97 views

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

Say I have 2 lists ...
63 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 ...
53 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: ...
612 views

...
76 views

### Matrix multiplication for higher dimensional matrices [duplicate]

I have a matrix like this (myb1): I would like to get the matrix multiplication of each of the submatrix to itself. For example the first 2x2 matrix \$\begin{bmatrix}1 & 2\\1 & ...
17 views

### Time Series into List of Pairs? [on hold]

Mathematica's new update includes this handy dandy TimeSeries thing in which all Weather Data is automatically generated as. However, I need to manipulate this data in list form- How would i go about ...
49 views

### How to test for a non--zero rational function? [duplicate]

I want to test if a rational function in one variable is identically zero. I was surprised that just writing f==0 doesn't do it. I wrote the following code: ...
221 views

### Faster binary Hamming weight for big integers?

While working on an answer to Count the sequences in an array I found that DigitCount was the bottleneck in my code when used as ...