TransWikia.com
  1. All Categories
  2. Mathematica

Mathematica : Recent Questions and Answers (Page 78)

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

Why does Mathematica give no output?

I am trying to solve a system of coupled differential equations. I am using the following code:DSolve[ {D[A[z], z] + B[z]*(Λ - Sqrt[2]*b) - (a/Sqrt[2])*(A[z]^2 -...

Asked on 06/13/2021

1 answer

Symbolic Integration with trigonometric functions

I have this trigonometric integral which takes forever to evaluate$int dx frac{4 left(cos left(p_1 xright)-frac{sin left(p_1 xright)}{p_1 x}right) left(cos left(p_2 xright)-frac{sin left(p_2 xright)}{p_2 x}right)...

Asked on 06/13/2021 by annoying_noob

1 answer

Two "identical" functions returning different values

When taking the norm of a complex number in Mathematica you get the same result when you use the Norm function or the Abs function. So why do the following...

Asked on 06/13/2021 by Jared Gdanski

3 answer

Symbolic integration vs. numerical integration

i have a question regarding the outcomes of the integration in general.Today i recognized something strange.My problem contains an unknown parameter $gamma$. It also contains two constant...

Asked on 06/13/2021 by WM_noob5

1 answer

Numerical solution of differential equations, accuracy is not enough

Clear["Global`*"];M1=17969/10000000;M2=9/1000;q=2/5;Λ=143/50000;c=q*(M2/M1)^2/2v=Piecewise[{{Λ^4*((1+ph[t]^2/M1^2)^(q/2)-1), ph[t]>0}, {Λ^4*(c*Tanh[ph[t]/M2]^2), ph[t]<=0}}];vph=D[v,ph[t]];ro=1/2*Λ^4*ph'[t]^2+v;p=1/2*Λ^4*ph'[t]^2-vs1=Flatten[NDSolve[ {Λ^4*ph''[t]+3*Λ^4*A'[t]/A[t]*ph'[t]+vph==0, (Λ^4*A''[t])/A[t]==-(1/6)*(ro+3p), ...

Asked on 06/13/2021 by ClyrionChen

0 answer

Plotting a function with a variable distributed uniformly

I am trying to plot the following as a function of $s$:$$ u_f= frac{P(S-s)sigma_i}{n_f(s)}+H(s) $$where $sigma_i$ is distributed uniform on the interval $[sigma_l,sigma_h]$, and...

Asked on 06/13/2021 by Z Riaz

0 answer

select partially matching filenames

I have two lists of files with slightly different naming conventionsfiles1 = {"DTideal_circ_def=000um_astX=000um_astY=410um.png","DTideal_circ_def=050um_defX=000um_defY=010um.png"}files2={"DT120_blur7_Defoc=000um_AstigX=000um_AstigY=410um.png","DT120_blur7_Defoc=000um_AstigX=460um_AstigY=310um.png","DT120_blur7_Defoc=000um_AstigX=460um_AstigY=360um.png","DT120_blur7_Defoc=000um_AstigX=460um_AstigY=410um.png","DT120_blur7_Defoc=000um_AstigX=460um_AstigY=460um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=010um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=060um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=110um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=160um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=210um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=260um.png"}I need to create pairs of files the paremeters of which are matching, i.e. to get{{"DTideal_circ_def=000um_astX=000um_astY=410um.png","DT120_blur7_Defoc=000um_AstigX=000um_AstigY=410um.png"},{"DTideal_circ_def=050um_defX=000um_defY=010um.png","DT120_blur7_Defoc=050um_AstigX=000um_AstigY=010um.png"}}...

Asked on 06/13/2021 by T. Rihacek

1 answer

Replace a color in image with hatchfilling

Is it possible to identify a color (say grey in a 3 color Black, Gray and White image) and replace the color with HatchFilling? I've tried to convert an image...

Asked on 06/12/2021 by skyfire

2 answer

How to write a more concise `RowReduce` function that can deal with symbolic matrix?

I asked a similar question in this post before and understand the reason why RowReduce function can't reduce symbolic matrix. I wrote an RowReduce function that can handle symbolic...

Asked on 06/12/2021

1 answer

ParametricNDSolveValue::ndsz

How to overcome this error?ode = D[theta[x], {x, 2}] == SH*theta[x]^2sol = ParametricNDSolveValue[{ode, theta[0] == 1, theta'[1] == 0}, theta[x], {x, 0, 1}, {SH}]Ns[SH_, Tr_] := SH*sol[SH]*(Log[1 + Tr*sol[SH]]...

Asked on 06/12/2021 by zhk

2 answer

Ask a Question

Get help from others!

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