mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Wikis > mersennewiki

Reply
 
Thread Tools
Old 2005-12-18, 10:42   #1
amcfarlane
 
amcfarlane's Avatar
 
Nov 2004
UK

468 Posts
Default Wiki Code Examples

Would it be beneficial to users to have some example code in the factorization and primality checking pages of the wiki?

I realise that some topics may well be beyond simple code (GNFS, ECM etc), however many other topics are IMHO ripe for examples, Trial Division, P-1, P+1, Rho, Lucas etc...
amcfarlane is offline   Reply With Quote
Old 2005-12-18, 12:07   #2
Numbers
 
Numbers's Avatar
 
Jun 2005
Near Beetlegeuse

22·97 Posts
Default

You will find a whole page on how to post maths here:

http://www.mersennewiki.org/index.ph...:Math_Formulas
Numbers is offline   Reply With Quote
Old 2005-12-18, 20:13   #3
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2·761 Posts
Default

Should it be pseudocode or code in an actual language?

Also many languages do have big integer support. If using C or C++ the code should be written using GMP library, but of course this is not useful because this code is already available for anybody who accepts the [L]GPL license. Just use a Web search engine.

I think the best approach is to write an animation in Java of how the algorithm progresses step by step. The problem here is that the wiki does not support applets. Maybe "Xyzzy" can patch the wiki so a "sysop" (like me ) can upload it to the wiki.

Alternatively, I can host in my Web server these animations and set External Links in the related articles.

Last fiddled with by alpertron on 2005-12-18 at 20:13 Reason: Fix typo
alpertron is offline   Reply With Quote
Old 2005-12-19, 07:12   #4
amcfarlane
 
amcfarlane's Avatar
 
Nov 2004
UK

2×19 Posts
Default

Personnally, I was thinking of C with the GMP library (simply because that's what I use), but I realise that there are many languages and many large integer libraries.

Perhaps a little pseudocode would be more in order, but with links to an external site with further examples in a variety of languages / libraries. (Although, I'm not sure how we could improve each other's code that way).
amcfarlane is offline   Reply With Quote
Old 2009-05-21, 18:36   #5
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2·3·11·167 Posts
Default

I was trying to add an infobox and it didn't seem to take. Does this version support infoboxen? I was hoping to set them up for programs, people, and projects. I burrowed the code from the mother wiki, but it didn't seem to take.
Uncwilly is online now   Reply With Quote
Old 2011-02-16, 04:36   #6
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

1102210 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
I was trying to add an infobox and it didn't seem to take. Does this version support infoboxen? I was hoping to set them up for programs, people, and projects. I burrowed the code from the mother wiki, but it didn't seem to take.
I had totally forgotten that I tried that before.
Uncwilly is online now   Reply With Quote
Old 2011-02-16, 12:36   #7
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

176416 Posts
Default

Quote:
Originally Posted by amcfarlane View Post
Would it be beneficial to users to have some example code in the factorization and primality checking pages of the wiki?
I think so.
CRGreathouse is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Wiki is down! Uncwilly mersennewiki 16 2018-10-23 23:16
Wiki upgrade... Xyzzy mersennewiki 3 2011-02-18 03:31
wiki licensing? ixfd64 mersennewiki 6 2006-05-22 12:05
Noticed something on wiki moo Hardware 4 2006-04-14 03:36
Counter-examples, please Numbers Miscellaneous Math 4 2005-12-29 11:03

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


Fri Jun 2 21:43:42 UTC 2023 up 288 days, 19:12, 0 users, load averages: 0.95, 1.08, 1.03

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