I am not a mathematician but I think Mr. Mathologer made a mistake in his presentation of the last correction term
1/(N+1/(4*N+4/(N+9/N))) it should be 1/(N+1/(4*N+4/(N+9/4/N)))
with N=10 we have
Pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 - 4/19 = 44257352/14549535 = 3 ...
Search found 1315 matches
- Tue Jun 03, 2025 11:47 am
- Forum: Off Topic
- Topic: Another to alternative from the theory of PI
- Replies: 8
- Views: 1518
- Mon Jun 02, 2025 12:37 pm
- Forum: Off Topic
- Topic: Another to alternative from the theory of PI
- Replies: 8
- Views: 1518
Re: Another to alternative from the theory of PI
Pi is an interesting number, recently I watched this Mathtologer video about the Powell's Pi paradox https://youtu.be/ypxKzWi-Bwg?si=JpGYCbrGyO2vnzGh
I think that most people know about this series for Pi, Pi/4 = 1 - 1/3 + 1/5 - 1/7 ..., if you multiply the series by 4 you get Pi = 4 - 4/3 + 4/5 - 4 ...
I think that most people know about this series for Pi, Pi/4 = 1 - 1/3 + 1/5 - 1/7 ..., if you multiply the series by 4 you get Pi = 4 - 4/3 + 4/5 - 4 ...
- Sun May 04, 2025 2:02 am
- Forum: Tricks 'n' Tips
- Topic: A gift of flowers
- Replies: 11
- Views: 1953
Re: A gift of flowers
@AZJIO
Quin is blind, don't think that a video would help
Quin is blind, don't think that a video would help
- Sat Apr 12, 2025 1:34 pm
- Forum: Off Topic
- Topic: PB on Sequoia 15.54 ?
- Replies: 7
- Views: 2367
Re: PB on Sequoia 15.54 ?
I upgraded from Mojave to Sequoia, it's possible that something from Mojave was not purged properly, I did delete the commandlinetools directory and then re-installed it, Xcode I simply upgraded, surely the upgrader should take care of everything, right?
- Thu Apr 10, 2025 10:08 pm
- Forum: Off Topic
- Topic: PB on Sequoia 15.54 ?
- Replies: 7
- Views: 2367
Re: PB on Sequoia 15.54 ?
hi mk-soft, what hardware are you running, Intel or Apple-M ?
I am running on Intel x86_64
I was trying the latest versions, even the beta
macos version 10.15 is Catalina
I am running on Intel x86_64
I was trying the latest versions, even the beta
macos version 10.15 is Catalina
- Thu Apr 10, 2025 1:48 pm
- Forum: Off Topic
- Topic: PB on Sequoia 15.54 ?
- Replies: 7
- Views: 2367
Re: PB on Sequoia 15.54 ?
honestly, Apple is releasing way too many OS versions, it seems that there's a new version every month !
remember when the Pepsi guy was CEO of Apple?
they would churn-out a new mac every week, the consumers were totally confused, of the 10000 mac models, which one do I get?
remember when the Pepsi guy was CEO of Apple?
they would churn-out a new mac every week, the consumers were totally confused, of the 10000 mac models, which one do I get?
- Thu Apr 10, 2025 12:26 pm
- Forum: Off Topic
- Topic: PB on Sequoia 15.54 ?
- Replies: 7
- Views: 2367
PB on Sequoia 15.54 ?
I have the latest macos Sequoia 15.54 installed on an Intel x64 mac and PB won't compile anything, the linker complains something like this (paraphrasing from memory) "PB was built on a newer version 15.15 and is not compatible with version 10.7"
I have the latest xcode and the latest command-line ...
I have the latest xcode and the latest command-line ...
- Thu Feb 06, 2025 7:28 pm
- Forum: Coding Questions
- Topic: Question about inline assembler and C backend.
- Replies: 17
- Views: 3295
Re: Question about inline assembler and C backend.
I don't know of any books or tutorials except for bits and pieces on the web, perhaps some other member knows
this could be useful https://github.com/namantam1/x86-assembly
this could be useful https://github.com/namantam1/x86-assembly
- Thu Feb 06, 2025 6:00 pm
- Forum: Coding Questions
- Topic: Question about inline assembler and C backend.
- Replies: 17
- Views: 3295
Re: Question about inline assembler and C backend.
a slightly more interesting example using the gcc extended inline syntax
Procedure.q fib(ub.l, *f)
If (ub<3)
ProcedureReturn 1
EndIf
; !set_dpfpu();
!asm (
! "mov %[p_f], %%rax;"
! "fldz;"
! "fistl (%%rax);"
! "add $8, %%rax;"
! "fld1;"
! "fistl (%%rax);"
! "add $8, %%rax;"
! "mov ...
Procedure.q fib(ub.l, *f)
If (ub<3)
ProcedureReturn 1
EndIf
; !set_dpfpu();
!asm (
! "mov %[p_f], %%rax;"
! "fldz;"
! "fistl (%%rax);"
! "add $8, %%rax;"
! "fld1;"
! "fistl (%%rax);"
! "add $8, %%rax;"
! "mov ...
- Thu Feb 06, 2025 3:53 pm
- Forum: Coding Questions
- Topic: Question about inline assembler and C backend.
- Replies: 17
- Views: 3295
Re: Question about inline assembler and C backend.
gcc extended asm is a very strange animal, it takes a special kind of mindset to understand it, you can find small examples on the web but it's tricky to adapt to PB
here's an ultra-simple and useless example
Procedure.d get_pi()
Define.d pi
!asm (
! "fldpi\n"
! "fstpl %[v_pi]\n"
! :[v_pi ...
here's an ultra-simple and useless example
Procedure.d get_pi()
Define.d pi
!asm (
! "fldpi\n"
! "fstpl %[v_pi]\n"
! :[v_pi ...
- Thu Feb 06, 2025 2:17 pm
- Forum: Tricks 'n' Tips
- Topic: [PB5.31] GMP 6.0.0a
- Replies: 26
- Views: 20413
Re: [PB5.31] GMP 6.0.0a
hello Michael Vogel, the dlls in the link are x86 and x64 dlls, I am confused as to why you think that they are ARM
- Tue Feb 04, 2025 11:44 am
- Forum: Tricks 'n' Tips
- Topic: [PB5.31] GMP 6.0.0a
- Replies: 26
- Views: 20413
Re: [PB5.31] GMP 6.0.0a
you may download GMP-MPFR
- Wed Jan 29, 2025 2:29 am
- Forum: Feature Requests and Wishlists
- Topic: libxlsxwriter
- Replies: 10
- Views: 3940
Re: libxlsxwriter
I had a look at the libxlsxwriter project, the project builds quickly and without any warnings or errors using msys2
but some of the headers are a bit complex
but some of the headers are a bit complex
- Tue Jan 28, 2025 9:11 pm
- Forum: Feature Requests and Wishlists
- Topic: LUA?
- Replies: 19
- Views: 6977
Re: LUA?
did you know about LuaJIT — a Just-In-Time Compiler for Lua ?
http://luajit.org/luajit.html
http://luajit.org/luajit.html
- Tue Jan 28, 2025 5:23 pm
- Forum: Feature Requests and Wishlists
- Topic: LUA?
- Replies: 19
- Views: 6977
Re: LUA?
...
This sounds easy but here is the catch: for Windows the developer recommends to use the extension (dll) version, but for Linux the recommendation is to use the static lua lib. This is not as easy as it sounds, creating a working static Lua lib is surprisingly hard (for me, on Windows, using it ...