mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: ismillo
Forum: PARI/GP 2013-08-04, 12:42
Replies: 2,631
Views: 89,381
Posted By ismillo
This is awesome. Work like a charm. Thanks. :D ...

This is awesome. Work like a charm. Thanks. :D


removeTrailingZeros(n)={
n / 10^valuation(n, 10)
};

v2i1d(a)=subst(Pol(a), 'x, 10);

r2i(a)={
Forum: PARI/GP 2013-08-04, 02:06
Replies: 2,631
Views: 89,381
Posted By ismillo
So, about the highlight, I couldn't make it,...

So, about the highlight, I couldn't make it, since it's necessary JSON and I don't know nothing about it.

Now, about the fractional part to integer, I could make this:

r2i(a)={...
Forum: PARI/GP 2013-07-28, 00:32
Replies: 2,631
Views: 89,381
Posted By ismillo
I will try to make gp highlight for Sublime with...

I will try to make gp highlight for Sublime with I succeed I'll post here. :D

It's basically this but, it's ok soon or later I'll get used to it. :D



Didn't work here, I get this error:
...
Forum: PARI/GP 2013-07-27, 22:59
Replies: 2,631
Views: 89,381
Posted By ismillo
I do use Sublime Text. The truth is, my problem...

I do use Sublime Text.
The truth is, my problem isn't highlight syntax, my problem is the lack of freedom in PARI interface. I do like very much see what I'm writing and testing them while I...
Forum: PARI/GP 2013-07-27, 15:24
Replies: 2,631
Views: 89,381
Posted By ismillo
Yeah, I'm doing it quite often actually, but...

Yeah, I'm doing it quite often actually, but instead of creting the file and reading using PARI, I am just creating the code and pasting. Only the functions I'm making PARI read.



I saw your...
Forum: PARI/GP 2013-07-27, 03:42
Replies: 2,631
Views: 89,381
Posted By ismillo
.-. I have several issues with Command...

.-.

I have several issues with Command Prompt interface , such as copy and paste (right-click all time is a lame). Does not show all the code writen before the last hundred lines (up arrow key all...
Forum: PARI/GP 2013-07-26, 22:37
Replies: 2,631
Views: 89,381
Posted By ismillo
Oh, Thanks for the hint, I was wondering why was...

Oh, Thanks for the hint, I was wondering why was returning Vectorsmall(x).

I have a few more questions.

1) Does PARI has a friendly developing interface? I have found "Pari-tty", however, its...
Forum: PARI/GP 2013-07-26, 12:37
Replies: 2,631
Views: 89,381
Posted By ismillo
Rosetta Code is very helpful. Couple weeks ago...

Rosetta Code is very helpful. Couple weeks ago (in the same week the website was down), I was listing all possible useful functions and put them all in a file. :D
Forum: PARI/GP 2013-07-26, 00:08
Replies: 2,631
Views: 89,381
Posted By ismillo
Hm... understood. Soon or later I'll probably...

Hm... understood. Soon or later I'll probably keep reading PARI docs. I was just using what I knew. It's difficult to find good tutorials around the web, you guys and this thread is helping a lot.
...
Forum: PARI/GP 2013-07-25, 23:57
Replies: 2,631
Views: 89,381
Posted By ismillo
I see, now, the 1st function solve the problem in...

I see, now, the 1st function solve the problem in 40 ms, the 2nd in 20 ms.
The two new one solve in 14 ms the 1st, and 13 the 2nd.

"sum(i=1,#w,ispolygonal(cw(w[i]),3))" solves in 3 ms. However...
Forum: PARI/GP 2013-07-25, 23:07
Replies: 2,631
Views: 89,381
Posted By ismillo
Great, this new function is about 50% faster than...

Great, this new function is about 50% faster than the old one. :D



cw(w)={
l=Vec(w);
c=0;
for(a=1,#l,c+=Vecsmall(l[a])[1]-64);c;
}
Forum: PARI/GP 2013-07-25, 10:14
Replies: 2,631
Views: 89,381
Posted By ismillo
Well, while I was sleeping I have found the...

Well, while I was sleeping I have found the solution.

I knew the "Vec(x)" exists, however, I didn't have the slightest idea it could split words into its characters.

Thanks, CRG.

Here's the...
Forum: PARI/GP 2013-07-24, 21:12
Replies: 2,631
Views: 89,381
Posted By ismillo
Sure. I don't know if you ever heard about...

Sure.

I don't know if you ever heard about Project Euler, It's a website about Math problems which is highly recommend use programming languages.

So, there is this problem, you have an array of...
Forum: PARI/GP 2013-07-24, 20:46
Replies: 2,631
Views: 89,381
Posted By ismillo
Well, I'm having an issue with 2 equal letters,...

Well, I'm having an issue with 2 equal letters, I'll keep trying, if can't do it I will try make in C.
:/
Forum: PARI/GP 2013-07-24, 11:43
Replies: 2,631
Views: 89,381
Posted By ismillo
Nice, I didn't knew I could reverse vector with...

Nice, I didn't knew I could reverse vector with function from PARI, so I made my own. :D



This is perfect, I guess. Later I will give it a shot, if I succeed then I notify you guys.
Forum: PARI/GP 2013-07-23, 23:25
Replies: 2,631
Views: 89,381
Posted By ismillo
Awesome, this will help a lot with large...

Awesome, this will help a lot with large palindromics numbers.
I usually compare palindromes making vectors and never knew how I could manipulate the numbers.

Edit:
One last question, how do I...
Forum: PARI/GP 2013-07-23, 11:01
Replies: 2,631
Views: 89,381
Posted By ismillo
Another great help, axn, thank you. I was...

Another great help, axn, thank you.

I was doing some test here, axn is a faster, however, both are excellent and helps a lot.


10041
Forum: PARI/GP 2013-07-22, 14:15
Replies: 2,631
Views: 89,381
Posted By ismillo
Thank you very much, Sir. This will help a lot. ...

Thank you very much, Sir. This will help a lot.
PARI is a great languague for mathematics no doubts, however let's be honest, it's some times so much complicated.

For anyone who has the same...
Forum: PARI/GP 2013-07-22, 00:53
Replies: 2,631
Views: 89,381
Posted By ismillo
Few weeks ago, I started learning PARI, then some...

Few weeks ago, I started learning PARI, then some day, I was needed to make a vector turns into an integer, I know it's possible to make an integer turn into an array using the function "digits(n)",...
Showing results 1 to 19 of 19

 
All times are UTC. The time now is 21:15.


Fri Aug 6 21:15:06 UTC 2021 up 14 days, 15:44, 1 user, load averages: 2.56, 2.52, 2.52

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.