General Discussion

• # help fsolve (numpy)posted

alex, pythonista does not, as far as i can tell, come with fsolve.

perhaps you can elaborate about what is failing. If you plug your answer back into EOS, does it return something near zero? If so, you have found your root. If not, is it possible that a real root does not exist?

What are you using for x0, and x2 in the code you posted? One problem you may be having: x=0 is a root of your above equation for all y, and in fact is the only root unless x2 is less than -0.8333. Perhaps this is nit the function you meant to be finding roots of (missing parenthesis, etc?)

It might help you to plot these functions vs x.

import matplotlib.pyplot as plt import numpy as np x2=-1 #roots only exist if x2 is negative, and <-0.83 def EOS(x,y) : e11=1.00 ; e22=0.40 ; e12=0.60 return np.log(1.-x)+x**2*(e22*y+ e11*(1-y) + 2*x2*(1-y)*e12) for i in np.arange(1,99,1) : y=i*0.01 #ans[i]=fsolve(lambda x: EOS(x,y),x0) x=np.linspace(-5,1,100) plt.plot(x,EOS(x,y)) plt.show()

• # My latest projectposted

@Leva7 Yeah, that'd have to be a change in vis.js, I think. I don't really have control over that beyond filing an issue on the vis.js repo. Thanks anyway.

• # How to get text editor in full screen ?posted

Tap this button, then swipe right to hide the console panel:

• # Apple's fight for our civil liberties.posted

For my 2 cents worth, I think we have to conduct ourselves online as if there are back doors etc. not saying they shouldn't keep fighting. But for me, I will always assume someone is wa ting. I have nothing to hide mind you.
But it blows my mind when I see people using 3rd party keyboards looking into there backing site or any password protected site.
Also how so may people are oblivious to all the cameras around them. A lot of people assume these cameras are the old crap low res grainy security cameras. And while they may well be, they also maybe state of the art 1080p cameras with thermal,and night vision and very high optical zooms. Meaning it's very easy for them to zoom in on you and your device and see exactly what you are entering. Whilst, they have shown the Touch ID is not the safest thing in the world, I love it because I am not entering passwords in public places,even just my screen lock.
Anyway, fruadsters are getting more and more tricky.

• # Licensesposted

I use Apache v2.0 instead of MIT because Apache provides an express grant of patent rights from contributors to users. See the front page of http://choosealicense.com

• # Posix Path Fails - Pythonista 3.0 pythonista3 bug • posted

This seems more like a bug in StaSh to me. Somewhere in stash/bin/tar.py, os.path.abspath() is called with an argument of None. From briefly looking at the code, I'm guessing the -f/--file argument wasn't passed to the tar command as it expected.

• # Happy Leap Day...posted

@ccc , lol girls can propose to you today. I am scared π±
I am sure a lot of younger guys still don't know why excel use to have a lotus date compatibility mode. I know exactly why...

• # My Websiteposted

I've added a bunch more content. Up to 12 project cards, and I've added a header with some info and a footer with credits.

There's also a few fancy things like

Navbar automatically pins itself when you scroll past it There's a super useful live count of how old I am to 8 decimal places.
• # Profiles?posted

That sounds right. Thanks

• # Spam blockageposted

Reporting spam above ^^^ :)

• # Annoying iOS 9 fn key behavior bluetooth keyboard • posted

I have this behavior too. I don't really care, though, I almost never use forward delete ever on any device.

• # attrs defined above the __init__ in a class (sorry Python question)posted

iirc, objects whose names start with double underscore do not get cleared -- though any custom modules they depend on might be., unless those custom modules are in site-packages.

• # Using continue with yield generators yield • posted

@Phuket2
Just think of using print instead of yield. Anything that gets printed would be yielded. If you wanted to skip printing an item you would use

if some_condition: print item

or alternatively

if some_skip_condition: continue print item

now replace print with yield and you have a generator. I don't think there are any restrictions on the type of control structures you use in a generator, only that your logic must be correct in the first place. If you had tried something like that and it didn't work, it wouldn't have worked if you used print instead of yield!

• # Best practice using github file handling lego mindstorms github sync • posted

Thank you @dgelessus, i will try your pointers and report back.

@Webmaster4o I haven't created anything that fancy. I recently read the βThe Art of LEGO MINDSTORMS EV3 Programming (Full Color)β book by Terry Griffin and tried to recreate the PID controlled line follower (chapter 19) in Python instead of in the Mindstorms environment. I have uploaded the programs and a more detailed description in my new github account.

• # IOS Multitasking on iPadposted

@ccc this is SlideOver. We were talking about full multitasking with a 3:1 ratio. SlideOver is not ideal, because one cannot type code without closing the book.

• # Why is my profile picture upside down?posted

@Webmaster4o , lol... You still win. Still young. I wish I was young guy. But please enjoy every moment of being young. I Am ok for being an old guy. But the brain, not so sharp anymore π± But I didn't have your education which I really envy.
But regardless, it's been a pleasure to see how fast you have flourished here. When you are rich and famous I hope you remember us ππ€

Internal error.

Oops! Looks like something went wrong!