Hi again,

I'd like to extract all unknowns from an equation into a list. Let's say I've got the equation

250*a+400*b=0

Given that, basically, I'd like to have a command that simply returns {a, b}

Is there something like that?

Thanks!

Hendrik

- Membership
- Editing Pages
- Site Information
- Related Sites

In fact, this can be improved to account for non-integers as well. As a bonus, it's also...

(by Timothy Foster 15 Jul 2018 21:13, posts: 5)

(by Timothy Foster 15 Jul 2018 21:13, posts: 5)

I think I see why it works now:
For some L₁, say L₁={4,5,7,0,3} , cumSum(L₁)={4,9,16,16,19} where...

(by kg583 15 Jul 2018 17:30, posts: 5)

(by kg583 15 Jul 2018 17:30, posts: 5)

Yeah. I'm just not good enough with algorithms to see how that code works, but It does

(by Trenly 15 Jul 2018 17:22, posts: 5)

(by Trenly 15 Jul 2018 17:22, posts: 5)

Just ran some tests and it looks like it does indeed do the same partial probability...

(by kg583 15 Jul 2018 16:26, posts: 5)

(by kg583 15 Jul 2018 16:26, posts: 5)

Does this do the same thing?
1+sum(cumSum(Ans)<randInt(1,sum(Ans
Ans is the list.

(by Timothy Foster 15 Jul 2018 12:48, posts: 5)

(by Timothy Foster 15 Jul 2018 12:48, posts: 5)

Oh, I forgot about that. The original version I had was this:
:not(min(A-B,0
which would...

(by kg583 13 Jul 2018 21:44, posts: 7)

(by kg583 13 Jul 2018 21:44, posts: 7)

Recent Threads

(Started 16 Jul 2018 06:53,
Posts: 0)

(Started 15 Jul 2018 12:32,
Posts: 5)

(Started 13 Jul 2018 04:37,
Posts: 7)

(Started 12 Jul 2018 13:51,
Posts: 5)

(Started 09 Jul 2018 20:46,
Posts: 6)

(Started 08 Jul 2018 23:12,
Posts: 3)

(Started 08 Jul 2018 22:59,
Posts: 3)

(Started 08 Jul 2018 21:21,
Posts: 3)

(Started 07 Jul 2018 23:32,
Posts: 2)

(Started 07 Jul 2018 17:57,
Posts: 2)

(Started 07 Jul 2018 16:10,
Posts: 2)

(Started 06 Jul 2018 07:46,
Posts: 5)

**CHAR**- → ⸤ ⁻
- × ÷ ±
- √ Σ ≠
- ≥ ≤ π
- Δ χ ▶
- ֿ¹ ² ³
- L₁ L₂ L₃
- L₄ L₅ L₆
- ≅ ℕ º
- θ ∠ ∞
- ♦ ⇧ ∫
- ∏ ©

How to extract unknowns from an equation?