Richard in Reading on Wed, 08 May 2013 18:40:18 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Extracting numbers from strings
|
- To: pari-users@pari.math.u-bordeaux1.fr
- Subject: Extracting numbers from strings
- From: Richard in Reading <richard_in_reading@yahoo.co.uk>
- Date: Wed, 8 May 2013 17:40:02 +0100 (BST)
- Delivery-date: Wed, 08 May 2013 18:40:18 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1368031202; bh=5+mucNJWJ1yF+sJnWEZXIQnG6rqjT9oApwUM/O+Qb0Q=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ahI8kbazB5pnb5WcN8qy78VqyuNyz6zXl1DQeuEg0vSykja2jWEC/EKxXpXtqaJlo45PfhNblRQz+YEa9yWTDmTVT4SO6zG+fJCGXIlcV5X4u5MJtBgOcKdWauXcKtyOvXDCtXftPnhj4XFJFzs5tULmNm3OfHNw6styM1IObCw=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AisspxqPKeieGfSFweQmjAii+A8KL8aZrLTEaERqF9bJ3EEMMH9QHlN8uJR2iXBuI6gHrHjuwvxJ2G1ABz1Wjt+ZOCmtky3NQWB7ae15HmVHQGZ4LR5h0CxrBMtW5wTtjrG6DpriNx8KJWbV2k3dKGFxRoB2hKP7ssM2T8WsBhE=;
I'm using forell to search through elliptic curves and I want to extract the numeric value of the conductor preferably without using ellinit and ellglobalred which make it too slow.
As an example, I'd like to be able to replicate the following
forell(E,1,100,print(E[1]"\t"ellglobalred(ellinit(E[2]))[1]))
11a1 11
11a2 11
11a3 11
14a1 14
14a2 14
just by manipulating E[1] instead of dealing with E[2]. Hopefully this would be faster.
Thanks!
Richard