User Profile

Collapse

Profile Sidebar

Collapse
Dunnomuch
Dunnomuch
Last Activity: May 17 '10, 07:28 AM
Joined: May 10 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Dunnomuch
    replied to Plotting a matrix
    Hi,

    The matrix I mean looks like this:

    Code:
    class Matrix(object): 
        def __init__(self, kolommen, rijen): 
            self.kolommen = kolommen 
            self.rijen = rijen 
            # Creeer matrix met nullen
            self.matrix = [] 
            for i in range(rijen): 
                ea_rijen = [] 
                for j in range(kolommen): 
                    ea_rijen.append(0)
    ...
    See more | Go to post

    Leave a comment:


  • Dunnomuch
    started a topic Plotting a matrix

    Plotting a matrix

    Hi,

    I've got a little problem in plotting a matrix that is build up in a class. Cause I've build it up in a class, I can't just plot the different arrays out of which it would consist when you build it up like this:
    [[...],[...], ... , [...]]

    I've tried to plot it by making a loop that consistently plots the rows which have f1, f2 and t in it (Respectively being the first function, the second function and the...
    See more | Go to post

  • I'm a little confused... You don't seem to use the Forward Euler methode...?
    See more | Go to post

    Leave a comment:


  • N-dimensional step

    An N-dimensional ODE has N equasions:
    df1/dt = f1(x1, x2, x3, ..., xN, t)
    df2/dt = f2(x1, x2, x3, ..., xN, t)
    ...
    dfn/dt = fn(x1, x2, x3, ..., xN, t)

    The solution should be N different functions and those should come in the matrix. Afterwards, it should be possible to plot those N functions. But don't get me wrong: We won't really find functions, but functionvalues in a certain interval [0, T]....
    See more | Go to post

    Leave a comment:


  • Dunnomuch
    started a topic Forward Euler method for N-dimensional ODE

    Forward Euler method for N-dimensional ODE

    Hi,

    I'm trying to come up with a FWE method for an N-dimansional ODE. So far, I was able to turn the one dimensional solution into a two dimensional one:

    Code:
    from scitools.std import *
    import numpy as numpy
    v0=0
    K=3 
    n=10
    dt=0.1
    t0=0
    
    def f1(u1, u2, u3, t):
        return u1
    
    def f2(u1, u2, u3, t):
        return u2
    
    def f3(u1,
    ...
    See more | Go to post
    Last edited by Dunnomuch; May 10 '10, 10:17 AM. Reason: faulth in syntax
No activity results to display
Show More
Working...