Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline overlord  
#1 Posted : 10 January 2021 20:48:15(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Extension can be install via Plugin Manager in SMath.

At first I had coded my own calculation algorithms which were slow, obviously.
Then I had implemented GNU Multiple Precision Library, which require a lot of work and extra download.
At last I have noticed there is a numerics library within visual studio if I use Net Framework 4.

So here is compiled DLL, which should be extracted to "%AppData%\SMath\extensions\plugins\".
Compiled dll should work out of box if there is Net Framework > 4 is installed on your system.
Source code to check and recompile, system.numerics file if you have not installed .Net4 framework.
If there is no Net4, just copy "system.numerics.dll" file under the folder of "BigIntegerArtihmetics.dll".


It also works under Linux with Mono if you copy files to "/home/<user>/.config/SMath".
If you use linux you would know where to copy extension.


Regards

biginteger_compiled.7z (5kb) downloaded 40 time(s).
source_code.7z (7kb) downloaded 34 time(s).
System.Numerics.7z (44kb) downloaded 38 time(s).

Edited by user 20 January 2022 21:11:10(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 10/01/2021(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 04 October 2021 23:07:08(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Thanks to Andrey, I have uploaded plugin in to repository.
Now you don't have to manually install it.
Plugin can be added into SMath via plugins download page.
If you have this added into your SMath, please remove this plugin directory.
After removal, plugin can be available to download in SMath.

Regards
thanks 3 users thanked overlord for this useful post.
on 05/10/2021(UTC),  on 05/10/2021(UTC),  on 05/10/2021(UTC)
Offline Razonar  
#3 Posted : 11 November 2021 08:24:38(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. Arbitrary precission algebra, but with rationals, extending the big integers operations and introducing continued fractions expansions.

img2.png

bigRationals.sm (213kb) downloaded 13 time(s).
bigRationals.pdf (379kb) downloaded 12 time(s).

Best regards.
Alvaro.

Edited by user 11 November 2021 09:11:06(UTC)  | Reason: Not specified

thanks 2 users thanked Razonar for this useful post.
on 11/11/2021(UTC),  on 11/11/2021(UTC)
Offline overlord  
#4 Posted : 11 November 2021 10:01:29(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi. Arbitrary precission algebra, but with rationals, extending the big integers operations and introducing continued fractions expansions.

img2.png

bigRationals.sm (213kb) downloaded 13 time(s).
bigRationals.pdf (379kb) downloaded 12 time(s).

Best regards.
Alvaro.

This is very nice. Good job Alvaro.
Very beautiful, elegant and elaborated document.

I was writing some functions for this purpose too.
I think I will complete what I have started.
I am going to write a Big Number Plugin for SMath.
With mixed functions/ideas of yours and mine, it can be done.

Regards

2021-11-11_09-43.png
thanks 1 user thanked overlord for this useful post.
on 11/11/2021(UTC)
Offline Razonar  
#5 Posted : 11 November 2021 11:14:14(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi overlord. A plugin is definitely needed. This version also generates the rational approximation of any real with arbitrary precision without any plugin, but its efficiency is minimal.

img0.png

ContFrac_Figures.sm (55kb) downloaded 11 time(s).
ContFrac_Figures.pdf (140kb) downloaded 7 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 11/11/2021(UTC)
Offline overlord  
#6 Posted : 11 November 2021 20:02:53(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Originally Posted by: Razonar Go to Quoted Post
...but its efficiency is minimal.

When (If) I complete the Big Number plugin, it will be much faster.
I know this because I witnessed first hand while programming Big Integer plugin.
Same algorithms shall execute faster on C# than internal SMath programming.
thanks 1 user thanked overlord for this useful post.
on 11/11/2021(UTC)
Offline Razonar  
#7 Posted : 12 November 2021 04:58:40(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. Improved version. Newton-raphson method and row reduced echelon form were also added, both with arbitrary arithmetic precision.

bigRationals.sm (277kb) downloaded 23 time(s).
bigRationals.pdf (459kb) downloaded 24 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 20/01/2022(UTC)
Offline Jean Giraud  
#8 Posted : 13 November 2021 00:09:40(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Hola Alvaro,
Great piece of work.
For pi, you may want to check Simon Plouffe
to avoid continued fraction ... timing ?
Take care ... Jean.

Pi for Alvaro BigNumber.sm (5kb) downloaded 8 time(s).
Offline overlord  
#9 Posted : 13 November 2021 00:12:05(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
you may want to check Simon Plouffe
▲▲▲▲▲
Don't bother Alvaro, just a regular pi series calculation.
Not related with arbitrary precision results.
Offline overlord  
#10 Posted : 19 January 2022 20:59:10(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Well, promise is a promise.
I shall release the Big Rational Library when finished very soon.
Just a couple of essential functions remained.
Then I will try to add complex ones.

Big rationals has a niche and limited usage.
Though sometimes it is necessary for floating point precision.
Near none CAS including SMath is not capable such calculations.
It is due to electronic hardware and IEEE74 design.

Regards

bigrational.png

Edited by user 19 January 2022 22:18:15(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 20/01/2022(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.