ทดสอบ EasyMimeTex 1.0 for gpEasy 3.6.0

8/5/2013 | Comments: 5

หลังจากแช่เย็น gpEasy อยู่ที่เวอร์ชั่น 3.5.2 มาซะนาน เพราะเข้าใจว่าเขาคงจะเลิกทำเจ้า CMS น่ารักๆ ตัวนี้ไปซะแล้ว (ก็เล่นไม่กระดุกกระดิกมาเป็นปีแล้วนี่นา) ... แต่จู่ๆ วันนี้ผมก็นึกอยากจะแว้บเข้าไปเยี่ยมเยียนเว็บไซต์ของเขาซะหน่อย แล้วก็เลยถือโอกาส upgrade สิ่งที่อยู่ในเครื่องของตัวเองให้กลายเป็นเวอร์ชั่น 3.6.0 ซึ่งเป็นรุ่นล่าสุดของ gpEasy พร้อมๆ กับหา plug-ins บางตัวมาทดลองเล่นอีกนิดหน่อย ... โดยมีหนึ่งในจำนวนนั้นก็คือ EasyMimeTex 1.0 ที่เอาไว้เขียน "สูตรคณิตศาสตร์" บนหน้าเว็บ

การติดตั้งเจ้า EasyMimeTex มีรายละเอียดมากกว่าการติดตั้ง plug-ins ตัวอื่นๆ ของ gpEasy อยู่เล็กน้อย โดยเราจะต้องไปเอาชิ้นส่วนที่เหลือมาจาก John Forkosh Associates Inc. แล้วคอมไพล์ขึ้นมาเป็น mimetex.cgi เพื่อเอาไปใส่ใน cgi-bin/ directory ของระบบก่อนที่จะสามารถใช้งานได้ตามที่เขาออกแบบเอาไว้

สำหรับขั้นตอนในการป้อนสูตรคณิตศาสตร์นั้น เราจะต้องป้อนด้วย html ผสมกับ TeX code ใน syntax แบบนี้ครับ ...
 

<img src="/cgi-bin/mimetex.cgi?สูตรที่ต้องการ">


... ตัวอย่างเช่น ...


<img src="/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}">


ซึ่งก็จะได้ผลลัพธ์ออกมาเป็นอย่างนี้ ...
 


สังเกตนะครับว่า ผลลัพธ์ที่ได้นั้นจะเป็น "รูปภาพ" (img) ซึ่งเราก็จะสามารถปรับให้ใหญ่หรือเล็กได้ตามที่ต้องการ ... คราวนี้ การเขียน blog ที่มีส่วนผสมของสูตรคณิตศาสตร์ปนอยู่ในเนื้อหา ก็กลายเป็นสิ่งที่ไม่ยากเย็นจนเกินไปนักแล้วล่ะ ... แล้วนี่ก็คือการทดลองเล่นกับสูตรคำนวณพื้นๆ ที่ผมเคยใช้งานจริงเมื่อหลายปีก่อน ...
 

The Formula for Net Cost in FOC Case

The simplest formula is :

                    ... (a)

 

When FOC is the same item as the bought ones :

                      ... (b)

 

If we timed and devided by 100 to (b)

                                  ... (c)

 

From ( a ) and ( c ), derive to the formulas ( d ) and ( e )
 

                    ... (d)
 

                      ... (e)

 

 

 

 

 


                   ... (f)

 

From (a) and (f), derive to the formula

       ... (g)

 

 

In case of the FOC item being varied from the bought ones. We'll replace the 2 List Cost in (g) with 2 different variables,



                      ... (h)

 

Whereas :
B = ListCost of any BOUGHT items
F = ListCost of FOC item
foc% = FOC Q'ty / 100


So, in case of FOC=20% the formula will be replaced as :

 

 

 

If we'd like to change the foc% but keeping the same NetCost, we'll requote formula (h) as
 

        for the First Price Set



     for the Second Price Set

 

Where the condition is N2 = N1. So ...

                         ... (i) 

 

 

In the case of  B=F (only F cost concerned), we got from ( c )


               , and then

 

 

                                   ... (j)


Replace F2 from (j) to (i)
 

 

 

 

 

 


 



                 ... (k)

 


Whereas:
B2 = The SECOND LIstCost of any BOUGHT items
B1 = The FIRST ListCost of any BOUGHT items
F1 = The FIRST ListCost of FOC item
foc1% = FIRST FOC Q'ty / 100
foc2% = SECOND FOC Q'ty / 100



 


Categories: ZhuqiNux

Comments

7sdm2vvp   13/7/2018

roulette online - free roulette game 247
play free roulette for fun free roulette
https://roulettecas.com/

ocewiheuqanu   13/6/2020

http://mewkid.net/when-is-rahava/ - Cialis 20 Mg Cialis 20mg sko.nwvj.goozhuqi.info.arv.nl http://mewkid.net/when-is-rahava/

Peteratd   9/8/2021

Delete,please! .

Peterbxb   20/8/2021

Delete,please! .

Peteraww   25/8/2021

Delete,please! .

Leave Comment