Message Boards Message Boards

0
|
23467 Views
|
5 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Why "Expression cannot begin with xxx " always show up?

Posted 10 years ago

Hi there,

I got a problem with solving equations using Mathematica recently. I typed in Solve[an equation], it always show up "Expression cannot begin with xxx". (As shown in the image attached)

Does anyone know how to deal with it?

Thanks!

Attachments:
POSTED BY: Shanliangzi Liu
5 Replies
Posted 10 years ago

I figured it out! Thanks for everyone!

Best,

POSTED BY: Shanliangzi Liu

The [ ] pairs around BesselJ. Also, you don't need Solve.

In[3]:= Integrate[(BesselJ[0, a*r])^2*r, {r, 0, R}]

Out[3]= 1/2 R^2 (BesselJ[0, a R]^2 + BesselJ[1, a R]^2)
POSTED BY: Frank Kampas

You're using [...] where you should be using (...)

[ ] should contain function arguments.

POSTED BY: Frank Kampas
Posted 10 years ago

Which [] do you mean?

POSTED BY: Shanliangzi Liu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract