« first day (1217 days earlier)      last day (3273 days later) » 

2:15 AM
@Guesswhoitis. could you please help me understand: pd[pts_?MatrixQ, n_Integer] := (Dot @@ #[[{1, -1}]]) & /@ Partition[pts, n, n - 1] ?
 
2:55 AM
@psimeson, execute test = Table[{Subscript[x, k], Subscript[y, k]}, {k, 10}].
 
did it
I got a list with {{x1,y1},......,{x10,y10}}
I am having hard time understanding the part with pure function
 
@psimeson You can try breaking it into smaller parts and trying with the right arguments to see what happens
#[[{1, -1}]] &@{{1, 2}, {3, 4}, {5, 6}}
Dot @@ {{1, 2}, {5, 6}}
 
@TheToad Thanks.. I will try it that way.. I was trying to do so but I messed up
 
Okay guys, I have a stupid question: If I buy 10.1, will I be able to upgrade to 10.2 through 10.xx for free?
I'm trying to decide whether I should renew my school license ($35) for another year. Currently they're only providing 10.0.1, but I do get 8 subkernels instead of 4 under the regular home-use version.
 
3:11 AM
@2012rcampion I think WRI charges for every update.
 
3:25 AM
I still don't understand what's the use of pure function pd[pts_?MatrixQ, n_Integer] := (Dot @@ #[[{1, -1}]]) & /@ Partition[pts, n, n - 1]
I can get the same result by doing this : pd[pts_?MatrixQ, n_Integer] := Dot @@@ Partition[pts, n, n - 1]
 
3:56 AM
@psimeson Are you sure about that? Have you tried comparing the two using the definition of test from above?
They don't do the same thing.
 
test = {{1, 2}, {2, 3}, {4, 5}, {6, 7}, {1, 3}}
(Dot @@ #[[{1, -1}]]) & /@ Partition[test, 2, 1]
gives: {8, 23, 59, 27}
Dot @@@ Partition[test, 2, 1]
gives: {8, 23, 59, 27}
 
What if you do Partition[test, 3, 2]?
 
in that case i get a different result
what does this mean #[[{1, -1}]] ?
 
5:04 AM
finally understood what #[[{1, -1}]] means and how it's working :)
 
5:40 AM
Oops, sorry about getting cut; I had to attend to something. I'm glad Mr. Toad was able to fill in. :)
 
 
3 hours later…
8:40 AM
Select[
Names["System`*"],
MemberQ[Options[ToExpression@#][[All, 1]], Assumptions] &]
I'd like to know what functions contain the option of "Assumption"?
The code gives the warning information Options::opmix: Cannot mix streams and non-streams in {Courier,10.}. >> ToExpression::notstrbox: FEPrivate`FrontEndResourceString[GetFEKernelInit] is not a string or a box. ToExpression can only interpret strings or boxes as Mathematica input. >>
@2012rcampion, Could you help me to detect the problem? thks:-)
 
 
2 hours later…
10:39 AM
@ShutaoTang What about
names = Names["System`*"];
Quiet@Select[names,
  MemberQ[
    Function[sym, Options[Unevaluated[sym]], {HoldFirst}] @@
     MakeExpression[#], Assumptions, 2] &]
 
0
Q: Our language when we talk about Mathematica functions

Alexey PopkovThe discussion in the comments in two recent AspectRatio threads (1,2) has highlighted one important aspect of our established way of expressing our thoughts about the Mathematica (or Wolfram Language) functions: we tend to use the names of built-in system Symbols instead of the corresponding wor...

 
 
1 hour later…
11:56 AM
Is there any convenient way to Merge using different functions based on keys? This is in the context of Dataset and GroupBy.
Here's an example:
data = Table[<|"name" -> #, "a" -> RandomReal[],
        "b" -> RandomReal[]|>, {RandomInteger[{3, 8}]}] & /@ {"p",
      "q", "r", "s", "t"} // Catenate // Dataset;
Now I can do data[GroupBy["name"], Merge[Total], {"a"}] or data[GroupBy["name"], Merge[Mean], {"b"}]
But I'd like to get a single dataset containing both the reduced "a" and "b" columns.
What's the simplest/shortest/easiest way?
 
 
1 hour later…
1:20 PM
It would be `Query`: `data[GroupBy["name"], <|"a" -> Query[Total, "a"],
"b" -> Query[Mean, "b"]|>]`.
 
 
4 hours later…
5:31 PM
I've already reported to support@wolfram.com but today both my Mac and Windows installs of Mathematica lost their definitions for `Classify` and report the same terrifying message "Users/martinjohnhadley/Library/Mathematica/Paclets/Repository/\
MachineLearning-1.0.5/Kernel/64Bit/MachineLearning.mx has been \
written by a newer version of DumpSave and cannot be loaded" ... anybody else seen something like this?
 
5:57 PM
@MartinJohnHadley seems like an incorrect version requirement in the paclet, until it's fixed, perhaps try using 10.1.0
 
@ilian I've discovered I do HAVE a license for 10.1.0 but contending with user.wolfram.com download speeds now. I didn't see anybody else ask on MMA.SE hence the sky is falling resort to chat, thanks for replying
 
6:58 PM
how can I extract 29 from SplineFunction[", Cubic, ", ", {0., 29.}, ", ", "<>", "]
that is a result of sp1 = SplineFit[data1, Cubic]
 
7:10 PM
…you really still want to use that old function?
Anyway, try sp1[[2, -1]].
 
8:02 PM
Growing randomly oriented lines from random points, at random speed until they meet other lines or edges...
 
 
3 hours later…
10:44 PM
@Guesswhoitis. I am playing with many things. I just wanted to play with this one for awhile ...ok I will try that
 

« first day (1217 days earlier)      last day (3273 days later) »