Skip to main content

All Questions

2 votes
2 answers
228 views

How can I make sure that there are real roots for the given function? Can I trust the plot only?

I have this function $$f(x)=(\pi -2 x)^2 \sin \left(\frac{\pi ^2}{2 x-2 \pi }+\frac{1}{2} \csc ^{-1}\left(\frac{4 \pi (\pi -x) \csc \left(\frac{\pi ^2}{x-\pi }\right)}{4 (\pi -x)^2+\pi ^2}\right)\...
math2021's user avatar
  • 749
0 votes
2 answers
59 views

Confused by results of a simple computation [duplicate]

If I define f[x_] := (1 - Exp[-2 x^2])/(x Sin[x]) and then enter N[f[10^-5] - 2, 100] I get the result $$-1....
awkward's user avatar
  • 137
0 votes
1 answer
82 views

Is there an alternative way instead of increasing the number of plotpoints in RegionPlot to get a better result?

I have this function and I use RegionPlot to see in which part of the domain, the function is negative: ...
user avatar
0 votes
2 answers
109 views

How can I make sure that the plot of this function cross each other or not?

I have this function: $$\frac{1}{16} \left(\sinh (\pi x) \left(64 \left(x^2-4\right) \cosh \left(\frac{2 \pi x}{3}\right) \cos (y)+\left(x^2+4\right)^2+256 x \sinh \left(\frac{2 \pi x}{3}\right) \...
user avatar
0 votes
4 answers
569 views

Is it needed to increase the precision of ContourPlot in this case?

I have this function and I want to see where it is zero. $$\frac{1}{16} \left(\sinh (\pi x) \left(64 \left(x^2-4\right) \cosh \left(\frac{2 \pi x}{3}\right) \cos (y)+\left(x^2+4\right)^2+256 x \sinh ...
user avatar
0 votes
3 answers
53 views

Low precision from function returning matrix

Got a function depending on single parameter "t" defined below which returns a 2 by 2 matrix ...
oweydd's user avatar
  • 345
0 votes
1 answer
44 views

Precision issue using functions

I just want to get a smooth plot but the calculated values are "discrete" which seems to be a precision problem. I tried N[],SetPrecision[],SetAccuary[] without any success. So I paste the Code in its ...
Bullover's user avatar
0 votes
0 answers
101 views

Workaround of non-integer indexed objects? [duplicate]

When using indexed object, I found the behavior of value 0.7 as the index quite strange, then did the following test. The first output cell was executed directly as the second input cell. Have not ...
Chromatic's user avatar
  • 804
4 votes
3 answers
3k views

Permanently rounding numbers/values to a given number of significant figures

I am searching for a simple way of rounding and setting an input to a desired number of significant figures. There are a vast number of posts that discuss similar problems, but none address this issue....
George Papadopoulos's user avatar
1 vote
1 answer
208 views

User defined functions and decimal places displayed

I have a couple of complicated user-defined functions, one which calls the other, and I wish to control the number of decimal places displayed when I call the "mother" function. I have tried the ...
Freakalien's user avatar
4 votes
1 answer
1k views

Fixed-Point Numbers in Mathematica

I am working with a library that needs input in a Fixed Point notation. I’d like to figure out a way to convert the floating point results into fixed point representation. The fixed point length is ...
Pam's user avatar
  • 1,867
3 votes
1 answer
197 views

Why the EuclideanDistance of these 2 exact points generates the warning N::meprec?

The two points are: pts = {{1/4 (-1 - Sqrt[5]), Sqrt[5/8 - Sqrt[5]/8]}, {1/4 (-1 - Sqrt[5]), -Sqrt[5/8 - Sqrt[5]/8]}}; EuclideanDistance @@ pts N::...
xzczd's user avatar
  • 70.1k