SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
"object reference not set to an object instance" error?
Rank: Newbie
Groups: Registered
Joined: 21/07/2010(UTC) Posts: 6 Location: Fyvie
|
Hi all, wonder if you can help, i am having problems with using the sin, cos, asin,acos etc features. I keep getting the little black box at my final answer. I am not really sure if it is a bug as such as when i upload the calculation to the "Live" page on this website it resolves just fine (i have tried to load this calculation onto several computers and they all just resolve to black box)
thanks in advance
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello,
I do not know if I understood you well, but if you mean on this little black box at the end of the results (visible only when clicked in the region): sin(π/4)=0.7071■ or sin(π/4)—1/sqrt(2)■ It can be used to change the result representation. For instance, if you put into those boxes sqrt(2)/2 You will get: sin(π/4)=1@sqrt(2)/2 sin(π/4)—1@sqrt(2)/2
I hope you figured out what is this for.
Regards, Radovan
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 21/07/2010(UTC) Posts: 6 Location: Fyvie
|
omorr wrote:Hello,
I do not know if I understood you well, but if you mean on this little black box at the end of the results (visible only when clicked in the region): sin(π/4)=0.7071■ or sin(π/4)—1/sqrt(2)■ It can be used to change the result representation. For instance, if you put into those boxes sqrt(2)/2 You will get: sin(π/4)=1@sqrt(2)/2 sin(π/4)—1@sqrt(2)/2
I hope you figured out what is this for.
Regards, Radovan
Hi, thank you for your reply, i am just trying to upload the file so people can look at it to get a better idea, what i mean is that the equation is not resolving on my (or several other computers that i have installed smath on to check) i will try to take a screen shot at least so you can (should be on in 2 mins if you are still around many thanks EDIT*** link to screen shot http://picasaweb.google....GvRg#5496454430477863026thanks Edited by user 21 July 2010 23:10:44(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Hello. rosswhittingham wrote:when i upload the calculation to the "Live" page on this website it resolves just fine SMath Studio Live uses the latest night builds of SMath Studio assemblies and these assemblies is much more newer then those shipped with SMath Studio 0.88. So, it seems that the error you are talking about is already fixed. I have no time to check your calculations now, but I'll do it in 2-3 hours and then will let you know here about the results. Anyway, SMath Studio 0.89 will be release tomorrow or on Friday, so you will able to use the latest assemblies version for your worksheet soon. Best regards, Andrey Ivashov.
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Sorry, I did not get it in the first place I might be wrong but did you check the Calculation=>Auto calculation in the main menu. Is it On (checked) or Off (Unchecked). If unchecked you will not get any result, like in your screenshot. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 21/07/2010(UTC) Posts: 6 Location: Fyvie
|
smath wrote:Hello. rosswhittingham wrote:when i upload the calculation to the "Live" page on this website it resolves just fine SMath Studio Live uses the latest night builds of SMath Studio assemblies and these assemblies is much more newer then those shipped with SMath Studio 0.88. So, it seems that the error you are talking about is already fixed. I have no time to check your calculations now, but I'll do it in 2-3 hours and then will let you know here about the results. Anyway, SMath Studio 0.89 will be release tomorrow or on Friday, so you will able to use the latest assemblies version for your worksheet soon. Best regards, Andrey Ivashov. Thank you for your reply, please see link below for the file, i have also linked a smaller file which may be quicker to work out what the problem is (same problem that is displayed above with sin/cos not resolving etc https://www.sugarsync.com/pf/D994898_306726_765460https://www.sugarsync.com/pf/D994898_305664_672321
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 21/07/2010(UTC) Posts: 6 Location: Fyvie
|
omorr wrote:Sorry, I did not get it in the first place I might be wrong but did you check the Calculation=>Auto calculation in the main menu. Is it On (checked) or Off (Unchecked). If unchecked you will not get any result, like in your screenshot. Regards, Radovan Hi, yes i have checked and also clicked refresh, it is quite strange, as by playing with switching between radians & degress for the "Angle" setting, one of the equations appeared to have resolved, but after a "recalculate" it vanished
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Ah yes, I remembered that "Angle" problem. The "Degrees" mode made some troubles on some of my previous testing as well. With "Radians" should be Ok. Both of your files worked for me with "Radians" and "Recalculate page" as well.
Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 21/07/2010(UTC) Posts: 6 Location: Fyvie
|
omorr wrote:Ah yes, I remembered that "Angle" problem. The "Degrees" mode made some troubles on some of my previous testing as well. With "Radians" should be Ok. Both of your files worked for me with "Radians" and "Recalculate page" as well.
Regards, Radovan yea i tried to set the "Angle" to radians and then just convert the answer after, but i just get a strange answer with "i" after a very small number (in the magnitude of x10(-14)), anyway as it works on live, it should be okay in the next release thanks again to you both for you very promt response! good night
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 04/07/2010(UTC) Posts: 178 Was thanked: 19 time(s) in 13 post(s)
|
Perhaps your SMath file got corrupted some how.
Try this. Save the file as xmcd. Close SMath and open SMath and Open the xmcd file. When I did these steps the new file looks fine.
Good luck. |
Ed |
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
TheWizEd wrote:Perhaps your SMath file got corrupted some how. *.sm files stores information about Angles option and when you save file as *.xmcd this info is lost... maybe this is the reason of why *.xmcd file is opens correctly. rosswhittingham, I've checked your examples. Here is what I get with a latest SMath Studio build (I've modified your files a bit): Figure 1: Winch snatch block_mod.sm Figure 2: aframe_mod.sm About errors you found in SMath Studio 0.88. As Radovan said it is due to the Angles option - please check this topic out for details. Actually bug is fixed but I really recommend you to use degrees Unit instead of the global angles option (also see the second post on that topic by Radovan). The second problem you've mentioned about imaginary part after using inverse trigonometric functions - this is an accuracy error and this is also fixed in SMath Studio 0.89 as you can see on the pic above. Best regards, Andrey Ivashov. P.S.: In the aframe.sm file you use Units, but this use case is very strange... check out the first screenshot to see how Units should be used normally. P.P.S: Zip-archive with all related files: for_rosswhittingham.zip. Edited by user 22 July 2010 02:14:39(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 21/07/2010(UTC) Posts: 6 Location: Fyvie
|
smath wrote:TheWizEd wrote:Perhaps your SMath file got corrupted some how. *.sm files stores information about Angles option and when you save file as *.xmcd this info is lost... maybe this is the reason of why *.xmcd file is opens correctly. rosswhittingham, I've checked your examples. Here is what I get with a latest SMath Studio build (I've modified your files a bit): Figure 1: Winch snatch block_mod.sm Figure 2: aframe_mod.sm About errors you found in SMath Studio 0.88. As Radovan said it is due to the Angles option - please check this topic out for details. Actually bug is fixed but I really recommend you to use degrees Unit instead of the global angles option (also see the second post on that topic by Radovan). The second problem you've mentioned about imaginary part after using inverse trigonometric functions - this is an accuracy error and this is also fixed in SMath Studio 0.89 as you can see on the pic above. Best regards, Andrey Ivashov. P.S.: In the aframe.sm file you use Units, but this use case is very strange... check out the first screenshot to see how Units should be used normally. P.P.S: Zip-archive with all related files: for_rosswhittingham.zip. Morning Andrey, thank you very much for you attention to this, when i try to open the files i loose a bit of formatting due to my earlier build, but the end result works just fine when in radians mode. the unit function is something i just noticed yesterday, i just assumed it was just a quick way to enter labels, i did not realise you could actually 'give' the number its unit as it were (i need to read up on this on the wiki, looks great) thanks again p.s i meant to add a note to my earlier posts saying please forgive the messy layout!, the sheet is still in its early stages lol,
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
"object reference not set to an object instance" error?
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.