Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: class for ODE, scipy how to switch from fsolve to newton or newton_krylov
Post: class for ODE, scipy how to switch from fsolve to ...

Hi all I have this class (kindly fixed for me by @scidam thanks again) import numpy as np from scipy.optimize import fsolve , newton_krylov import matplotlib.pyplot as plt class ImpRK4 : def...
drudox Data Science 0 2,344 Aug-16-2018, 05:12 PM
    Thread: Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
Post: RE: Solve a system of non-linear equations in Pyth...

How can obtain the same result using another solver like newton_krylov ??
drudox Data Science 7 22,717 Aug-16-2018, 01:15 PM
    Thread: Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
Post: RE: Solve a system of non-linear equations in Pyth...

Congratulations ! and thank you very much !! you are the best ;)
drudox Data Science 7 22,717 Aug-15-2018, 07:23 AM
    Thread: Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
Post: RE: Solve a system of non-linear equations in Pyth...

Here I report the whole class (I have cut the irrelevant part) in order to be testable for who want to try to give me help ! import numpy as np from scipy.optimize import fsolve , newton_krylov imp...
drudox Data Science 7 22,717 Aug-14-2018, 03:03 PM
    Thread: Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
Post: RE: Solve a system of non-linear equations in Pyth...

yes it is an Implicit Runge Kutta method !! I've already done this ! and actually now my solve methods is this : def solve(self): ''' perform Implicit RK4 scheme ''' ...
drudox Data Science 7 22,717 Aug-14-2018, 07:08 AM
    Thread: Solve a system of non-linear equations in Python (scipy.optimize.fsolve)
Post: Solve a system of non-linear equations in Python (...

I'm trying to solve this system of non linear equations using scipy.optimize.fsolve , I took this from an example in one other post [here][1] my system of equation is the follow : for i in range...
drudox Data Science 7 22,717 Aug-13-2018, 04:44 PM
    Thread: The derivate class dosn't behave like the base when i pass parameter to them
Post: RE: The derivate class dosn't behave like the base...

Indeed : class DefaultPlot(BasePlot) : def __init__(self, figsize,**kwargs): self.params = kwargs print(kwargs)give me {} while def __call__ (self,nrows,ncols,**kwargs): ...
drudox General Coding Help 4 3,165 Aug-05-2018, 06:42 PM
    Thread: The derivate class dosn't behave like the base when i pass parameter to them
Post: RE: The derivate class dosn't behave like the base...

I'm sorry but ..the parameters **{'scheme':'vega'} are given to the __call__ methods of the base class ! right? and why it works if you try to uncomment fig,axs = defaultplot.DefaultPlot(figsize=(9.5,...
drudox General Coding Help 4 3,165 Aug-05-2018, 06:31 PM
    Thread: The derivate class dosn't behave like the base when i pass parameter to them
Post: The derivate class dosn't behave like the base whe...

I have done a class hierarchy for product several plot stile , in which change almost any parameter, just inherit and define a set of parameter for change the default plot .. but I have some problem...
drudox General Coding Help 4 3,165 Aug-05-2018, 06:03 PM
    Thread: matplotlib using times italic fonts
Post: RE: matplotlib using times italic fonts

I've solved , I wrote this line : import matplotlib.font_manager as font_manager font_dirs = ['/my/custom/font/dir', ] font_files = font_manager.findSystemFonts(fontpaths=font_dirs) font_list = font...
drudox General Coding Help 3 5,413 Aug-04-2018, 10:57 AM
    Thread: matplotlib using times italic fonts
Post: RE: matplotlib using times italic fonts

sudo cp /usr/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/Times\ New\ Roman\ Italic.ttf /usr/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/TimesNewRomanItalic.ttfthen I modifi...
drudox General Coding Help 3 5,413 Aug-03-2018, 04:05 PM
    Thread: matplotlib using times italic fonts
Post: matplotlib using times italic fonts

I've download the font 'Times New Roman Italic.ttf' and copied it on /usr/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/Times New Roman Italic.ttfnow , if I run this frame of code here I ...
drudox General Coding Help 3 5,413 Aug-03-2018, 03:37 PM
    Thread: Euler class for solve System of ODE
Post: Euler class for solve System of ODE

Hi all I've defined a python class in order to compute the solution of system of differential eq. Do ding so I define a classes named Rhs (right and side) that should represent the right and side of...
drudox Data Science 0 2,946 Jul-08-2018, 09:31 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020