« first day (3092 days earlier)      last day (1389 days later) » 

5:03 AM
@kirma, OK, thanks. The only workaround that I found for this issue is that it seems to be scale dependent (a precision issue). If you use `m = OpenCascadeShapeSurfaceMeshToBoundaryMesh@
OpenCascadeShapeBooleanRegion@
RegionDifference[Ball[{0, 0, 0}, 100], Ball[{0, 100, 100}, 100]]` things work. You'd then need to rescale the result.
 
@user21 Yep, I know. It sadly means that it's hard to rely on it without rather curious workarounds or manual checking. Not really a WRI-originated problem though.
I was excited of OpenCascade because it did seem like it could be the way to improve discretization of simple semialgebraic surfaces or such (especially on intersections).
 
 
9 hours later…
2:34 PM
Hi folks, I am wondering why some people use `()` as in the following example?

Foo[x_] := Module[{a, b, c}, (a = 1; b = 2; c = 3; a + b + c + x)]
Foo[0]
What is the purpose of () here? Please ping me if you answer this question. I am leaving...
100 centuries later...
 
 
3 hours later…
5:11 PM
@TooFatManNoNeck - in the case you give it serves no purpose
But often it is used as a shorthand for CompoundExpression[expr1, expr2, expr3]
 
6:00 PM
@TooFatManNoNeck I use the parentheses when I want to make an assignment followed by a display option such as (cov = -Inverse[hessian])//MatrixForm such that the assignment isn't affected by the display option.
 
@JimB: Thank you.
@JasonB.: Thank you!
 
6:33 PM
Also I sometimes see people use
myFunc[vars_] := Module[{},
doSomething[vars];
doSomethingElse[vars];
oneMoreThing[vars];
]
because they don't realize you can just do
myFunc[vars_] := (
doSomething[vars];
doSomethingElse[vars];
oneMoreThing[vars];
)
2
 
nice!!
Hi folks, I want to draw stereometry problems above with Mathematica. Does it become easier ?
 
7:25 PM
@JasonB. Wow, that did not occur to me at all!
 

« first day (3092 days earlier)      last day (1389 days later) »