Wolfram Alpha: Simple Arithmetic with named constants replacement

2.1k Views Asked by At

I want to verify an equation I implemented in a computer programming language using WA. For example:

$\frac{s^2}{((s+w_0)(s+w_1))}$

And specify values for $s, w_0,$ and $w_1$.

I have tried:

$\frac{s^2}{((s+w_0)(s+w_1))}$ where $s=2,w_0=4,w_1=8$

I would expect the answer to be $2/30$. But WA is doing something else.

The actual equation and constants are much more complex, and this feels like a slam dunk for WA if I use the correct syntax.

Link to wolframalpha

1

There are 1 best solutions below

0
On BEST ANSWER

Try this. Usually you need to use different expressions for the variables in W\A as it thinks $s$ is something else, whereas $x$ is often used to solve equations etc.