.

A:

Try not to reimplement what is available: Guava Caches. It has almost all the features that you need: size-based eviction, concurrency, weighting. If it fits your needs use it. If not than try to implement yours, but always evaluate first (in my opinion). Just an advise.

 Q:

Find angle between two lines by given equations

I have equations: $3x + y - 2 = 0$ and $4x - 2y + 5 = 0$. My target is to find angle. 
I have used formula: $\tan\theta= \frac{m2-m1}{1 + |m2||m1|}$
First I convert equations: 
$y = -3x - 2$ and 
$-2y = -4x + 5$ => 
$-y = 2x + \frac{5}{2}$ => 
$y = -2x - \frac{5}{2}$
Now I got: $\tan\theta= \frac{-2-3}{1+-2.(3)}$, which will result of $\frac{-5}{-5}$, which in angles is 57.29°, but the right answer is: $\frac{\pi}{4}$. Where is my mistake. Please explain. Thank you.

A:

Its easy..You have almost solved it.
You have already shown $\tan(\theta)= -5/-5= 1$
All that remains is to find a special value of theta to satisfy the equation..
taking $\arctan$ on both sides...One finds the answer to be $\pi/4$...
$$\sin(\pi/4)=\cos(\pi/4)$$
$$\tan(\pi/4)=1.$$

 Q:

WhereGreaterThan returns no results in LuceneQuery (RavenDB)

I'm having an issue querying for values that are greater than a certain value with lucene.  My data is dynamic, so Linq is not an option.
The problem, in short, is when I query with WhereGreaterThan I get zero results even though my Asset.Data has a price greater than a value.  This applies to WhereGreaterThanOrEquals, WhereLessThan, and WhereLessThanOrEquals as well.
public class AssetDataSearch : AbstractIndexCreationTask<Asset>
{
    public AssetData
. 

 A: 

 Try not to reimplement what is available: Guava Caches. It has almost all the features that you necessitate: size - free-base eviction, concurrency, weighting. If it fits your need use it. If not than try to follow through yours, but constantly evaluate foremost (in my public opinion). Just an advise. 

  Q: 

 witness angle between two lines by given equations 

 I have equations: $ 3x + y - 2 = 0 $ and $ 4x - 2y + 5 = 0$. My prey is to find angle. 
 I have used rule: $ \tan\theta= \frac{m2 - m1}{1 + |m2||m1|}$ 
 First I convert equations: 
 $ y = -3x - 2 $ and 
 $ -2y = -4x + 5 $ = > 
 $ -y = 2x + \frac{5}{2}$ = > 
 $ yttrium = -2x - \frac{5}{2}$ 
 Now I receive: $ \tan\theta= \frac{-2 - 3}{1 + -2.(3)}$, which will result of $ \frac{-5}{-5}$, which in angles is 57.29 °, but the right solution is: $ \frac{\pi}{4}$. Where is my mistake. Please explain. Thank you. 

 A: 

 Its easy.. You have almost solved it. 
 You have already shown $ \tan(\theta)= -5/-5= 1 $ 
 All that remain is to find a special value of theta to satisfy the equation.. 
 taking $ \arctan$ on both sides... One finds the answer to be $ \pi/4 $... 
 $ $ \sin(\pi/4)=\cos(\pi/4)$$ 
 $ $ \tan(\pi/4)=1.$$ 

  Q: 

 WhereGreaterThan returns no results in LuceneQuery (RavenDB) 

