Which Spheres of Might talents give a Vector attacks through Kinetic Overload?

The vector symbiat archetype, from Champions of the Spheres, has the ability Kinetic Overload, which reads, in part:

When a Brute, Scoundrel, or Wrestling talent would grant the vector an attack against a target within his telekinesis range as the result of performing a maneuver [emphasis mine], he may choose to make a ranged attack roll to pummel his target in place of the attack, dealing 1d6 + his casting ability modifier bludgeoning damage. This damage increases by 1d6 at 3rd level and every two levels thereafter and counts as magic.

My question is which martial talents from these three spheres actually grant these attacks? Some seem to obviously grant the attack (Scoundrel’s Mug, Wrestling’s Chink in the Armor), and others probably not (Wrestling’s Slip and Strike), but what about an ability such as Wrestling’s Piledriver?

When you successfully maintain a grapple against a creature you have already pinned, instead of one of the options normally available when you maintain a grapple, you may lift them over your head and smash them into the ground, automatically threatening a critical hit with your unarmed strike and rolling to confirm as normal. If the critical threat confirms successfully, the creature must make a successful Fortitude save or be staggered for 1 round. Use of this talent breaks your grapple on the creature. At +10 base attack bonus, the target is dazed for 1 round instead.

Does this fulfill the twin parts of Kinetic Overload, namely, "making an attack" (it’s automatically threatening a critical hit; no attack roll is being made, but a confirmation roll is called for), and "as the result of performing a maneuver" (it’s an option upon maintaining a grapple)? Does Kinetic Overload’s option to make the attack with telekinetic force override Piledriver’s requirement that the attack be made with an unarmed strike?

Piledriver’s the most confusing example I’ve found in my readings, but I’d like to see either a specific set of tests (does it have to be an attack roll, does it have to allow any weapon to be used with it, etc.) or a full list of all talents that grant an attack that Kinetic Overload can replace this way (probably no more than a dozen unless it’s a lot more generally applicable than I’m understanding it to be). I’m also working under the understanding that the attacks made as part of shove, marked target, and snag do not qualify, since they’re handled in their own paragraph of Kinetic Overload.

Poisson GeneralizedLinearModelFit with log link, first argument not a vector, matrix or list

Question:

I’m trying to plot a graph for an exponential decay for a radioactivity experiment, so model is y=Ae^(-kt). Cross-Validated SE, suggested trying a Poisson GLM with a log link fit, and then to output mean deviance for goodness of fit. I’ve tried doing this but am getting the error:

GeneralizedLinearModelFit::notdata: The first argument is not a vector,  matrix, or a list containing a design matrix and response vector. 

And admittedly, I don’t really understand the documentation for it. And am unsure how to implement the show mean residuals part of this. The documentation shows how to output all of the deviance residuals, but not the mean of them directly.

Data

dataHist5 = {{Around[16.5, 1.5],     Around[77.8, 8.8]}, {Around[34.5, 1.5],     Around[60.5, 8.0]}, {Around[52.5, 1.5],     Around[63.8, 8.0]}, {Around[106.5, 1.5],     Around[42.4, 6.5]}, {Around[124.5, 1.5],     Around[41.7, 6.5]}, {Around[142.5, 1.5],     Around[14.6, 3.8]}, {Around[160.5, 1.5],     Around[33.9, 5.8]}, {Around[178.5, 1.5],     Around[29.4, 5.4]}, {Around[196.5, 1.5],     Around[33.5, 5.8]}, {Around[214.5, 1.5],     Around[30.9, 5.6]}, {Around[232.5, 1.5],     Around[31.1, 5.8]}, {Around[250.5, 1.5],     Around[21.5, 4.6]}, {Around[268.5, 1.5],     Around[4.3, 2.1]}, {Around[286.5, 1.5],     Around[6.4, 2.5]}, {Around[322.5, 1.5],     Around[7.5, 2.7]}, {Around[340.5, 1.5],     Around[4.5, 2.1]}, {Around[358.5, 1.5],     Around[11., 3.3]}, {Around[376.5, 1.5],     Around[14.0, 3.7]}, {Around[394.5, 1.5],     Around[14.0, 3.7]}, {Around[466.5, 1.5],     Around[0.6, 0.7]}, {Around[502.5, 1.5],     Around[2.2, 1.5]}, {Around[520.5, 1.5],     Around[9.4, 3.1]}, {Around[538.5, 1.5],     Around[4.1, 2.0]}, {Around[646.5, 1.5],     Around[2.2, 1.5]}, {Around[682.5, 1.5], Around[0.6, 0.7]}} 

