# All Questions

2 views

### What kind of algorithm can be used to map image coordinates to cylinder coordinates

I plan to flatten an images on curved surface(eg: jar or door knob) and I found a pretty good post which helps me a lot :)(link below). However, I still confuse on how to map image coordinate to ...
7 views

### Taylor series/expansion

I want to make a second-order Taylor series expansion around point (x,y) = (1, Pi) of the function f(x,y)=x^2*Sin(xy/2) Plot inclusive
8 views

I have: ...
11 views

### Why should we make sure the calculated MD5 is of length 32?

I see when people write code on calculating MD5, (even in the documentation), they write like this: IntegerString[Hash[something, "MD5"], 16, 32] But I think ...
36 views

### How to write absolute value and square root in one equation?(runge kutta)

I got some problem when I run my program. It hangs when I run it. This is my coding for runge kutta Geometric mean(RKGM). ...
47 views

### How does Mathematica calculate its AdjacencyMatrix[ ] and VertexDegree[ ]

I define a graph: ...
23 views

### Generating vectors with restrictions on a lattice

Suppose we are given a certain adjacency matrix that contains the information for a given lattice. I want to generate a configuration of vectors that satisfy a restriction. Specifically, if I have ...
50 views

### Function works only after printing variables inside [on hold]

For the input: pickTwoParts[{a, b, c}], the right output is: {{a, a b, a c, b, b c, c}, {b c, c, b, a c, a, a b}}. I am getting that output, but only after uncommenting the lines: ...
42 views

### How to use Table to assign values to variables in a list?

I'm trying to do the following: R = {a, b, c, d, e, f, g, h, i}; Table[R[[n]] = RandomInteger[{0, 20}], {n, 1, Length[R]}] My intention is to assign a random ...
13 views

### how t calculate the area of a rectangle intersected by an arc [on hold]

I need to make two calculations: Determine the arc that is needed between the two intersection points of a rectangle. Knows: Size of the rectangle, location of the intersection points. I want to ...
133 views

### How to find max difference with the same x between two functions?

For example, I have function TF[y_] = 2 / Pi * ArcSin[y] And I have CDF: ...
20 views

### Problem with ReadList, record separator is not working

I have a list of the following form: ...
29 views

### Trying to find solution for system of ordinary differential Equations [on hold]

I've got 2 functions: A'[t] = (0.5/(1 + (B/k1)^n)) - 0.2*A B'[t] = (1/(1 + (A/k2)^n)) - 2*B with conditions of ...
42 views

### Rotated strings wrapping inside Item of Pane, vs their ItemSize or “ImageSize” spec

Why in this: Grid[{{Item[Rotate["this is a long text example", Pi/2], ItemSize -> {2, 10}]}}, Frame -> True] or this ...
42 views

### Manipulate - 3 sliders for a list of 3 elements

I'm trying to create a slider for a list of 3 elements. I know that I can create a 2D slider for a list of 2 elements and it's impossible to create a 3D slider for a list of 3 elements. So, I just ...
46 views

### FindDistributionParameters gives an error for a mixture of user defined sinh-arcsinh distributions

I have some data (1593 values). I first binned it using the Knuth rule and fitted a function that is a linear combination of two sinh-arcsinh functions. I then ...
45 views

### How to hide and show graphics within Show[] function (in Manipulate wrapper)

There is a well documented way to "Dynamically Hide and Show Plots" (link). In the example 'Opacity' option is effectively used. Is there an efficient way to make the same functionality with "Show"? I ...
39 views

### How to write a function that returns the combined output of several built-in functions

I am trying to make a module that takes a Boolean function, and prints the following: the function's truth table the function's NOR epxression the function's minimal Disjunctive normal form So far ...
75 views

### Mathematica's steps towards the result of a definite integral

I am interested in this definite integral: \eqalign{\int_0^\infty {x^2 \log(1-e^{-x})}\; dx\cr } That is: ...
44 views

### Goldbach Conjecture …Every even integer > 2 is the sum of two prime numbers.Find a program in mathematica to solve this problem [on hold]

Every even integer > 2 is the sum of two prime numbers and Each odd integer > 5 is the sum of three prime numbers USING THE SIEVE OF ERATOSTHENES....
49 views

### ANOVA test on dataset

I have a dataset with 3 groups and two variables. I want to do ANOVA test on the three groups for each variable. Does anyone know how to do this? ...
51 views

### Map with multiple arguments

I have a function f[m,n] and a list of arguments args = {{m1,n1},{m2,n2},{m3,n3},{m4,n4}, ...} that I want to apply to it. I ...
15 views

