All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
8 views

Why FilledCurve and BezierCurve or BSplineCurve do not fit

I want to draw the outline of a circle (it's actually the glyph period from Cascadia Code font): ...
-1
votes
0answers
7 views

Poisson equation with pure neumann boundary conditions and zero average

The problem is the following: Thanks for the answer.
0
votes
0answers
9 views

The convergence/divergence of lim x>0 ln(1+f(x))/f(x) when f(x)=sin(1/x)x^2 [migrated]

This question came up between me and my teacher when we discussed whether the following when lim x>a f(x) = o does lim x>a ln(1+f(x))/f(x) = 1 is true or not. It is widely known that lim x>0 ln(1+...
2
votes
1answer
30 views

How to draw surface with four space curves as boundaries

How to draw a surface with four space curves as boundaries of the surface? ...
1
vote
0answers
41 views

Problem computing a cylindrical Heat equation with a parameter alpha

i have been struggling to compute a particular instance of cylindrical 3D heat equation. Here is my code : ...
2
votes
1answer
16 views

StreamStyle can not change the style of some lines which specified by StreamPoints

StreamPoints will give some specific lines, and I want to change their style by StreamStyle, but now it only will change the black part lines style, the StreamScale will change the red lines' style, ...
0
votes
0answers
21 views

Problem with solve : from trigonometry to polynomials

I want to solve a trogonometric problem by transforming it to polynomial : ...
0
votes
1answer
15 views

Simplify Difference of Conjugate Pairs

Is it possible to easily simplify the difference of conjugate pairs? In particular, if there's just a single variable, then FullSimplify[a - Conjugate[a]] ...
1
vote
3answers
41 views

On correct use of Limit for multivariable function

V 12.1 on windows. This limit $\lim_{(x \rightarrow 0,y\rightarrow 0)} \frac{x^2-y^2}{x^2+y^2}$ depends on the direction. So the limit does not exist, or could be written as Maple does it, which is $...
0
votes
0answers
36 views

Recognize function from its own plot

Is there a method that can help Recognize function from its own plot For example : I was given the following plot and I was asked to find out what function/Signal that this plot belongs to
1
vote
0answers
12 views

RegionFunction to clip ContourPlot3D results in unexpected shading

I am attempting to use RegionFunction to trim an implicit surface drawn with ContourPlot3D to only show the portion inside of a sphere (instead of the bounding box from PlotRange). However, when I ...
0
votes
0answers
26 views

ContourPlot taking too long

This code creates an 12x12 matrix with entries being complex functions of (kx,ky). Then asks to sort the eigenvalues and make Plot3D or ContourPlot of the lowest eigenvalue. The code was producing ...
1
vote
1answer
19 views

RandomPrime inside Manipulate gets evaluated multiple times

Manipulate[ m = RandomPrime[d]; {m, d}, {d, {20, 50}, SetterBar} ] Basically, I expected the code to generate a random prime m (under the upper bound d) for me ...
1
vote
0answers
54 views

Determinant of 11x11 Matrix consumes immense amount of memory

I'm trying to take the determinant of an 11x11 matrix, constructed out of some functions I've defined ...
4
votes
1answer
53 views

What are vertexes & edges returned by GraphData for “MengerSponge”?

I was messing around in Mathematica and I ended up trying this out: GraphPlot3D[GraphData[{"MengerSponge", 3}]] which produced the following (you can see a video ...
1
vote
0answers
33 views

Finding analytic expression with replacement rules

I have a function defined as f[k_]:= Maximize[{(x^2/(1+x^2))((1-x^(2k))/(1+x^(2k+1)))^2, 0 <= x <= 1}, x] I would like to find an analytic form of $f$ as a ...
2
votes
0answers
27 views

How to get information from all built-in Mathematica functions in order to create a Kotlin library like the Wolfram Client Library for Python?

I'd like to use (if this already exists) or create a library to use Mathematica together with Kotlin (or Java) (not JLink, please see below). We already have this very useful implementation for ...
1
vote
1answer
35 views

3D Plotting for the solution of stochastic differential equation

I have the following solution of the SDE: $$U(x,t)=-6+12 * \tanh \left[x+\left(B(t)-\frac{t^{2}}{2}\right)+\int_{0}^{t} e^{s^{2}} d s\right]^{2}$$ Where $B(t)$ is white noise. In the following code ...
0
votes
0answers
19 views

GetProcessMemoryInfo

The GetProcessMemoryInfo from psapi.dll is a helpful function that can be used to monitor the memory wolframkernel.exe used, where how much memory can be used and is actually used by wolframkernel is ...
7
votes
3answers
286 views

How can I replace a set of Nested For Loops with a Functional Code Alternative?

Despite having looked over various posts concerning optimizing nested For loop expressions into a functional programming equivalent I still can not figure out how to actually to do this. Such ...
3
votes
2answers
113 views

Problem with Integration

I want to integrate a function which seems to have no regularity problems. In fact I have defined ...
2
votes
0answers
36 views

MeshTools package: can one translate 3d meshes in order to then merge them?

I have created a 3d region for Laplace's eqn ...
1
vote
0answers
22 views

Difficultly importing GeoTiff format

I downloaded Earth data from here. It is a GeoTiff file, which is a map of solar radiation falling on earth. Mathematica claims to import ...
0
votes
0answers
15 views

Importing Esri ASCII raster format

Does anyone know whether Mathematica has a built-in function to import Esri ASCII raster format data as described at: http://resources.arcgis.com/en/help/main/10.2/index.html#/...
4
votes
1answer
62 views
4
votes
1answer
99 views

RandomVariate cannot sample from a custom multivariate ProbabilityDistribution

Let us try to define 2D distribution through PDF: ...
2
votes
1answer
24 views

Problem with recursive relations

Continuing the topic of my previous questions (link1 and link2), let me ask one more question. I have problems with the following code: ...
5
votes
1answer
101 views

Identify flipped data

Edit I'll try to reformulate my problem to make it more clear. Consider association with elements of the form {x,y} -> {f(x,y),g(x,y),...}, where keys are ...
1
vote
0answers
36 views

Matching Polygons in a Discrete Optimization Algorithm

I'm developing a genetic algorithm to optimize some rather complex roof geometry but have run into some very strange behaviour that I haven't been able to narrow down the cause of for a week now. I'm ...
0
votes
0answers
31 views

Exponential Syntax Error [closed]

h[x_]:= 0.26 + 3.45 E^[-1/x] - 6.72 + 3x^3; (* Syntax: "E^" cannot be followed by "[-1/x]". *) What can I do to solve that? Thank you
3
votes
2answers
128 views

How to sketch a non-function graph

I tried to plot roots of my equations with Plot, but because these graphs are not functions in some region Mathematica can not handle it. How can I sketch my ...
0
votes
1answer
51 views

obtain the phase between two signals [duplicate]

I would like to calculate the phase between two signals like f= Table[Sin[x-0.8],{x,-100,100,0.1}] g= Table[Sin[x],{x,-100,100,0.1}] For doing that I use the <...
1
vote
2answers
54 views

Finding a third degree polynomial that passes through given points

If I have three points xi-1,xi, xi+1 where y(xi) =1 and y(xi-1)=0, y(xi+1)=0 (basis function) and I need to define a line that passes through these points I will use the line equation y-y1=(y2-y1) /(...
0
votes
1answer
39 views

Calculate the volume of objects in Graphics3D

Is there a way to calculate the volume of these different regions without making the algebra ? ...
4
votes
2answers
113 views

Is there a method to simplify RegionIntersection between 2 spheres?

I use RegionIntersection to find the circle between 2 spheres, but Mathematica returns : ...
2
votes
1answer
55 views

why this simple code is not giving the right answer under Compile

I have two sets of inputs that are to be fed to a simple function. The inputs are essentially a set of triangles and the normal for each triangle. The function will compute the gradient about the ...
3
votes
2answers
94 views

Replacement in a While loop

I want substitute m for n in n = -3; While[True, If[2 n^2 + n - 6 == 0, Break[]]; n += 1/2];n...
6
votes
2answers
82 views

Add a column to the left side of a dataset

What I am trying to do is to add an id column at the left side of my data set. This is the data set I am working with. I Have three columns and I want to add a new column on the left side with the ...
5
votes
1answer
116 views

What is the correct to have package A use package B in its private section without making B visible to the user?

V 12.1 on windows. I am loading pkg2, which in its Private section loads pkg1 in order to call one of its function. After ...
6
votes
1answer
79 views

Can the new HatchShading and StippleShading plotstyles be used without color?

I wanted (PlotStyles) HatchShading or StippleShading for figures that will be printed in black and white, but these options end up color by default. I tried combining with a GrayTones ColorFunction, ...
3
votes
1answer
44 views

Problem with a finite sum involving HurwitzZeta Function

I'm trying to reproduce some plots from the analytical expression: $f(\xi)=\left(\frac{2}{\beta^2}-1\right)+\left(\frac{\theta\,e^{-\beta}}{2}-\frac{1}{2}\right)\xi+\sum_{n=1}^{60}\left[\frac{(-\beta)...
1
vote
1answer
42 views

NDSolve PDE trouble with overdetermined, inactive, inconsistent equation dimensions

TL;DR How can I solve $\left(\vec{v}\cdot\nabla\right)\vec{v}=-g\hat{z}-\nabla p$ numerically for $p(r,\theta,z)$ given an explicit $\vec{v}(r,z)$ and $p(r_0,\theta,z)=g z$? Issue I have a PDE ...
2
votes
1answer
45 views

how to plot an approximate Riemann Zeta function beyond $t=180$?

Riemann zeta function $\zeta(s)$ is related to Riemann Xi function $\Xi(z)$ via: $$s=\frac12+ iz,\qquad \Xi(z):=\frac12s(s-1)\pi^{-s/2}\Gamma(s/2)\zeta(s),\tag{1}$$ We found the following function $\...
2
votes
0answers
34 views

How to copy and paste special characters out of Mathematica [duplicate]

I'm doing a bit of string manipulation, and the output has Greek characters in it. I want to be able to copy and paste those Greek characters out of Mathematica and into another file. For example, ...
7
votes
3answers
160 views

What is the difference between a variable and a “slot variable”?

Investigating Function[] , I found: What is the difference between using a variable (in the case, $u$) and a "slot variable"? It seems anything can be done ...
0
votes
1answer
37 views

Simplify Jacobi Polynomials

How can I force Mathematica to use the identities satisfied by Jacobi polynomials $$ (1-\cdot)P_n^{(\alpha+1,\beta)} = \frac{2}{2n+\alpha+\beta+2}\left((n+\alpha+1)P_n^{(\alpha,\beta)}-(n+1)P_{n+1}^{(\...
0
votes
0answers
47 views

Is zero multiplied by infinity indeterminate or zero?

Is $0\times\infty$ indeterminate or zero? Mathematica says the result is zero. Limit[0*n, n -> \[Infinity] ] or ...
3
votes
2answers
61 views

Calculating and displaying closest point to a line on a cylinder surface

Let's say I have a cylinder centered along the z-axis (center of cylinder is {0,0,0}) defined by its Radius R and half-length Z and an (infinite) line defined by two 3D points A and B which does not ...
2
votes
1answer
54 views

Are symbols automatically generated when defining a variable in the global context and what are symbols?

Abstract: I have noticed something really tricky with Mathematica and the documentation for symbols is short on clearing the confusion. It likely reveals what symbols are but it's not very prominent. ...
7
votes
5answers
234 views

Rewriting partitions using exponents

I'm looking for a way to re-express a partition given in full form, like $\{{2, 2, 1, 1}\}$, into the shortened form $\{2^2, 1^2\}$, i.e. given a partition with repeated entries, count the number of ...

15 30 50 per page
1
2 3 4 5
…
1393