## How to link value pairs to formula

I got this formula rij= ri/2+ dri+ rj/2+ drj+ kij+ 10Log[ss/(1 lij)]

The values for Ri, Rj, Kij are frequency-dependent, so there are 21 different values ( 1 for each frequency ) How do I tell Mathematica the values so I don’t have to rewrite the calculation every time?

Can you help me get a Table, where I just Fill In my Values so that they connect to the Formula. Thanks.

## Best way to implement a to hit formula based on provided stats

There are a ton of these questions, some can get really mathy – which is fine, but I am looking for a simple way based on a few stats, I thought I came up with one, so I will share it in hopes that someone can tell me where I might be going wrong.

The goal is that the monster should, depending on how powerful you are, be able to have a chance to hit. Weaker monsters instant death to them, harder monsters possible instant death to you.

I also realize these are hard questions to answer because it is game dependant. I hope I have provided enough info for you to give some guidance.

Lets get the stats out the way:

• To Hit Stat (Character): base stat / modded stat (ie: 12/100)
• Accuracy / Dodge (Character): between 0.0001 – 1.0 (0.01% – 100% (can be higher))
• Enemy Dodge / Enemy Accuracy: Between 0.0001 – 0.85 (0.01% – 85%)
• To Hit (Monster): Dex / 10,000 – where 10k is 1k higher then max stats (9k) for monsters
• Monsters do have a max level (if that will help)

When a character levels they get 1 point into their base stat – which is then used in conjunction with all equipment and so on to increase the modded stat additively (base stat + base stat * bonuses = modded stat)

Characters can cap out (Modded stat) Higher then 10K which might pose issues for a to hit formula. How ever at that point I would assume your skills are 100% as max level is 1000 – thus you should always be hitting

``(stat / modded stat) + (((accuracy - dodge) / accuracy) * 100) ``

Some assumptions I made based on how I built the system:

• Accuracy at 100%+ means you always hit
• Dodge at 100%+ Means you always dodge.
• Enemies dodge and accuracy do not go above 85% (they can start at 0.01% for both)
• Monsters always use their dex (ie 12/max cap), monsters do not have modded stats
• All Monster stats are the same, IE: if Dex is 9k all other stats, such as str, int, chr … are also 9k

There are some issues with this formula though:

• If stat and stat mod are the same (no equipment or bonus for character only) I chose to use the stat (as opposed to stat / modded stat) so, if 11 === 11 – well, use 11. For the character (see below for example)
• Because a character might never train (I don’t know why) Accuracy or Dodge their bonus might be 0.01% (there are equipment bonuses that can increase this to a max of 30% across all equipment with another 5% for boons (135% max) how ever in the following example we will assume you have nothing)

So:

``   Level 1 (Character) = (11) + ((0.0001 - 0.0001) / 0.001) * 100) = 11 // Nothing equipped no bonuses     vs.     Rat (Enemy) = (8/10000) + ((0.0001 - 0.0001) / 0.001) * 100) = 0.0008 ``

This doesn’t seem right, so the player has a 11% to hit and the rat has a 0.0008% chance to hit?

Character : 100 – 11 = 82% chance to hit Rate : 100 – 0.0008 = 99.9992% chance to hit?

This doesn’t make sense to me. For context here’s a high level monster with a character that has a 95% dodge chance:

`` (9000/10000) + ((0.75 - 0.95) / 0.75) * 100) = -25.7666666667 ``

That does not look right.

Posted on Categories Free Proxy

## How can I write a formula for this houseruled roll in AnyDice?

So here it goes:

1. The roll is a pool of dice of d6s, d8s, and d10s. The minimum dice pool is 1d6 and the maximum dice pool is 10 dice. It could be 2d6 + 2d8 + 1d10, for example.
2. Rolling 5+ is a success.
3. A number of successes is necessary equal or higher than the Difficulty (that ranges from 1 to 10) to have a successful check.
4. The maximum value of a die explodes: 6 in a d6, 8 in a d8, 10 in a d10. But there’s a limit by the character’s Protagonism (ranges 1 to 10). It’s like the level of the character, so one with Protagonism 3 could not explode any dice more than 3 times. The eventual 4th time counts only as a normal success, even if it has the maximum value again.

I see it can be very difficult to do this, so I thank anyone who may come up with something. Thanks so much!

Posted on Categories Best Proxies

## Is there an easy formula for multiple saving throws?

My issue: I am playing a druid and if I do something like summon 8 wolves I can end up forcing the DM into 8 saving throws each turn.

I mitigate this on my end with an app to roll lots of dice, I pre-roll my attacks and damage and all that, so my turns are quick, but the DM mentioned after the game that he doesn’t like having to roll so many saving throws, and worries it might slow things down.

Is there a reasonably simple formula to convert multiple saving throws into a single dice roll?

Example: 8 DC12 Strength saving throws becomes a single DC18 save – the outcome being that the target has a similar % chance of overall success, but with less dice.

My expectation is that given there are various throws of various difficulty, and each creature will have a different bonus that what I am asking for simply can’t be done, but I don’t have the maths to prove that.

