All Questions

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

How can I remove plot markers at some desired points?

How can I remove plot markers at some data points? For example, I want to remove plot markers at these circled points leaving only one marker at each point there. I tried deleting the data points ...
user avatar
  • 1,810
3 votes
2 answers
62 views

Solving a Simple 'Sum and Product' Problem

I am trying to solve a simple 'sum and product' problem. Basically, the sum of four prices and the product of those four prices are numerically equal (you must, of course, disregard the units). The ...
user avatar
0 votes
0 answers
22 views

Meshing Error on Imported obj file

I am trying to import a .obj file to be used in a static electric field simulation. I am able to successfully run the simulation with certain other aperture geometries (see here: < https://www....
user avatar
  • 23
0 votes
0 answers
28 views

How to mix two styles with some lines with filled and non-filled markers?

How can I mix styles with some lines with filled and non-filled markers? The post here mentioned all cases but I couldn't combine them into one plot. ...
user avatar
  • 1,810
-1 votes
1 answer
29 views

How to apply the style of one set of data to another set of data?

I have a data set that must be plotted using BarChart, and I would like to format the color based on another dataset's style. For Example: ...
user avatar
  • 4,368
1 vote
2 answers
30 views

Multiple columns from a single column of data file

Suppose I have a data file containing one column of 1000 rows having x, y, z and ϕ values. I need to separate them into four distinct columns by selecting every alternative value. For example, if I ...
user avatar
  • 439
0 votes
0 answers
22 views

Solving a 2d recurrence diagnoal-by-diagnoal

I have a 3d recurrence relation -- which I know can be hard for Mathematica to work with, so that I boiled it down to 2d: We have two functions, $f_1(i,j)$, $f_2(i,j)$ defined on the state space $\{(i,...
user avatar
  • 165
2 votes
2 answers
56 views

ComplexExpand no longer assumes Derivative[__][__][__] as real

Consider the following sample: {Re, Im}[u'[t]] // Through // ComplexExpand In v9.0.1 u'[t] is assumed as real: But at least ...
user avatar
  • 52.3k
7 votes
1 answer
71 views

protein visualization: display a residue in balls and sticks over the structure

I am trying to visualize a cytochrome c protein and display one of the residues in ball and sticks over it. I am using the PDB file 1AKK for it (https://www.rcsb.org/structure/1akk). The Import ...
user avatar
0 votes
0 answers
21 views

Edit UnicodeCharacters.tr-File

I want to install a new package in Mathematica. If I understand the userguide right, I also have to edit the UnicodeCharacters.tr-File by another *.tr-File for example containing 0x2219 [...
user avatar
0 votes
0 answers
22 views

Problem with a DAE and DiscreteVariables (II)

I continue with a DAE problem similar to another one posted here some days ago. @bbgodfrey offered a solution for the DiscreteVariables problem but now I have a different problem. Equations I put came ...
user avatar
  • 111
4 votes
4 answers
96 views

How to plot smooth region based on data?

Consider some region region, chosen for simplicity as a parallelepiped: ...
user avatar
  • 3,822
5 votes
0 answers
66 views

Coarse mesh of a sphere

I try to mesh a sphere (examplary) in different qualities, using MaxCellMeasure: ...
user avatar
0 votes
0 answers
31 views

How to replace functions with their Fourier transform

I have a function \deltaG given by ...
user avatar
4 votes
2 answers
99 views

Finding Mesh Cell Normals

I need to find a normal pointing outside for every face / cell of a closed Mesh Region. How can I do this? Here's what I have now - mesh + mesh cells centers and I'm stuck and puzzled. There's ...
user avatar
  • 43
0 votes
0 answers
38 views

Very weird behaviour with AbsoluteTiming[] - any explanation?

So I've stumbled upon something with AbsoluteTiming and computing speed in general which left me dumbfounded. It's the following: If I run this code (where someOperation is a simple straightforward ...
user avatar
1 vote
1 answer
40 views

How to select in the following way?

Consider the following nested list: fff = {{1, 2, {{1, 2}, {3, 4}, {19, 20}, {21, 22}}}, {2, 8, {{0.5, 3}, {1.4, 2}, {3, 13}, {2, 18}, {0.3, 19}, {20, 21}}}} ...
user avatar
  • 3,822
5 votes
2 answers
206 views

How to speed up loading 20k lines tsv-file with complex numbers?

I have a long (20k lines) file which looks like this: ...
user avatar
0 votes
0 answers
41 views

Simulating the Response of Charged Particles to Apertures with Inhomogeneous Electric Fields Passing through them

I have produced a simulation which allows me to observe a static electric field produced by a charged plate as it passes through some complex apertures in a different, oppositely charged metal plate. ...
user avatar
  • 23
0 votes
0 answers
61 views

It's exactly the same as the original answer by simplification [closed]

I use this ...
user avatar
0 votes
0 answers
41 views

How to define a function that variable with subscript and then plot graphics? [closed]

How to define a function that variable with subscript and then plot graphics? For example, $\lambda a_H^2 + (1-\lambda)a_L^2$. But it's has some error: ...
user avatar
1 vote
0 answers
31 views

Unset Variable Using condition

...
user avatar
  • 121
0 votes
0 answers
32 views

Is the integration feature of an interpolated plot/function supposed to have a much larger maximum and range values in general?

So, I have imported data from a software called NextNano, plotting electron density. My first step was to define the data within the desired domain data={,},.... ...
user avatar
7 votes
8 answers
274 views

How to replace anti diagonal elements of a matrix

I want to assign new values to the anti-diagonal elements of a square matrix m with the values of its diagonal elements. For that, I want to make use of ...
user avatar
  • 309
6 votes
1 answer
83 views

Does converting large 3D matrices to VERY large 2D matrices affect speed of operations done on the matix?

Novice question! Does the dimensionality of a matrix affect the speed of operations performed on it (or the speed of retrieval of values from it) IF the total number of elements in the matrices are ...
user avatar
  • 185
0 votes
0 answers
32 views

What is the closest equivalent to SynthesizeMissingValues in Python? [closed]

I need to re-implement a few examples in Python, probably with sklearn. What (sub)package or functionality is the closest to these two symbols ...
user avatar
  • 3,669
1 vote
0 answers
42 views

In Windows Classic theme the buttons on toolbars have no borders

This is under Mathematica 13.0 and Windows 11: In Preferences, the situation is even worse: Since all those windows are Mathematica notebooks, maybe it is possible to fix them?
user avatar
  • 2,751
0 votes
0 answers
41 views

How to Combine 3d Plots

I am trying to analyze data from a high-altitude balloon (HAB) launched in Ohio, and I would like to use Mathematica to do this. Currently, I have used Mathematica to generate a plot of the topography ...
user avatar
2 votes
1 answer
70 views

A complicated derivative problem

I have some equation,like this $$ \begin{aligned} &\hat{t}_{g o}=\frac{R}{V_{m}}\left(1+\frac{(n+2) \sigma^{2}+(n+1)^{2}(n+2) \sigma_{f}^{2}}{2(2 n+3)(2 n+5)}-\frac{(n+1) \sigma \sigma_{f}}{2(2 n+...
user avatar
4 votes
2 answers
224 views

How can I move these numbers to the right side of the y axis?

How can I move these numbers to the right side of the y axis? (preferably not using frame) Plot[1 + x^2, {x, -5, 0}] Here is my orginal problem. I tried my best ...
user avatar
  • 1,810
2 votes
1 answer
63 views

How to import the given file?

Consider a file with the following block structure: Event XX Muon YY: data End of event Event XX' Muon YY': data' End of Event ... where ...
user avatar
  • 3,822
3 votes
3 answers
235 views

Simplify Log monotonicity

Why does: FullSimplify[(n+1)^2>n^2,n>=2] evaluate to True, but: ...
user avatar
1 vote
2 answers
98 views

Solution on nonlinear pde with intial condtion

It produces an error. please suggest an alternative solution to the above-coupled pde problem. ...
user avatar
7 votes
1 answer
102 views

Using Compile on Gradient within FindMinimum efficiently

This is an example from the documentation: ...
user avatar
  • 2,160
1 vote
3 answers
98 views

Solution at a particular point

I have an equation y[a, b, x] = a^2 b x^-2 (Exp[b/x] - 1)^-1 and when I plot, it gives the expected curve as shown in the image attached. I need to find the value ...
user avatar
  • 85
2 votes
2 answers
145 views

How to plot two functions?

a[x_,y_]:=x^3+y^2; b[x_,y_]:=x^2+y^3; I want to plot a[x,y] in x axis and b[x,y] in y axis for different values of x and y say, we fix y=1 and x goes from 1 to 10.
user avatar
  • 115
0 votes
1 answer
40 views

Real valued solution

I want to obtain the critical points or if you like a real solution for the first derivative of the function set to zero, and the second derivative also vanishes of the function : ...
user avatar
2 votes
1 answer
68 views

Can BarLegend Tricks be set according to the function?

I am using it like this . Now how to set barlegend numbers according to the c[x] value? ...
user avatar
  • 115
6 votes
1 answer
90 views

Exporting results containing Entities to JSON?

I am looking for a straightforward way to export results from functions like ImageContents, FacialFeatures, and WolframAlpha - symbols that return stuff containing knowledgebase content. Aside from ...
user avatar
  • 30.4k
0 votes
0 answers
13 views

how to find the CDF of double truncated exponetial distribution [duplicate]

tring to find the cdf of double truncated exponetial distribution using the follwing code ...
user avatar
0 votes
1 answer
53 views

Add barlegend colored by area of circle

I am using the following code where color and color barlegend show the radius of the concentric circles: ...
user avatar
  • 115
6 votes
0 answers
48 views

How can I gracefully stop loading a package based on Mathematica version number?

I recently shared some work with a colleague and realized that his having v12 caused issues, as I used some new-to-13 functions. How can I put a requirement for a minimum version into my package? Here'...
user avatar
  • 5,414
1 vote
2 answers
65 views

Defining Dirichlet Boundary Conditions on an Imported 3D Object with Apertures in it

I am trying to simulate a static electric field (in 2d and 3d) as it passes through a couple of apertures in a 3D "metal sheet" (model imported as a .obj file) given here: https://www....
user avatar
  • 23
-3 votes
0 answers
44 views

prime and integers [closed]

The sum of the squares of the prime numbers from 1 to 200 Print those that are exactly divisible by 7. Note: Use one of the Do, For, While commands for the solution. count yourself You can use the ...
user avatar
8 votes
0 answers
95 views

Kernel crash with RandomChoice

Bug introduced in 8.0.4 and persisting through 13.0.1 or later (case: 4948255) I use Mathematica 12.3.1 for Microsoft Windows (64 bit). While playing with some code inspired by this recent question, ...
user avatar
  • 60.1k
2 votes
0 answers
33 views

Converting between mean time between failures and survival probabilities

This is more of a math question, but I'm hoping some math wizard can help me map these concepts to functions in Mathematica's reliability API. $f$ of my machines will experience a failure in the first ...
user avatar
2 votes
0 answers
32 views

Help understanding a bug when FoldList using RandomChoice is Compiled

Preamble: I submitted this bug to support@wolfram.com and it was acknowledged. I assume it will be fixed eventually. In the meantime I'd like to understand what's going on so I can have a better idea ...
user avatar
  • 1,397
0 votes
0 answers
40 views

How to transform this MeijerG function into a modified Bessel function $K_n(z)$

I have this MeijerG function $$f(n,z)=\frac{z^2 \Gamma \left(n+\frac{3}{2}\right)}{2 \sqrt{\pi } K_2(z)}G_{1,3}^{3,0}\left(\frac{z^2}{4}| \begin{array}{c} n \\ -\...
user avatar
  • 601
2 votes
1 answer
36 views

Strange Vertex Size Problem when Moving From 999 to 1000 Verteces

I have a problem with Graph plot scaling of vertex sizes when I go from 999 vertices to 1000 vertices. The following code scales the vertex size properly when the numNodes = 999; but not numNodes = ...
user avatar
2 votes
1 answer
126 views

How to add color BarLegend here?

How can I add a BarLegend to the following plot? ...
user avatar
  • 115

15 30 50 per page
1
2 3 4 5
1687