Garry's Mod

Garry's Mod

42 평점
Basic Advanced Calculator by RandomTNT (Abandoned)
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
파일 크기
게시일
업데이트일
53.216 KB
2017년 6월 11일 오전 1시 44분
2020년 8월 23일 오전 12시 04분
변경 사항 11개 ( 보기 )

다운로드 위해 구독하기
Basic Advanced Calculator by RandomTNT (Abandoned)

설명
New functions:

Integral("var","str",a,b,n)
where var is the variable to respect, str being the Lua string to evaluate, a for min, b for max and n for strips.
Example: Integral("X","math.abs(X^2+4*X)",1,6,4)

Graph("var","str",min,max)
where var is the variable to change, str being the Lua string to evaluate, min and max for min-x and max-x, respectively.

This project is now dead until more ideas arrive to my head permanently. I'd rather make a sequel rather than try to untangle old spaghetti code.

-------

A simple project that turned unnecessarily complex by my own desire to program stuff.

It was supposed to be just a basic calculator for my programming needs, like calculating the base-1.1 log of 10^6, until it got complex, up to the point where it can now manipulate vectors. Why I did this to myself is still a rather unanswered question...

It functions about the same as your standard scientific calculator, with a few benefits:
- way more variables, from A-Z.
- number rounding, up to a certain number of digits, number flooring and ceiling.
- highly customizable colours and buttons.
- slight amount of string and table manipulation, alongside addtional vector and logic processing.
- clientside RunString function. Removed after pictures were taken.

However, due to the lack of my programming skills, it comes with a couple of caveats:
- not all functions on the scientific calculator are implemented.
- variable values need to be saved with SavVars to be stored between sessions.
- the rootX,Y function needs to be typed as "root(X,Y)" for "X root Y".
- the factorial function needs to be typed as "fact(n)" for "n!".
- the equals sign should only be used inside tables, use Store to store objects into variables.
- bracket auto-correction only works for brackets, not square brackets nor quotation marks.
- auto-correction fails sometimes, use NoAuto to disable/enable it.
- fails to identify sin(180 degrees) as 0.
- uses Simpson's Rule to estimate integrals, and could therefore be wrong.
- only single-letter variables can be stored properly. Variables with more than one letter involved are only local to that session, and might overwrite something on the client if a similarly named variable exists.

Simply open your Context Menu (default C) and click on the 'Calculator' icon, or type 'advcalc' in console to open it.



Please send me any suggestions to improve the UI. Any other suggestions/bug reports are also welcome, but don't expect me to perform and/or read all of them, as I am a really slow coder.
댓글 15
McFeddle 2022년 12월 2일 오후 7시 23분 
Hello. This helped me pass school.
gm_flatgrass 2019년 5월 24일 오후 1시 46분 
i dont know XD
i try
Piengineer12  [작성자] 2019년 5월 23일 오전 5시 43분 
And... How is that related to this?
gm_flatgrass 2019년 5월 18일 오후 2시 52분 
/\
l l
\/
l this is the gballons there ruiling steam bc they never get use
Piengineer12  [작성자] 2019년 4월 12일 오후 8시 29분 
The 2nd argument requires a Lua string. This addon is quite old so I don't know if I can fix it.
TromboneBoi9 2019년 4월 12일 오후 7시 58분 
The graph doesn't work, maybe I don't get it.
IntellectualPotato 2019년 2월 18일 오후 4시 11분 
hmmm..."basic advanced" seems legit
[G-Pro] F0x 2019년 2월 6일 오전 8시 57분 
Awesome, numpad support would be great !
Cheese Gaming 2018년 7월 21일 오전 10시 37분 
awesome:steamhappy:
Gigsuki浪人 2018년 7월 3일 오전 6시 11분 
I don't think "Basic" and "Advanced" can be used in the same sentence