### Recurrent equations [duplicate]

I want to make a relation to show the first 7 elements that don't have the number 7 in it. So far i know how to make it to show the first 7 elements with RecurrenceTable[{a[n + 1] == 7 a[n] + a[n], ...
71 views

...
62 views

### nonlinear differential equation

For such a equation $$-y''(x) + x^2\cdot y(x) - |y(x)|^2\cdot y(x) = 0$$ with initial conditions: $y(-500) = 0$ and $y(500) = 0$. I write in mathematica ...
136 views

### Filtering of an unwanted frequency through a Fourier Transform

I have a data set with evenly spaced data points. The plot is frequency vs. intensity. The overall shape of the plot is an upwards curve into a plateau, this cannot be seen in the data as this is an ...
157 views

### How can I make FilledCurve smoother?

In How can I generate and randomly assign color to annular sectors? J.M. showed an interesting way to create a sector graphic using FilledCurve. Unfortunately it ...
48 views

### Eigenvalues of the nonlinear Schrödinger equation [on hold]

As an exercise I have to deal with a nonlinear time independent Schrodinger equation eigenvalues and eigenfunction, ...
20 views

### GraphicsRow - vertical axis ratio [on hold]

I have following code: ...
20 views

### physics - swing of the pendulum [duplicate]

I should visualize a swing of the pendulum. I should write a function springmass[z, nzigzag], which visualize the spring (line) and the swinging weight (rectangle) ...
50 views

### Forcing a locator button to remain on the surface of a sphere

This question may or may not be possible and might be a hard one to answer. Suppose that I have a sphere centered at the point (1,2,-1) with radius 3. Is it possible to place a locator button on the ...
117 views

### Does Mathematica have an equivalent of C's nextafter?

In C (and many other programming languages), there is a function double nextafter(double x, double y) which takes two (IEEE 754) floating-point numbers and ...
313 views

### Does Mathematica have an equivalent of Python's float.as_integer_ratio?

The Python programming language has a float.as_integer_ratio(x) function which exactly converts an IEEE 754 floating-point number into a numerator/denominator pair ...
63 views

### Changing from Dashed to Solid

I have: Graphics[{ Blue, Thick, Arrow[{{0, 0}, f1}], Arrow[{{0, 0}, f2}], Red, Arrow[{{0, 0}, f1 + f2}], Dashed, Blue, Line[{{-9, 0}, {12, 0}}] }] ...
43 views

### How to reduce trigonometric expressions under special conditions

For the following problems I used "FullSimplify" and "TrigReduce" but I manage to reduce more ...
62 views

Consider: ...
73 views

### Undo history cleared after removing comments - bug?

If I've written some code followed by a comment, like this: x(*y*) and I remove the comment by first removing the right delimiter and then the left, my undo ...
64 views

...
57 views

### NIntegrate and Sum give different results in summing functions [on hold]

I am using these two functions: ...
65 views

### Diff eqs can be solved?

I'm trying to solve a pair of coupled differential equations, but am having trouble making DSolve evaluate my equations. ...
51 views

### Import a jpeg file and a mov file and display them side by side

I am planning to use Mathematica for a presentation. In one of the slides I need to place a jpeg file side by side to a mov file. ...
37 views

### Create graph K5, delete 2 edges and 2 vertex, create adjacency matrix [duplicate]

I need help about this problem. I should create graph K5, delete 2 edges and 2 vertex from it and from the new graph create adjacency matrix. I have poor knowledge and i don't need anyone to solve the ...
77 views

### Why doesn't Plot draw function within prescribed range?

I have a function: TheoreticalFunction[x_] = 2 / Pi * ArcSin[x] And trying to plot its derivative: ...
47 views

### Sign of a symbolic derivative for ranges of parameters

i need to know the sign of the following expression ...
76 views

### Creating truth tables

Hello guys i need help about this problems: I should write module in mathematica which receive function f. Module should write on screen: -Truth table of function f -Boolean expression which contains ...
140 views

I'm trying to replicate the figure below. Now a nice first approach to do this is by using Mathematica, by making some kind of contourplot with circles and just add a gradient to the contourstyle. Now ...
59 views

### Creating Matrix,Inverted and Upper Triangulate inside Module

I was trying to fit this into a module but I didn't have any luck. And for some reason it won't Inverse the Matrix. Here's the code: Input: ...
40 views

### Issue with combining plots using Show [on hold]

I need to combine two plots, but I can't seem to find a proper way! I tried Show, but I just get an error Show::gcomb: Could not combine the graphics objects. ...