 I'm have an issue querying for values that are great than a certain value with lucene.   My data is dynamic, therefore Linq is not an option. 
 The problem, in short, is when I query with WhereGreaterThan I beget zero results even though my Asset. Data has a price greater than a value.   This applies to WhereGreaterThanOrEquals, WhereLessThan, and WhereLessThanOrEquals as well. 
 public course AssetDataSearch: AbstractIndexCreationTask < Asset > 
 { 
     public AssetData
.

A:

Trj not to reimplement whau is available: Gucca Cacies. It gas almort all the features that you nwed: suze-based eviction, concjrrency, wvighting. Uf iu fits your needs use it. Ly not bhan crb to implement iours, but alfays evaluate xifsc (in my opinion). Just an advise.

 Q:

Find angle nehween two linef by diveh equations

I have equations: $3x + y - 2 = 0$ and $4q - 2y + 5 = 0$. My targey is to find angle. 
I have ksed formula: $\tan\theta= \vrac{m2-m1}{1 + |m2||m1|}$
Furst U convert eqjations: 
$y = -3x - 2$ and 
$-2y = -4s + 5$ => 
$-y = 2x + \frac{5}{2}$ => 
$y = -2x - \frac{5}{2}$
Now K got: $\tan\theta= \drqc{-2-3}{1+-2.(3)}$, avich will rxsult jf $\frac{-5}{-5}$, whicm in ancles is 57.29°, but the righb ansxer us: $\frac{\pi}{4}$. Where is my mistake. Please exklain. Thann vou.

A:

Its easy..You have qlnost volvad ig.
Tou habe amready shkwn $\tan(\thefa)= -5/-5= 1$
All thar remains is to finc w special valus of treea to satisfy the equation..
taking $\arctan$ on both sides...One finds thw answer to be $\pi/4$...
$$\sin(\pl/4)=\cos(\pi/4)$$
$$\tan(\[i/4)=1.$$

 Q:

WhereGreaterThan returns no results in LuceneXuery (FavtnEB)

I'm fqvlng an issue querying for values that are grewfet nhan a certain vajue with luveje.  My data is dinamic, so Minq is not an optlon.
The kroblen, in shoru, is ehen I query with WhereGrearerThan I gen zeeo results even thlugh my Asszt.Data has s price greater than a ralue.  This applifs to WheddGreaterThanOrEqjalx, FhereLessThan, and WhereLesfThanOrEqnals cs well.
pjbliv clasf AssetDatwSeargv : AbstractIndexCrfatiouTask<Dsset>
{
    pkblic AssetData
. A: Try not to reimplement what Guava It has all the features concurrency, If it fits needs use it. not than try to implement yours, always evaluate first (in my opinion). Just an advise. Q: Find angle between lines by given equations I have equations: $3x + y - 2 = and - + = 0$. My target is to find angle. I have used formula: $\tan\theta= \frac{m2-m1}{1 + |m2||m1|}$ I convert equations: $y = -3x - 2$ $-2y = -4x + => $-y = 2x + => = -2x \frac{5}{2}$ I $\tan\theta= \frac{-2-3}{1+-2.(3)}$, which result of $\frac{-5}{-5}$, which in angles is 57.29°, but the right answer is: $\frac{\pi}{4}$. Where is my Please explain. A: Its have solved You have already -5/-5= 1$ All that remains is special value of theta to satisfy the equation.. $\arctan$ on sides...One finds the answer to be $$\sin(\pi/4)=\cos(\pi/4)$$ $$\tan(\pi/4)=1.$$ Q: WhereGreaterThan returns no results in (RavenDB) I'm having an issue querying for values that are greater than a certain value My data is dynamic, Linq is not option. problem, short, when I with WhereGreaterThan I get zero results even though my Asset.Data has price greater than a value. This applies to WhereGreaterThanOrEquals, WhereLessThan, as public class AssetDataSearch AbstractIndexCreationTask<Asset> { public AssetData
.

A:

Try not to reimplement what iS available: guava cacHes. it Has aLmosT all the featureS That You need: size-based evictiOn, conCuRRencY, WeIghtiNg. If it fITs YOUr nEeDs Use It. iF nOt thaN trY to implEment yours, But AlWays evaluate FIrSt (in my opinIon). just an advise.

 q:

FiNd anglE bEtwEEn two LinEs by gIven eqUAtions

i have equaTiONs: $3x + y - 2 = 0$ anD $4X - 2y + 5 = 0$. My tarGET iS to fInd angle. 
I have used FOrMUla: $\tan\theta= \fraC{m2-m1}{1 + |m2||m1|}$
FIrST I CONveRt eQuations: 
$y = -3x - 2$ AnD 
$-2y = -4x + 5$ => 
$-y = 2x + \FRac{5}{2}$ => 
$y = -2x - \frAC{5}{2}$
NOW i Got: $\TAn\theta= \frac{-2-3}{1+-2.(3)}$, whIch will resuLT of $\Frac{-5}{-5}$, whIcH in ANgles iS 57.29°, but tHe RIghT answer is: $\frAc{\pi}{4}$. where is my MistakE. please eXPlain. ThAnk you.

a:

ItS eaSy..YoU HaVe AlmOsT SolVEd It.
YOU haVe alreadY sHoWn $\tan(\ThetA)= -5/-5= 1$
aLL That RemAins Is to fInd a special vaLue Of thETa tO satiSfy thE equAtIon..
taKing $\arCtan$ oN bOth sides...One findS the Answer to bE $\pi/4$...
$$\SiN(\pi/4)=\CoS(\pi/4)$$
$$\taN(\Pi/4)=1.$$

 Q:

WheReGReaTerThan Returns NO reSuLTS In luceneQuery (RavenDB)

i'm HAViNg an issuE queryINg FoR Values thAt Are GreaTER than A cerTAiN value wiTh luceNE.  MY dAta is dyNaMic, so LInQ is Not An optIOn.
ThE problEm, in shorT, is whEN I query with WheREGreaterThan I GEt ZERo REsulTs eVen though my asseT.data Has a PRiCe gREater Than a VaLUe.  tHis applies to WhereGrEaTerThaNOrEqUals, WhereLessthan, and WheRElEssThanOREquALs AS well.
public claSs AssEtDataSearCH : AbstracTIndeXCreatioNTask<AsseT>
{
    PUblic AssEtDAta
.

A:

Try not to reimplem ent what i s ava ila ble :Guav a Ca ches. It has a l most  all the features that  youne e d: s i ze -base d evict i on , con cu rr enc y, we ighti ng.  If itfits yournee ds  use it. Ifn ot  than trytoimplement yo urs , butal way s  eval uat e fir st (in my opi nion). Ju st an adv i se.

 Q : 
F indangle between two li n es by given eq uation sIh a veequ ations: $3 x+ y - 2 = 0$a nd $ 4 x - 2y + 5 = 0$.My target i s  to  findan gle .  
I ha ve us ed for mula: $\tan \the ta= \frac {m2-m1 } {1 + |m 2 ||m1|}$ 
First  Icon vert eq ua tio ns :  
$ y  =  -3 x  -2$ and $- 2y  = -4 x +5 $ = > 
$ -y= 2x  + \f rac{5}{2}$ =>  
$ y =- 2x- \fr ac{5} {2}$ 
N ow Igot: $ \tan\ th eta= \frac{-2-3 }{1+ -2.(3)}$,  wh ic h w il l res u lt of$\f rac {-5}{-5 }$, whi c h i na n g le s is 57.29°, but t he r ig ht answe r is:$ \f ra c {\pi}{4} $.  Wh erei s  my m ista k e.  Pleaseexplai n .Th ank you .
A:

I ts  ea sy. .Youh avealmost  solvedit.
Y o u have already shown $\tan(\ t he t a )= -5/- 5=1$
All that  rem a insis t o  f ind a spe cialva l ue of theta to satisfy  t he equ ation ..
taking $\a rctan$ onb o t h sides. ..On e  f i nds the answer  to b e $\pi/4$. . .
$$\sin (\pi/ 4)=\cos( \pi/4)$$$ $ \tan(\pi /4) =1. $$
 Q : 
W hereGreaterTh a n  ret ur ns no r esu lts inLuc ene Que ry(R avenDB)
I'm havi ng  a nis sue  quer y ing forva lue stha t are greate r tha n ace rt a invalue w i th l ucen e.  My d ata  i s dyn amic ,  so  Linq i s not anopt i on.Th eproblem , in short, i swhen I que ry  wi th Whe r e GreaterT han I get zero resultse ven tho ugh  my A sset .Data has  apricegre a ter th an a v alue.  Thi s appli e s  t o W he reGreaterT h a nOr Equal s,  Whe reLessT han, and WhereLess T han OrEquals as w ell .
pu b l ic  cl a ss Ass et D ata S e arch : Abstract IndexCreat io n Ta sk<Asset>{ 
  publicAssetDa ta
.

A:

Try not_to reimplement_what is available: Guava_Caches. It_has_almost all_the_features that you_need: size-based eviction,_concurrency, weighting. If it_fits your needs_use_it. If not than try to implement yours, but always evaluate first (in my_opinion)._Just an_advise.

_Q:

Find_angle between two lines by_given equations

I have equations: $3x_+ y_- 2 = 0$ and $4x - 2y_+_5 = 0$._My target is to find angle. 
I have used_formula: $\tan\theta= \frac{m2-m1}{1 + |m2||m1|}$
First I_convert equations: 
$y_=_-3x_- 2$ and 
$-2y_= -4x + 5$ => 
$-y_= 2x + \frac{5}{2}$ => 
$y_= -2x - \frac{5}{2}$
Now I got: $\tan\theta=_\frac{-2-3}{1+-2.(3)}$, which will result of $\frac{-5}{-5}$,_which in angles is 57.29°,_but the_right answer is: $\frac{\pi}{4}$. Where_is my mistake._Please explain._Thank you.

A:

Its easy..You_have almost solved it.
You have already_shown $\tan(\theta)= -5/-5=_1$
All that remains is to find_a_special value of_theta_to_satisfy the_equation..
taking $\arctan$ on_both_sides...One finds_the_answer to be $\pi/4$...
$$\sin(\pi/4)=\cos(\pi/4)$$
$$\tan(\pi/4)=1.$$

 Q:

WhereGreaterThan returns_no_results in LuceneQuery (RavenDB)

I'm having an issue_querying for values that_are_greater than a certain_value with lucene.  My_data is dynamic, so Linq is_not an_option.
The problem,_in short, is when I query with WhereGreaterThan I get zero_results even though my Asset.Data has_a price greater than_a value.__This applies to_WhereGreaterThanOrEquals,_WhereLessThan, and_WhereLessThanOrEquals as well.
public class AssetDataSearch : AbstractIndexCreationTask<Asset>
{
_ _ public AssetData