Code, so far:

glm = GeneralizedLinearModelFit[dataHist5, x, x,     ExponentialFamily -> "Poisson"] // Normal Show[ListPlot[dataHist5, Plot[glm[x]]] 

I think I’m missing an argument in Plot[glm[x]]], but not sure what.

Vector Erase Access Violation

I am getting an Access Violation on erasing the vector in the below code. I tried to see where exactly the exception occurred in erase function of vector.h and could identify that _Move throws an access violation. Could you please help me how can I resolve this issue.

STDMETHODIMP SomeFunction(…) { vector<shared_ptr> f_Commands;

vector<shared_ptr >::iterator it = g_commands.begin();

while (it != g_commands.end()) {     if (SpecificConditionIsTrue)     {         it++;         continue;     }      f_Commands.push_back(*it);     it = g_commands.erase(it); }  finishedCommands.clear(); return S_OK; 

} class ATL_NO_VTABLE IRsi { protected:
vector<shared_ptr > g_commands; }; Exception at "_Move" call in vector

iterator erase(const_iterator _Where)     {   // erase element at where     _Move(_VIPTR(_Where) + 1, this->_Mylast,         _VIPTR(_Where));     _Destroy(this->_Mylast - 1, this->_Mylast);     --this->_Mylast;     return (_Make_iter(_Where));     } 

How to add the vector symbol on a letter?

Ho to add the vector symbol on a letter like this: $ \vec{r}$ ?

Consider the following code:

k0 = Graphics[{Text[      Style["\!\(\*SubscriptBox[\(K\), \(0\)]\)", 12], {0.5, -0.05}],      Thick, Arrow[{{0, 0}, {1, 0}}]}]; k1 = Graphics[{Text[      Style["\!\(\*SubscriptBox[\(K\), \(0\)]\)-q", 12], {0.5, 0.2}],      Thick, Arrow[{{0, 0}, {0.8, 0.2}}]}]; q = Graphics[{Text[Style["q", 12], {0.9, 0.15}], Thick,      Arrow[{{0.8, 0.2}, {1, 0}}]}]; l = Graphics[{Text[Style["\[Theta]", 12], {0.2, 0.03}], Thick,      Line[{{0, 0}, {0.2, 0}}]}]; Show[k0, k1, q, l, Boxed -> False] 

Given a row sum vector and a column sum vector, determine if they can form a boolean matrix

For example, for a boolean matrix of size $ 3×4$ , the row sum vector $ R = (3, 3, 0, 0)$ and the column sum vector $ C = (2, 2, 2)$ form a match because I can construct the boolean matrix:

$ $ \begin{matrix} & \begin{bmatrix} 1 & 1 & 0 & 0\ 1 & 1 & 0 & 0\ 1 & 1 & 0 & 0 \end{bmatrix} & \begin{pmatrix} 2\2\2 \end{pmatrix} = C \ R = &\begin{pmatrix} 2 & 2 & 0 & 0 \end{pmatrix} \end{matrix} $ $

However, the column vector $ C’ = (4, 1, 1)$ doesn’t form a match with $ R$ .

So given two vectors whose values are sorted in descending order $ R_{1, w}$ and $ C_{h, 1}$ , and whose accumulated sum is the same, $ T = \sum_jR[1, j] = \sum_iC[i, 1]$ , how can I polynomically check if $ R$ and $ C$ form a matching because I can form a matrix $ M_{h,w}$ having $ R$ and $ C$ as row and column sum vectors?

More specifically, in case it can help to make the check algorithm faster, in my specific case, R and C has the following properties:

  • $ h \leq w$
  • The number of positive values of $ R$ and $ C$ is $ > w$ . For example, $ R$ , in the example, has two positive values and $ C$ has three positive values, and it happens that $ 2 + 3 > w = 4$ .

How to compute a vector V when N points are given and V satisfies given properties

We are given N points P1,P2,…,PN in a 2D plane(All points are distinct and N is as large as 10^5). For each valid i, the coordinates of the point Pi are (xi,yi). Help me to find a vector V = (a, b) ( where |a|, |b| <= 1e9) such that the following holds:

For each i (1 ≤ i ≤ N), let Si= dot(V, G(Pi, Pi+1)). lets assume PN+1=P1. where G(v1, v2) = ((v2(x) – v1(x)), (v2(y) – v1(y)) and dot(V1, V2) denotes dot product of two vectors

How to choose V such that It is possible to find two integers l and r (1 ≤ l ≤ r ≤ N) such that:

Si < 0 if(i <= r and i >= l) and Si > 0 otherwise

(or)

Si > 0 if(i <= r and i >= l) and Si < 0 otherwise

I need to know if there is a way of choosing vector (a, b) to satisfy the above conditions(If the solution is possible)

find the vector v

Chef John is given N points P1,P2,…,PN in a plane. For each valid i, the coordinates of the point Pi are (xi,yi). Help him find a vector v→=(xv,yv) such that the following holds:

For each i (1≤i≤N), let Si=v→⋅PiPi+1. Here, we define Pn+1=P1. The coordinates xv and yv are integers and |xv|,|yv|≤2⋅109. It is possible to find three integers w, l and r (1≤l≤r≤N) such that: For each i (l≤i≤r), Siw>0. For each other valid i, Siw<0. If there are multiple solutions, you may find any one. If there are no solutions, let’s define xv=yv=0. (Note that the vector v→=(0,0) cannot be a valid solution.)

calculate the flux of a vector field through a surface

How to calculate the flux of a vector field through a surface in mathematica? I’ve this field:

F = (x, x^2 * y, y^2 * z)  

and this surface:

S = { (x,y,z) ∈ R^3 | 2 * Sqrt[x^2+y^2] <= z <= 1 + x^2 + y^2} 

So, I’m trying:

region = ImplicitRegion[2 * Sqrt[x^2+y^2] <= z <= 1 + x^2 + y^2, {x, y, z}];  Integrate[#, {x,y,z} ∈ region]& /@ ({x, x^2 * y, y^2 * z} . {x, y, z}) 

I expect Pi/30 as a result, but it comes out "Infinity"…

Using slot and application to variable length vector

I have a list of 2D coordinates with a maximum length of 3, e.g.

peakdatAB {{1007.81, 8.64842}, {1008.38, 8.19264}} 

I need to generate something like this

({PointSize[0.01], Blue, Point[#1], Red, Point[#2], Black, Point[#3]}) & @@ peakdatAB 

but here the problem is the variable length of peakdatAB as when there is say no third point, it returns an error. How can I fix this?

Solving integral involving absolute value of a vector

I am trying to integrate the following in mathematica:
$ \int_0^r \frac{exp(-k_d(|\vec{r}-\vec{r_j}|+|\vec{r}-\vec{r_i}|)}{|\vec{r}-\vec{r_j}|\times|\vec{r}-\vec{r_i}|}r^2dr$ .
I have first defined, the following functions,
$ \vec p(x,y,z)= (x-x_j)\hat i + (y-y_j)\hat j+(z-z_j)\hat k$
Similarly,
$ \vec q(x,y,z)= (x-x_i)\hat i + (y-y_i)\hat j+(z-z_i)\hat k$ .
And,
$ \vec r(x,y,z)=x\hat i + y\hat j+z\hat k $
Then I clicked the integration symbol in the classroom assistant panel and typed the integrand in the $ expr$ portion. While typing this, I have used $ Abs$ to take modulus of the functions $ \vec p(x,y,z)$ and $ \vec q(x,y,z)$ . I have included the limits as $ 0$ to $ Abs(r)$ and the $ var$ as $ r$ in the integration symbol. But when I press( Shift + Enter ) no output value is shown . Can anyone tell me where I have made mistake ?