Sin requires one argument – the angle. Perhaps you meant to plot Sin[x]Sin[y]?
Plot3D requires two independent variables, since it plots a surface.
Try this:
Plot3D[Sin[x] Sin[y], {x, -Pi, Pi}, {y, -Pi, Pi}]
Sin requires one argument – the angle. Perhaps you meant to plot Sin[x]Sin[y]?
Plot3D requires two independent variables, since it plots a surface.
Try this:
Plot3D[Sin[x] Sin[y], {x, -Pi, Pi}, {y, -Pi, Pi}]
Thanks for the quick reply - I copied that equation from a video demonstrating mathematica on a Raspberry Pi (RPi) - I was very careful in copying it exactly. However, when I tried your example, above, it worked! I solved my problem with trig and log functions by trial and error and found that, unlike Python, Mathematica requires a decimal point after a whole number to explicitly tell it to treat it as floating point. I’m happy now, thanks. ![]()
But before you try to launch Mathematica, make sure the user you’re going to be when you use it is a member of the ‘video’ group:
$ sudo usermod -a -G video xyz
does this for user ‘xyz’ (or you could just edit ‘/etc/group’, if you’re old-school)—and if you modified the current user, you’ll then need to log out and back in.
The reason for this is that Mathematica needs access to video hardware devices, which are inaccessible unless you’re a member of the ‘video’ group. If you aren’t, the, uh, ‘counterintuitive’ (!) failure mode is that Mathematica presents a “Wolfram Product Activation” dialog and expects you to enter an activation key.
Thank you so much for posting the information about the user needing to be part of the ‘video’ group. My web searches were not getting me to answer until I finally stumbled onto your post. I’d done several things on my new RPi lately (one of them was deleting the default pi user account, of course), and couldn’t figure out why Mathematica was suddenly asking for an Activation Code!
In the contest of this post, I may want to point to this here Installing Mathematica under 64-bit Kali Linux on a Raspberry Pi
First it lists stumbling blocks that may also arise in different contexts (a user must be member of the video group and some devices need to be group video read/write accessible, depending on the OS there may also be unmet dependencies), but more importantly I want to point the attention of folks at Wolfram to the issues pointed out there, in particular questions regarding the security implications.
That said, if there’s work being done on a 64-bit version of Mathematica for ARM, I’d be rather interested in getting my hands on it. It kind of defeats the purpose of a 64-bit CPU that’s more power efficient running 64-bit code, to be running in a less performant 32-bit mode… Given the age of this thread is prerelease@wolfram.com still valid?