TransWikia.com
  1. All Categories
  2. Mathematica

Mathematica : Recent Questions and Answers (Page 13)

Find answers to your questions about Mathematica or help others by answering their Mathematica questions.

Comparing and Modifying two Matrices (list of list)

I need to compare two matrices with the same number of columns but a different number of rows (please see an example of Matrices A and B). I would like...

Asked on 10/22/2021

1 answer

How to fix the Y-axis and normalize density?

I want to plot a density curve but when I draw the y-axis not getting to 1 (as normalized) Subscript[a, p]=0.428;Subscript[[Alpha], p] =1.04;R = 2.45;Subscript[[Rho], p1][r_] = Subscript[[Rho],...

Asked on 10/22/2021

1 answer

Is there any way to speed up many instance of TravelDistance

The goal of this code is to identify and graph a "circle of cities" about a center city.cityCenter = Interpreter["City"]["St. Louis"]stateCenter = Interpreter["USState"]["Missouri"]nearbyStates = Join[AdministrativeDivisionData[Interpreter["USState"][stateCenter], ...

Asked on 10/22/2021

1 answer

Find the best fit with some conditions

I have this code to find the best values for $l$, $s$ and $j$:Clear[j,l,s,norm,maxx,maxy];data=Import["https://pastebin.com/raw/2DG5Xes6","Table"];g=3/2+(s(s+1)-l(l+1))/(2j*(j+1));[Mu]=9.274*10^-24;k=1.380*10^-23;y=[Mu]*g*j*x/k;maxy=Max[data[[All,2]]];maxx=Max[data[[All,1]]];minx=Min[data[[All,1]]];conds={Mod[l,1]==0&&Mod[j,1/2]==0,j-s==0||j-(l+s)==0||j-Abs[l-s]==0};b[x_]=maxy*(((2j+1)/(2j))Coth[(y(2j+1))/(2j)]-(1/(2j))Coth[y/(2j)]);fit=FindFit[data,{b[x],conds},{l,j,s},x]$l$ is an integer and $j$ and $s$ are half-integers....

Asked on 10/22/2021

2 answer

Conditional contour plot

I want to plot implicit plots in certain regions. For example plot the section of the hyperbola that is in between the wedge. But I could not find out how...

Asked on 10/22/2021

2 answer

Having two or multiple plot legend lines next to a single string

This question showed up as a gentleman asked on reddit.Had a quick jab at it and thought might be useful.The request was to have legends for a plot...

Asked on 10/22/2021

2 answer

How to read list of UnsignedInteger16 from base64 string in mathematica

I am struggling to convert a base64 string to a list of UnsignedInteger16 values.I have limited experience with mathematica, so please excuse me if this should be obvious. I...

Asked on 10/22/2021 by Richard Scott

2 answer

Getting two different results for the same computation

I have the following two codes:In[1]:=f = 10^5;u = 1;m = (R1 + R3)/(c*R1*R3);R1 = 100;R3 = 100;n = 100;k = c*R1;c = 100*10^(-9);FullSimplify[ f*Integrate[(Integrate[(((((u*Sin[2*Pi*f*x])*Sign[u*Sin[2*Pi*f*x]])/ ...

Asked on 10/22/2021

1 answer

Enter without execute

As far as I know shift+enter executes the code whereas plain enter merely goes onto the next line. However, sometimes pressing just enter also runs the code and I cant...

Asked on 10/22/2021 by Gappy Hilmore

2 answer

Plotting two functions into one plot with two y-axes. Is there a built option for this in newer versions of Mathematica?

I am looking into possibilities to plot two functions into one Plot, but with separate y-axes. I came across several variants of how to do this when searching for it,...

Asked on 10/22/2021

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP