TransWikia.com
  1. All Categories
  2. Mathematica

Mathematica : Recent Questions and Answers (Page 132)

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

NIntegrate of a convergent integral working with large integration limits, but not with infinite integration limits

Code for reproducing is below:Integrand[x_] := ((x + 1) Abs[x] Log[(x + 1)^2/Abs[x]^3])/((x + 1)^2 - Abs[x]^3); NIntegrate[Integrand[x], {x, -10000000, 10000000}]NIntegrate[Integrand[x], {x, -Infinity, Infinity}]The first instance...

Asked on 03/31/2021 by Henry Shackleton

2 answer

Help to Write a Function for Multiple Derivatives

I am new to Mathematica and still struggling to learn basic things. In this spirit, I am trying to compute the following expression: $$C_n = left[ frac{partial^n W(J)}{partial J^n}right]_{J=0},$$...

Asked on 03/30/2021 by rainman

1 answer

How to import data from the file after one string and before another string?

Consider a file file.dat that has a form...string 1x1 y1 z1x2 y2 z2...string 2...where x,y,z are numbers. Could you please tell me how to import only the following strings...

Asked on 03/30/2021

1 answer

How to put conditions on indices of product

I'm trying to solve for the Lagrangian form of the interpolation polynomial. Right now, I'm just trying to solve for the $l_i(x)$ values which are equal to $l_i(x)=prod_{jneq...

Asked on 03/30/2021 by TheStrangeQuark

1 answer

Correct way to format numbers

I have defined the following function:randvec[mag_]:= mag Normalize[Table[RandomReal[], {j, 1, 4}]]I would like to format the numbers in the list so that they are 4 d.p. Trying the following:...

Asked on 03/30/2021

0 answer

How to correctly calculate the number of seating plans for the 4-couples problem?

Four couples a are sitting around a round table, in which husband and wife can not be adjacent. How many different seating plans are there? I want to get as...

Asked on 03/30/2021

5 answer

How do I perform volume rendering on image slices imported from a directory on my local machine?

I have a set of image slices (in .MHA and DICOM formats) in a folder on my local machine. I will like to import these slices, perform rendering to get...

Asked on 03/30/2021

0 answer

Remove Locator doesn't work

I have the issue that I can't remove Locators, when using LocatorAutoCreate->True.For example the code snippet taken from "LocatorPlane" -> Options-> LocatorAutoCreateDynamicModule[{pts = {{-1, 1}/2, {1, 1}/2}}, LocatorPane[Dynamic[pts],...

Asked on 03/30/2021 by Merrx

0 answer

How to force Mathematica to simplify this expression?

I have the following expression$$2^{1-2 n^2} left(3-sqrt{5}right)^{-n-1} left(sqrt{5}-1right)^{n (n+1)} left(sqrt{5}+1right)^{n^2}$$ This can be simplified to$$left(frac{1}{2} left(sqrt{5}+1right)right)^{n+2}$$ But FullSimplify[2^(1 - 2*n^2)*(3 - Sqrt[5])^(-1 - n)*(-1 +...

Asked on 03/30/2021 by Vaclav Kotesovec

2 answer

Any trick to solve this optimization problem?

I'm relatively new to solving optimization problems using Mathematica. I have an optimization problem but Mathematica does not seem to be able to solve it. I have tried all sorts...

Asked on 03/29/2021 by user74840

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