Linked Questions

1 vote
1 answer
125 views

VectorAngle returns complex angles [duplicate]

The built-in VectorAngle function sometimes returns complex output when the actual angle is very close to π. The imaginary ...
Alexey Popkov's user avatar
28 votes
12 answers
8k views

how to get $n$ equidistributed points on the unit sphere

We can get $n$ equidistributed points in the unit circle using CirclePoints. But how do you get $n$ equidistributed points on the unit sphere(surface of a ball)? ...
yode's user avatar
  • 27.2k
51 votes
4 answers
3k views

Funny behaviour when plotting a polynomial of high degree and large coefficients

I am trying to plot a polynomial of degree $29$ on the domain $[0,1]$, with fairly large coefficients: ...
AUK1939's user avatar
  • 1,503
27 votes
6 answers
5k views

Annoying display truncation of numerical results

I have a lot of data to inspect. An example of a number in my program is 123.189094 This gets displayed as 123.189 ...
Reb.Cabin's user avatar
  • 8,763
31 votes
5 answers
3k views

How to speed up estimation of mean and Gaussian curvatures on triangular meshes?

I am trying to estimate curvatures on a triangulated surface/manifold using the algorithm of : Meyer, M., Desbrun, M., Schröder, P., & Barr, A. H. (2003). Discrete differential-geometry operators ...
Dunlop's user avatar
  • 4,313
36 votes
3 answers
2k views

Fast spherical polygon

Cross posted on Wolfram Community Question Given a list of points on a sphere and the sphere's radius, I'd like to plot a spherical polygon with those points as vertices. And this needs to be fast, ...
Kuba's user avatar
  • 138k
15 votes
1 answer
1k views

Converting to machine precision

There are multiple ways to convert an expression to machine precision, for example: ...
Simon Woods's user avatar
  • 85.4k
8 votes
2 answers
386 views

Why does N[Re@f] give complex result?

Consider this code: ...
xslittlegrass's user avatar
10 votes
1 answer
735 views

Confused by (apparent) inconsistent precision

$$ e^{\pi \sqrt{163}} \approx 262537412640768743.99999999999925 $$ E^(Pi Sqrt[163.0]) N[E^(Pi Sqrt[163.0]), 35] NumberForm[E^(Pi Sqrt[163.]), 35] returns <...
stevenvh's user avatar
  • 6,998
3 votes
4 answers
232 views

Calculating the angle between vectors returns small complex number instead of zero

I am calculating the angle between vectors $$cos(\theta{_a}{_b}) = \frac{a^T b}{||a|| ||b||}$$ In mathematica I am coding ...
Manuel Hernandez's user avatar
3 votes
1 answer
906 views

Angle between two vectors in spherical coordinates [closed]

I have two vectors: H = {1, 0, π/4}; EA = {1, 0, 0}; Which I want to be in {r, Phi, Theta} - which would should give an angle between the two vectors as ...
Joseph's user avatar
  • 217
3 votes
2 answers
168 views

Negative Correlation Distance

Bug introduced in 8.0 or earlier and fixed in 11.2.0 CorrelationDistance[{-53.0, 4.3}, {-23.0, 5.4}] is a negative number. It is close to zero, to be sure, but ...
Scott Guthery's user avatar
0 votes
0 answers
45 views

Please explain this unexpected code snippet behavior [duplicate]

Consider a function that maps a complex function z->f(z) to it's multivariable counterpart (x,y)->f(x,y) ...
nilo de roock's user avatar