What I am not looking for are ways to convince the DM that it isn’t too bad (It is no different than a well placed AoE for example), or to not summon so many wolves, spread the attacks around, or that I don’t get to pick what I summon, or any of the other usual advice about saving table time. My turns take seconds because I plan in advance, and I don’t think the DM wants to change what they do (IE: no using a dice roller for them), so this is just me looking to answer this one question.

## Trigonometric Simplification and Double Angle Formula

I am trying to achieve the formula `hbar / 2 * cos(wt) * sin(theta)`. However, my Mathematica expression doesn’t seem to simplify the half/double angle formulas. I am wondering how I could refine my approach. Here’s my code:

``Sz[J_] := \[HBar]*   Table[ KroneckerDelta[i, j]*(J + 1 - i), {i, 2*J + 1}, {j, 2*J + 1}] Sx[J_] := Chop[\[HBar]*.5*    Table[(KroneckerDelta[i, j + 1] +         KroneckerDelta[i + 1, j])*((J + 1)*(i + j - 1) - i*j)^.5, {i,       2*J + 1}, {j, 2*J + 1}]] Sy[J_] := \[HBar]*   Table[I/2*(KroneckerDelta[i, j + 1] -        KroneckerDelta[i + 1, j])*((J + 1)*(i + j - 1) - i*j)^.5, {i,      2*J + 1}, {j, 2*J + 1}] Sn[J_, theta_, phi_] :=   Simplify[Sx[J]*Sin[theta]*Cos[phi] + Sy[J]*Sin[theta]*Sin[phi] +     Sz[J]*Cos[theta],    Assumptions -> {0 <= theta <= Pi, 0 <= phi < 2*Pi,      Element[theta, Reals]}] U[H_, t_] :=   Simplify[Chop[ComplexExpand[MatrixExp[-I*H*t/\[HBar]]]],    Assumptions -> Element[t, Reals]]  {nvals, nvecs} = Eigensystem[Sn[.5, theta, 0]]; psi = Simplify[U[w Sz[.5], t].nvecs[],     Assumptions -> Element[w, Reals]]; Simplify[ComplexExpand[Conjugate[psi].Sx[.5].psi]] ``

And here’s my output:

``(\[HBar] Sin[   theta] ((-2. - 2. Cos[theta]) Cos[(0.5 + 0. I) t w]^2 + (2. +        2. Cos[theta]) Sin[(0.5 + 0. I) t w]^2))/(-1. + Cos[2 theta]) ``

## Is there anything preventing a first-level alchemist from buying a sixth-level alchemical formula?

The alchemist starts at level 1 with eight first-level alchemical formulae – two from their specialisation, four from their alchemical crafting feat, and two for free because they’re alchemists.

Alchemy alchemy alchemy.

But when I looked up purchasing formulae on page 293 of the CRB, I found that a sixth-level alchemical formula is only 13gp.

If a level 1 alchemist were to spend 13 of the 15 gold pieces they start with on such a formula, would they immediately be able to craft it and use it?

Alternatively, given that moderate versions of bombs are only level 3 formulae, could the alchemist purchase these formulae and start using them immediately with their infused reagents and quick alchemy, skipping the lesser versions entirely?

Posted on Categories Best Proxies

## Why does the formula floor((i-1)/2) find the parent node in a binary heap?

I learned that when you have a binary heap represented as a vector / list / array with indicies [0, 1, 2, 3, 4, 5, 6, 7, 8, …] the index of the parent of element at index i can be found with parent index = floor((i-1)/2)

I have tried to explain why it works. Can anyone help me verify this?

Took reference from Why does the formula 2n + 1 find the child node in a binary heap? thanks to @Giulio

Posted on Categories proxies

## Edit Woocommerce Pricing Formula

I need to edit the way woocommerce calculates the price on a client’s website. It’s a site that allows customers to purchase products on credit by choosing the number of months they wish to make payment. However, in the cart, if the customer selects 2 or more of the quantity of the product they wish to purchase, the total amount of the products appears in the "Price" column of the cart instead of the unit price of that product. I would like to edit it such that the unit price shows in the price column no matter the quantity selected and then the total amount can then show in the total and subtotal columns. I have tried editing the woocommerce cart file and a couple of others but nothing seems to work. This is the site: www.appliancepointgh.com Any help on how i can do this would be deeply appreciated.

Posted on Categories anonymous proxy

## Unarmored Movement Formula

I’m trying to plug in an equation for unarmored movement in DiceCloud, so that I don’t have to change the bonus value whenever it changes. i had a formula, but lost it. Does anyone know what the formula is?

## Can alchemists prepare alchemical items without reading their formula book?

The Pathfinder 2 alchemist class can prepare alchemical items if they have the item’s formula in their formula book. However, the class features never explicitly say that the alchemist needs to read the formula book, or have the formula book nearby, when crafting these items during their daily preparations.

You can use this feat to create alchemical items as long as you have the items’ formulas in your formula book.

… choose an alchemical item of your advanced alchemy level or lower that’s in your formula book …

You create a single alchemical item of your advanced alchemy level or lower that’s in your formula book…

The items you can select depend on your research field and must be in your formula book.

As a point of comparison, the wizard class explicitly requires that wizards must study their spellbook daily in order to prepare spells. So a wizard can’t feasibly go adventuring without it.

At 1st level, you can prepare up to two 1st-level spells and five cantrips each morning from the spells in your spellbook…