プレイ日記
V360 TheV360
V360Calc Progress - All functions are either working or are almost finished! The only thing I need to do now is know what functions I should include in the function editor. Also, are Sin¯¹, Cos¯¹, and Tan¯¹ necessary? They're a pain to write error-correcting functions for.
8そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
In my opinion, arcsin, arccos and arctan are indispensable functions for scientific calculator. Isn't there log10(common log.)?
1そうだね
未プレイ
返信[2]
親投稿
12Me21 12Me21
Why is it so hard to write error correction functions for them?
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
Do you want some help? I may not be an expert in the field of trigonometry, but I can attempt to give you some clues on what to do, if you want!
1そうだね
プレイ済み
返信[4]
親投稿
12Me21 12Me21
Could you add a LOG function that lets you specify the base (instead of having LOG 10 and LN)
0そうだね
プレイ済み
返信[5]
親投稿
V360 TheV360
@12Me21 & Hanzo Sure, the only problem is where I'm going to put the , key. (maybe 2nd+e?) Also, side note: this editor automatically changes stuff like 2Sin(x) into 2*Sin(x), so it's pretty much impossible to cause a syntax error.
0そうだね
プレイ済み
返信[6]
親投稿
Now: Does It Convert the expression to reverse polish notation, which removes all parentheses making it super simple to calculate? That's what basically every calculator now a day does to parse the answer out, it also makes functions extremely simple to implement, heck it's the same as implementing + - * / I made a calculator just like this, built into my game 3D_PARKOUR, with R.P.N. ofcourse
1そうだね
プレイ済み
返信[7]
親投稿
V360 TheV360
I might try that instead of my stupid string scanning technique
0そうだね
プレイ済み
返信[8]
親投稿
The first thing you'd need is to make a token separator, which will give you a string array of everything So sin(-5.8-7) would return sin, (, -5.8, -, 7, ) Then go to the RPM wiki page, and create the program from the pseudocode It would convert it to -5.8, 7, -, sin Which means you read it from left to right, pushing and popping them from a stack till u have 1 item left (the answer)
0そうだね
プレイ済み
返信[9]
親投稿
The Shunting-Yard Algorithm, thats what you want to use
0そうだね
プレイ済み
返信[10]
親投稿
Here I just uploaded this, its an already made calculator thing, you type EXPR$("1+1") and it returns "2" If you use it, you dont need to give me credit for it, all youd do is copy over the functions and it should start working Key in screenshot One issue with this calculator is It doesnt catch things like "5 SIN", it just thinks its SIN(5) This can be an issue sometimes, so its your choice
1そうだね
プレイ済み
返信[11]
親投稿
V360 TheV360
Found a bug with the calculator, it thinks 5e2 is a variable when it's actually 5*10^2 Also, I might try to rewrite V360Calc because the GUI has become impossible to manage. (should use DATA instead of a bunch of SPBTN_SET and SPOFS statements)
1そうだね
プレイ済み
返信[12]
親投稿
ЩMr.Mo14 mr.mo14
Keep trying!!! This would be sooooo useful to me!
0そうだね
プレイ済み