This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author klankschap
Recipients klankschap, steven.daprano, xtreak
Date 2018-09-12.18:58:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <86D78733-0BE2-46D1-AE1F-86F202657D32@klankschap.nl>
In-reply-to <20180912181855.GA19437@ando.pearwood.info>
Content
I know it has nothing todo with linspace.
But there seems to be a link to using numpy generated variables and not using them.
From a naive point of view i’d expect the same results.
But it does not.
There is two functions, and two variables.
And from the four combinations, only one gives a non NAN error.

> On 12 Sep 2018, at 20:19, Steven D'Aprano <report@bugs.python.org> wrote:
> 
> 
> Steven D'Aprano <steve+python@pearwood.info> added the comment:
> 
>> Well, the thing is that i pass two (apparent) identical values into the same function,
> 
> Even if they have the same *numeric* value, they aren't the same kind of
> value, and they aren't the same function.
> 
> One is <type 'numpy.float64'> and the other is <class 'float'>. When you
> call ** (exponentiation), that calls two different methods. One raises
> a warning and returns NAN, the other converts to complex.
> 
> This has nothing to do with linspace. See my simplifed example code
> which doesn't use it.
> 
> ----------
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue34645>
> _______________________________________
History
Date User Action Args
2018-09-12 18:58:20klankschapsetrecipients: + klankschap, steven.daprano, xtreak
2018-09-12 18:58:20klankschaplinkissue34645 messages
2018-09-12 18:58:20klankschapcreate