# Setting up differential equations

**URL:** https://discourse.julialang.org/t/setting-up-differential-equations/62120
**Category:** New to Julia
**Tags:** question, diffeq
**Created:** [May 31, 2021, 9:08am UTC](https://discourse.julialang.org/t/setting-up-differential-equations/62120 "2021-05-31T09:08:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)
#### Post date: [May 31, 2021, 10:27am UTC](https://discourse.julialang.org/t/setting-up-differential-equations/62120/2 "2021-05-31T10:27:15Z")

</div>

> [@Deepa](#):
>
> `(1./scale).*(mat1*x + mat2*x)`

Do you mean `(mat1+mat2)*x./scale` ? Try it in the REPL with 2 by 2 matrices and a simple x vector to see if that’s what you want, before throwing it into the `ODEProblem`. 🤔

You can also play around with `(one(10)./scale)` and similar.

---

_[View the full topic](https://discourse.julialang.org/t/setting-up-differential-equations/62120)._
